diff --git a/buildroot-patches/0018-linux-intree-overlays.patch b/buildroot-patches/0018-linux-intree-overlays.patch index b5d2b685cd..164f13b45e 100644 --- a/buildroot-patches/0018-linux-intree-overlays.patch +++ b/buildroot-patches/0018-linux-intree-overlays.patch @@ -15,20 +15,22 @@ config BR2_LINUX_KERNEL_INSTALL_TARGET --- buildroot/linux/linux.mk.orig +++ buildroot/linux/linux.mk -@@ -459,6 +459,12 @@ +@@ -459,6 +459,14 @@ ) endef endif # BR2_LINUX_KERNEL_APPENDED_DTB +ifeq ($(BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS),y) +define LINUX_INSTALL_OVERLAYS -+ install -D -t $(1)/overlays/ \ -+ $(wildcard $(LINUX_ARCH_PATH)/boot/dts/overlays/*.dtbo) ++ $(foreach ovldtb,$(wildcard $(LINUX_ARCH_PATH)/boot/dts/overlays/*.dtbo), \ ++ $(INSTALL) -D -m 0644 $(ovldtb) $(1)/overlays/$(notdir $(ovldtb)) ++ ) ++ $(INSTALL) -D -m 0644 $(LINUX_ARCH_PATH)/boot/dts/overlays/overlay_map.dtb $(1)/overlays/ +endef +endif # BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS endif # BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT endif # BR2_LINUX_KERNEL_DTS_SUPPORT -@@ -529,6 +535,7 @@ +@@ -529,6 +537,7 @@ define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET $(call LINUX_INSTALL_IMAGE,$(TARGET_DIR)/boot) $(call LINUX_INSTALL_DTB,$(TARGET_DIR)/boot) @@ -36,7 +38,7 @@ endef endif -@@ -543,6 +550,7 @@ +@@ -543,6 +552,7 @@ define LINUX_INSTALL_IMAGES_CMDS $(call LINUX_INSTALL_IMAGE,$(BINARIES_DIR)) $(call LINUX_INSTALL_DTB,$(BINARIES_DIR)) diff --git a/buildroot-patches/0018-linux-intree-overlays/buildroot/linux/linux.mk b/buildroot-patches/0018-linux-intree-overlays/buildroot/linux/linux.mk index 5c15c82b29..a631c2790c 100644 --- a/buildroot-patches/0018-linux-intree-overlays/buildroot/linux/linux.mk +++ b/buildroot-patches/0018-linux-intree-overlays/buildroot/linux/linux.mk @@ -461,8 +461,10 @@ endef endif # BR2_LINUX_KERNEL_APPENDED_DTB ifeq ($(BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS),y) define LINUX_INSTALL_OVERLAYS - install -D -t $(1)/overlays/ \ - $(wildcard $(LINUX_ARCH_PATH)/boot/dts/overlays/*.dtbo) + $(foreach ovldtb,$(wildcard $(LINUX_ARCH_PATH)/boot/dts/overlays/*.dtbo), \ + $(INSTALL) -D -m 0644 $(ovldtb) $(1)/overlays/$(notdir $(ovldtb)) + ) + $(INSTALL) -D -m 0644 $(LINUX_ARCH_PATH)/boot/dts/overlays/overlay_map.dtb $(1)/overlays/ endef endif # BR2_LINUX_KERNEL_INSTALL_INTREE_OVERLAYS endif # BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT