do not install DTBs and vmlinuz in /lib/modules/_KVERREL_/

This commit is contained in:
Pratham Patel 2023-09-23 06:44:20 +05:30
parent 50d6fb777f
commit e28023009e
No known key found for this signature in database
6 changed files with 6 additions and 11 deletions

View File

@ -1,5 +1,5 @@
# change version here # change version here
%global rel_ver 5 %global rel_ver 6
%global major_ver 6 %global major_ver 6
%global minor_ver 6 %global minor_ver 6
%global rc_ver 1 %global rc_ver 1

View File

@ -1,5 +1,5 @@
# change version here # change version here
%global rel_ver 5 %global rel_ver 6
%global major_ver 6 %global major_ver 6
%global minor_ver 1 %global minor_ver 1
%global patch_ver 52 %global patch_ver 52

View File

@ -1,5 +1,5 @@
# change version here # change version here
%global rel_ver 5 %global rel_ver 6
%global next_snapshot_date 20230911 %global next_snapshot_date 20230911
Name: kernel-next-tfg Name: kernel-next-tfg

View File

@ -1,5 +1,5 @@
# change version here # change version here
%global rel_ver 5 %global rel_ver 6
%global major_ver 6 %global major_ver 6
%global minor_ver 6 %global minor_ver 6
%global rc_ver 1 %global rc_ver 1

View File

@ -1,5 +1,5 @@
# change version here # change version here
%global rel_ver 0 %global rel_ver 1
%global major_ver 6 %global major_ver 6
%global minor_ver 5 %global minor_ver 5
%global patch_ver 4 %global patch_ver 4

View File

@ -105,20 +105,15 @@ verify_config
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $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
# install the kernel # install the kernel
cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL} cp $(%{make} -s image_name) $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
chmod 755 $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 # install DTBs
%ifarch aarch64 || riscv64 %ifarch aarch64 || riscv64
%{make} %{?_smp_mflags} dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/boot/dtb-%{KVERREL} %{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 find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
%endif %endif