Skip to content
Snippets Groups Projects
Select Git revision
  • fc90ccfd286eabb05ec54521367df8663cf0bbbf
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

irqinit.c

Blame
  • lld-version.sh 519 B
    #!/bin/sh
    # SPDX-License-Identifier: GPL-2.0
    #
    # Usage: $ ./scripts/lld-version.sh ld.lld
    #
    # Print the linker version of `ld.lld' in a 5 or 6-digit form
    # such as `100001' for ld.lld 10.0.1 etc.
    
    linker_string="$($* --version)"
    
    if ! ( echo $linker_string | grep -q LLD ); then
    	echo 0
    	exit 1
    fi
    
    VERSION=$(echo $linker_string | cut -d ' ' -f 2)
    MAJOR=$(echo $VERSION | cut -d . -f 1)
    MINOR=$(echo $VERSION | cut -d . -f 2)
    PATCHLEVEL=$(echo $VERSION | cut -d . -f 3)
    printf "%d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL