]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel: fix dtb installation on 32bit arm aarch64
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 22 Jun 2018 04:40:32 +0000 (06:40 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 22 Jun 2018 04:40:32 +0000 (06:40 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/linux

index 4355daa9f7814f9628f6e61d4ea055c5aaee6f08..4120a08ce4285ed498f321900ccb6e517fd60f61 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -197,11 +197,13 @@ endif
 
 ifeq "$(BUILD_PLATFORM)" "arm"
        cd $(DIR_APP) && make $(MAKETUNING) dtbs
-       mkdir -p /boot/dtb-$(VER)-$(VERSUFIX)
-       cd $(DIR_APP)/arch/$(HEADERS_ARCH)/boot/dts && for f in $$(find -name *.dtb); do \
-                               cp -v --parents $$f /boot/dtb-$(VER)-$(VERSUFIX)/ ; \
-                               chmod 644 /boot/dtb-$(VER)-$(VERSUFIX)/$$f ; \
+       rm -rf /boot/dts /boot/dtb-$(VER)-$(VERSUFIX)
+       mkdir -p /boot/dts
+       cd $(DIR_APP)/arch/$(HEADERS_ARCH)/boot/ && for f in $$(find -name *.dtb); do \
+                               cp -v --parents $$f /boot/ ; \
+                               chmod 644 /boot/$$f ; \
                        done
+       mv /boot/dts /boot/dtb-$(VER)-$(VERSUFIX)
 endif
 
 ifeq "$(LASTKERNEL)" "1"