Jacob Stiffler
2018-11-27 15:10:06 UTC
* Mimic the way DTB installation is handled by
kernel-devicetree.bbclass.
* This resolves an error when DTBs with identical filenames are found
in multiple locations. For example:
- arch/arm/boot/dts/am57xx-beagle-x15.dtb
- arch/arm/boot/dts/ti/am57xx-beagle-x15.dtb
Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
.../ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
index 2697772..fa409d0 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
@@ -18,7 +18,9 @@ linux-dtbs_install:
exit 1; \
fi
install -d $(DESTDIR)/boot
- @cp -f `find $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/dts/ -regex '.*\.dtbo?'` $(DESTDIR)/boot/
+ @for DTB in __KERNEL_DEVICETREE__; do \
+ install -m 0644 $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/dts/$$DTB $(DESTDIR)/boot/; \
+ done
linux-dtbs_clean:
@echo =======================================
kernel-devicetree.bbclass.
* This resolves an error when DTBs with identical filenames are found
in multiple locations. For example:
- arch/arm/boot/dts/am57xx-beagle-x15.dtb
- arch/arm/boot/dts/ti/am57xx-beagle-x15.dtb
Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
.../ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
index 2697772..fa409d0 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/Makefile_linux-dtbs
@@ -18,7 +18,9 @@ linux-dtbs_install:
exit 1; \
fi
install -d $(DESTDIR)/boot
- @cp -f `find $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/dts/ -regex '.*\.dtbo?'` $(DESTDIR)/boot/
+ @for DTB in __KERNEL_DEVICETREE__; do \
+ install -m 0644 $(LINUXKERNEL_INSTALL_DIR)/arch/__KERNEL_ARCH__/boot/dts/$$DTB $(DESTDIR)/boot/; \
+ done
linux-dtbs_clean:
@echo =======================================
--
2.7.4
2.7.4