pkg: fedora: don't overwrite auto.conf with .config
Upstream: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1597 Fixes building external modules using DKMS
This commit is contained in:
parent
fbeb52975f
commit
3b567dc265
|
@ -302,12 +302,12 @@ cp -a --parents arch/x86/boot/string.h %{kernel_modpath}/build/
|
||||||
cp -a --parents arch/x86/boot/string.c %{kernel_modpath}/build/
|
cp -a --parents arch/x86/boot/string.c %{kernel_modpath}/build/
|
||||||
cp -a --parents arch/x86/boot/ctype.h %{kernel_modpath}/build/
|
cp -a --parents arch/x86/boot/ctype.h %{kernel_modpath}/build/
|
||||||
|
|
||||||
# Make sure the Makefile and version.h have a matching timestamp so that
|
# Make sure the Makefile, version.h, and auto.conf have a matching
|
||||||
# external modules can be built
|
# timestamp so that external modules can be built
|
||||||
touch -r %{kernel_modpath}/build/Makefile %{kernel_modpath}/build/include/generated/uapi/linux/version.h
|
|
||||||
|
|
||||||
# Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
|
touch -r %{kernel_modpath}/build/Makefile \
|
||||||
cp %{kernel_modpath}/build/.config %{kernel_modpath}/build/include/config/auto.conf
|
%{kernel_modpath}/build/include/generated/uapi/linux/version.h \
|
||||||
|
%{kernel_modpath}/build/include/config/auto.conf
|
||||||
|
|
||||||
mkdir -p %{buildroot}/usr/src/kernels
|
mkdir -p %{buildroot}/usr/src/kernels
|
||||||
mv %{kernel_modpath}/build %{buildroot}/usr/src/kernels/%{kernel_name}
|
mv %{kernel_modpath}/build %{buildroot}/usr/src/kernels/%{kernel_name}
|
||||||
|
|
Loading…
Reference in a new issue