make_targets: Add Kernel dtbs install support

This commit is contained in:
dchvs 2021-03-04 02:43:56 -06:00
parent 3dd32ccbb6
commit 801697c03b
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@ endif
# Helper targets for Installing Kernel into the boot directory
quiet_cmd_kernel_install = INSTALL $(2)
cmd_kernel_install = mkdir -p $(2); cp $(kernelinst-root)$(2) $(3);
cmd_kernel_install = mkdir -p $(2); cp $(kernelinst-root)$(2) $(4); cp -r $(kernelinst-root)/$(3) $(4)/dtb;
install-dir = $(patsubst $(kernelinst-root)%,$(INSTALL_PATH)%,$(obj))
__kernel_install:
$(call cmd,kernel_install,Image,$(install-dir))
$(call cmd,kernel_install,Image,dts/*,$(install-dir))
.PHONY: __kernel_install