# git rev-parse -q --verify 55700b39d5bb6d6b08fa607c2313d23cae4572dc^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/mirror/linux-kbuild.git for-next # git rev-parse -q --verify 55700b39d5bb6d6b08fa607c2313d23cae4572dc^{commit} 55700b39d5bb6d6b08fa607c2313d23cae4572dc # git checkout -q -f -B kisskb 55700b39d5bb6d6b08fa607c2313d23cae4572dc # git clean -qxdf # < git log -1 # commit 55700b39d5bb6d6b08fa607c2313d23cae4572dc # Author: Masahiro Yamada # Date: Sun Feb 5 21:09:57 2023 +0900 # # setlocalversion: use only the correct release tag for git-describe # # Currently, setlocalversion uses any annotated tag for git-describe. # If we are at a tagged commit, it will not append the commit hash. # # $ git checkout v6.2-rc1^ # $ make -s defconfig kernelrelease # 6.1.0-14595-g292a089d78d3 # $ git tag -a foo -m foo # $ make -s kernelrelease # 6.1.0 # # If a local tag 'foo' exists, it pretends to be a released version # '6.1.0', while there are many commits on top of it. # # The output should be consistent irrespective of such a local tag. # Pass the correct release tag to --match option of git-describe. # # In the mainline kernel, the SUBLEVEL is always '0', which is omitted # from the tag. # # KERNELVERSION annotated tag # 6.1.0 -> v6.1 (mainline) # 6.2.0-rc5 -> v6.2-rc5 (mainline, release candidate) # 6.1.7 -> v6.1.7 (stable) # # To preserve the behavior in linux-next, use the tag derived from # localversion* files if exists. In linux-next, the local version is # specified by the localversion-next file. # # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux-ld --version # < git log --format=%s --max-count=1 55700b39d5bb6d6b08fa607c2313d23cae4572dc # < make -s -j 160 ARCH=m68k O=/kisskb/build/kbuild_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux- defconfig # < make -s -j 160 ARCH=m68k O=/kisskb/build/kbuild_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux- help # make -s -j 160 ARCH=m68k O=/kisskb/build/kbuild_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux- olddefconfig # make -s -j 160 ARCH=m68k O=/kisskb/build/kbuild_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/m68k-linux/bin/m68k-linux- Completed OK # rm -rf /kisskb/build/kbuild_m68k-defconfig_m68k-gcc8 # Build took: 0:01:51.797570