forked from pool/kernel-source
GIT Revision: f223ee652010d2179a7287193aa4d7e6db362131
OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-source?expand=0&rev=7169
This commit is contained in:
committed by
Git OBS Bridge
parent
6a33246c1b
commit
ff41f18d7e
@@ -20,6 +20,7 @@
|
||||
%define srcversion 3.2-rc3
|
||||
%define patchversion 3.2.0-rc3
|
||||
%define variant %{nil}
|
||||
%define vanilla_only 0
|
||||
|
||||
%include %_sourcedir/kernel-spec-macros
|
||||
|
||||
@@ -35,7 +36,7 @@
|
||||
%define rpm_install_dir %buildroot%obj_install_dir
|
||||
%define kernel_build_dir %my_builddir/linux-obj
|
||||
|
||||
%(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,check-supported-list,group-source-files.pl,find-provides,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,configtool.pl,log.sh})
|
||||
%(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,check-supported-list,group-source-files.pl,find-provides,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,configtool.pl,log.sh,try-disable-staging-driver})
|
||||
|
||||
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)
|
||||
%define cpu_arch_flavor %cpu_arch/%build_flavor
|
||||
@@ -176,6 +177,7 @@ Source65: kernel-spec-macros
|
||||
Source66: configtool.pl
|
||||
Source67: log.sh
|
||||
Source68: host-memcpy-hack.h
|
||||
Source69: try-disable-staging-driver
|
||||
Source100: config.tar.bz2
|
||||
Source101: config.addon.tar.bz2
|
||||
Source102: patches.arch.tar.bz2
|
||||
@@ -375,11 +377,25 @@ fi
|
||||
# %_smp_mflags -j 0%(grep -Ec 'cpu[0-9]' /proc/stat)
|
||||
%if %CONFIG_KMSG_IDS == "y"
|
||||
chmod +x ../linux-%srcversion/scripts/kmsg-doc
|
||||
make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y D=2
|
||||
%else
|
||||
make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y
|
||||
MAKE_ARGS="$MAKE_ARGS D=2"
|
||||
%endif
|
||||
|
||||
while true; do
|
||||
make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 \
|
||||
| tee buildlog
|
||||
if test "${PIPESTATUS[0]}" -eq 0; then
|
||||
break
|
||||
fi
|
||||
# In the linux-next and vanilla branches, we try harder to build a
|
||||
# package.
|
||||
if test 0%vanilla_only -gt 0 &&
|
||||
%_sourcedir/try-disable-staging-driver buildlog; then
|
||||
echo "Retrying make"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
%install
|
||||
|
||||
# get rid of /usr/lib/rpm/brp-strip-debug
|
||||
|
||||
Reference in New Issue
Block a user