spec: support for per-version config and patches
This commit is contained in:
parent
68c2cb59dd
commit
e36fb668a2
12
kernel.spec
12
kernel.spec
@ -96,11 +96,19 @@ mkdir -p %kernel_build_dir
|
|||||||
|
|
||||||
cd linux-%version
|
cd linux-%version
|
||||||
|
|
||||||
%_sourcedir/apply-patches %_sourcedir/series-%{build_flavor}.conf %_sourcedir $SYMBOLS
|
if [ -r %_sourcedir/series-%{version}-%{build_flavor}.conf ]; then
|
||||||
|
%_sourcedir/apply-patches %_sourcedir/series-%{version}-%{build_flavor}.conf %_sourcedir $SYMBOLS
|
||||||
|
else
|
||||||
|
%_sourcedir/apply-patches %_sourcedir/series-%{build_flavor}.conf %_sourcedir $SYMBOLS
|
||||||
|
fi
|
||||||
|
|
||||||
cd %kernel_build_dir
|
cd %kernel_build_dir
|
||||||
|
|
||||||
cp %_sourcedir/config-%{build_flavor} .config
|
if [ -f %_sourcedir/config-%{version}-%{build_flavor} ]; then
|
||||||
|
cp %_sourcedir/config-%{version}-%{build_flavor} .config
|
||||||
|
else
|
||||||
|
cp %_sourcedir/config-%{build_flavor} .config
|
||||||
|
fi
|
||||||
|
|
||||||
%build_src_dir/scripts/config \
|
%build_src_dir/scripts/config \
|
||||||
--set-str CONFIG_LOCALVERSION -%release.%cpu_arch \
|
--set-str CONFIG_LOCALVERSION -%release.%cpu_arch \
|
||||||
|
Loading…
Reference in New Issue
Block a user