Whamcloud - gitweb
LU-15286 build: only use baseonly option on el7 77/45677/9
authorMinh Diep <mdiep@whamcloud.com>
Mon, 29 Nov 2021 23:32:17 +0000 (15:32 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Jan 2022 01:31:44 +0000 (01:31 +0000)
el7 baseonly option allow to build perf package while
in el8 does not.

Test-Parameters: trivial

Change-Id: Ie973c5cc816b4b98ef71ab7080bd11286bcd644a
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45677
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/lbuild/lbuild
contrib/lbuild/lbuild-rhel
contrib/lbuild/lbuild-rhel7
contrib/lbuild/lbuild-rhel8

index 86483d7..303d332 100755 (executable)
@@ -29,7 +29,7 @@ push_exit_trap "kill -INT -$$ || true" kill_children
 
 # increment this if you have made a change that should force a new kernel
 # to build built
-BUILD_GEN=9
+BUILD_GEN=10
 
 TOPDIR="$PWD"
 
index d8955f3..b5058c4 100644 (file)
@@ -94,7 +94,7 @@ prepare_and_build_srpm() {
     rpmbuildopt="$rpmbuildopt $(get_rpmbuildopts)"
 
        # now build it
-       if ! eval rpmbuild $rpmbuildopt --target ${TARGET_ARCH} --with baseonly \
+       if ! eval rpmbuild $rpmbuildopt --target ${TARGET_ARCH} \
                --define \"_topdir $TOPDIR\" \
                ${buildid:+--define \"buildid $buildid\"} \
                --define \"_tmppath $TMPDIR\" \
index 8226945..b424d3a 100644 (file)
@@ -88,7 +88,7 @@ get_rpmbuildopts() {
     if $KERNEL_LUSTRE_NAMING; then
         echo -e "--define \"variant -lustre\" \c"
     fi
-    echo "--with firmware"
+    echo "--with firmware --with baseonly"
 
     return 0
 
index d0fa503..beeb6f2 100644 (file)
@@ -93,7 +93,7 @@ get_rpmbuildopts() {
     if $KERNEL_LUSTRE_NAMING; then
         echo -e "--define \"variant -lustre\" \c"
     fi
-    echo "--with firmware"
+    echo "--with firmware --without debug"
 
     return 0