You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
scripts: install dtbo files to kernel packages
Signed-off-by: Stephen Chen <stephen@radxa.com>
This commit is contained in:
committed by
Mecid Urganci
parent
cef9074639
commit
d8da9c0ce8
2
arch/arm/boot/.gitignore
vendored
2
arch/arm/boot/.gitignore
vendored
@@ -4,3 +4,5 @@ zImage
|
||||
xipImage
|
||||
bootpImage
|
||||
uImage
|
||||
*.dtb*
|
||||
*.scr
|
||||
2
arch/arm64/boot/.gitignore
vendored
2
arch/arm64/boot/.gitignore
vendored
@@ -2,3 +2,5 @@
|
||||
Image
|
||||
Image.gz
|
||||
vmlinuz*
|
||||
*.dtb*
|
||||
*.scr
|
||||
@@ -18,9 +18,11 @@ include $(srctree)/scripts/Kbuild.include
|
||||
include $(src)/Makefile
|
||||
|
||||
dtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-)))
|
||||
dtbos := $(addprefix $(dst)/, $(dtbo-y))
|
||||
readmes := $(addprefix $(dst)/, $(dtbotxt-y))
|
||||
subdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m))
|
||||
|
||||
__dtbs_install: $(dtbs) $(subdirs)
|
||||
__dtbs_install: $(dtbs) $(dtbos) $(readmes) $(subdirs)
|
||||
@:
|
||||
|
||||
quiet_cmd_dtb_install = INSTALL $@
|
||||
@@ -32,6 +34,9 @@ $(dst)/%.dtb: $(obj)/%.dtb
|
||||
$(dst)/%.dtbo: $(obj)/%.dtbo
|
||||
$(call cmd,dtb_install)
|
||||
|
||||
$(dst)/README.rockchip-overlays: $(src)/README.rockchip-overlays
|
||||
$(call cmd,dtb_install)
|
||||
|
||||
PHONY += $(subdirs)
|
||||
$(subdirs):
|
||||
$(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@)
|
||||
|
||||
@@ -349,6 +349,9 @@ ifeq ($(CONFIG_DTC_OMIT_EMPTY),y)
|
||||
DTC_FLAGS += -Wnode_empty
|
||||
endif
|
||||
|
||||
# Overlay support
|
||||
DTC_FLAGS += -@ -Wno-unit_address_format -Wno-simple_bus_reg
|
||||
|
||||
# Disable noisy checks by default
|
||||
ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),)
|
||||
DTC_FLAGS += -Wno-unit_address_vs_reg \
|
||||
@@ -425,6 +428,17 @@ $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
|
||||
$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
|
||||
$(call if_changed_dep,dtc)
|
||||
|
||||
quiet_cmd_dtco = DTCO $@
|
||||
cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
|
||||
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
||||
$(DTC) -O dtb -o $@ -b 0 \
|
||||
-i $(dir $<) $(DTC_FLAGS) \
|
||||
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
|
||||
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
|
||||
|
||||
$(obj)/%.dtbo: $(src)/%.dts FORCE
|
||||
$(call if_changed_dep,dtco)
|
||||
|
||||
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
|
||||
|
||||
# Bzip2
|
||||
|
||||
Reference in New Issue
Block a user