packaging: Add kernel dtb overlays
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 20 Oct 2022 01:48:15 +0000 (10:48 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 23 Nov 2022 02:31:04 +0000 (11:31 +0900)
Add kernel dtb overlays into boot partition.

Change-Id: I81449ca04ed865a2eb7e846a70fac23e9ab1d9e1
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
packaging/linux-rpi4.spec

index 4cbdfaa..1aef818 100644 (file)
@@ -163,18 +163,20 @@ install -m 644 rpi4/boot/LICENCE.broadcom %{buildroot}/boot/
 install -m 644 rpi4/boot/start*.elf %{buildroot}/boot/
 install -m 644 rpi4/boot/fixup*.dat %{buildroot}/boot/
 
-# Install kernel binary and DTB
+# Install kernel DTB
 %ifarch aarch64
 install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/broadcom/bcm*.dtb %{buildroot}/boot/
 %else
 install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/bcm*.dtb %{buildroot}/boot/
 %endif
+mkdir -p %{buildroot}/boot/overlays
+install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/overlays/*.dtbo %{buildroot}/boot/overlays/
 
 # Install kernel headers
 make O=build/%{variant} headers_install %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr
 
 for target in %{variant} %{variant}-rt; do
-    # Install kernel binary and DTB
+    # Install kernel binary
     case $target in
        %{variant})
 %ifarch aarch64
@@ -269,6 +271,7 @@ mv /boot/zImage /boot/zImage_rt
 /boot/zImage
 %endif
 /boot/bcm*.dtb
+/boot/overlays/*.dtbo
 /boot/config.txt
 /boot/LICENCE.broadcom
 /boot/start*.elf
@@ -282,6 +285,7 @@ mv /boot/zImage /boot/zImage_rt
 /boot/zImage_rt
 %endif
 /boot/bcm*.dtb
+/boot/overlays/*.dtbo
 /boot/config.txt
 /boot/LICENCE.broadcom
 /boot/start*.elf