Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) #!/bin/sh
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) # clang-version clang-command
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # Print the compiler version of `clang-command' in a 5 or 6-digit form
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) # such as `50001' for clang-5.0.1 etc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) compiler="$*"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) if ! ( $compiler --version | grep -q clang) ; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	echo 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	exit 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) MAJOR=$(echo __clang_major__ | $compiler -E -x c - | tail -n 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) MINOR=$(echo __clang_minor__ | $compiler -E -x c - | tail -n 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) PATCHLEVEL=$(echo __clang_patchlevel__ | $compiler -E -x c - | tail -n 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) printf "%d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL