Whamcloud - gitweb
lbuild: seperate kernel tag from lustre version
authorWang Shilong <wshilong@ddn.com>
Sat, 12 May 2018 06:46:16 +0000 (14:46 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 5 Mar 2021 18:26:45 +0000 (18:26 +0000)
Bumped Kernel tags using different tags like Lustre.
As Lustre changed more frequently than Kernel changes.

With this change, we only bumped DDN kernel tag
if there is really some kernel changes here.

Change-Id: Icdebe62fe1ef5de2096ae0f568494db394dc04f7
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/41827
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
contrib/lbuild/lbuild-rhel

index 8611f19..3c59a0c 100644 (file)
@@ -47,10 +47,11 @@ prepare_and_build_srpm() {
 
        pushd $TOPDIR >/dev/null
        # create the buildid
+       local ddn_tag="ddn0"
        if $ENABLE_KERNEL_DEBUG; then
-               local buildid="_lustre_debug${EXTRA_VERSION##*_lustre}"
+               local buildid="_lustre_debug${EXTRA_VERSION##*_lustre}.${ddn_tag}"
        else
-               local buildid="_lustre${EXTRA_VERSION##*_lustre}"
+               local buildid="_lustre${EXTRA_VERSION##*_lustre}.${ddn_tag}"
        fi
 
        # edit the SPEC with our changes