do not install DTBs and vmlinuz in /lib/modules/_KVERREL_/
This commit is contained in:
parent
50d6fb777f
commit
e28023009e
@ -1,5 +1,5 @@
|
||||
# change version here
|
||||
%global rel_ver 5
|
||||
%global rel_ver 6
|
||||
%global major_ver 6
|
||||
%global minor_ver 6
|
||||
%global rc_ver 1
|
||||
|
@ -1,5 +1,5 @@
|
||||
# change version here
|
||||
%global rel_ver 5
|
||||
%global rel_ver 6
|
||||
%global major_ver 6
|
||||
%global minor_ver 1
|
||||
%global patch_ver 52
|
||||
|
@ -1,5 +1,5 @@
|
||||
# change version here
|
||||
%global rel_ver 5
|
||||
%global rel_ver 6
|
||||
%global next_snapshot_date 20230911
|
||||
|
||||
Name: kernel-next-tfg
|
||||
|
@ -1,5 +1,5 @@
|
||||
# change version here
|
||||
%global rel_ver 5
|
||||
%global rel_ver 6
|
||||
%global major_ver 6
|
||||
%global minor_ver 6
|
||||
%global rc_ver 1
|
||||
|
@ -1,5 +1,5 @@
|
||||
# change version here
|
||||
%global rel_ver 0
|
||||
%global rel_ver 1
|
||||
%global major_ver 6
|
||||
%global minor_ver 5
|
||||
%global patch_ver 4
|
||||
|
@ -105,20 +105,15 @@ verify_config
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/boot
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/modules/%{KVERREL}
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/systemtap
|
||||
mkdir -p $RPM_BUILD_ROOT
|
||||
|
||||
# install the kernel
|
||||
cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
|
||||
chmod 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
|
||||
cp $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/vmlinuz
|
||||
|
||||
# install DTBs
|
||||
%ifarch aarch64 || riscv64
|
||||
%{make} %{?_smp_mflags} dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/boot/dtb-%{KVERREL}
|
||||
cp -r $RPM_BUILD_ROOT/boot/dtb-%{KVERREL} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/dtb
|
||||
find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user