Skip to content

Commit b9ec3da

Browse files
hjourdainpopcornmix
authored andcommitted
build: support for .dtbo files for dtb overlays
Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb. Patch the kernel, which has faulty rules to generate .dtbo the way yocto does Signed-off-by: Herve Jourdain <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent c7db435 commit b9ec3da

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

arch/arm/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ $(INSTALL_TARGETS):
336336

337337
%.dtb: | scripts
338338
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
339+
%.dtbo: | scripts
340+
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
339341

340342
PHONY += dtbs dtbs_install
341343

scripts/Makefile.lib

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,9 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
313313
$(call if_changed_dep,dtc)
314314

315315
quiet_cmd_dtco = DTCO $@
316-
cmd_dtco = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
317-
$(objtree)/scripts/dtc/dtc -@ -H epapr -O dtb -o $@ -b 0 \
316+
cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
317+
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
318+
$(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
318319
-i $(dir $<) $(DTC_FLAGS) \
319320
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
320321
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)

0 commit comments

Comments
 (0)