diff options
| author | Michal Simek <[email protected]> | 2019-03-23 11:13:00 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2019-04-16 11:52:02 +0200 |
| commit | c8c5e2b84d5d928472b68a51854b727ee90295b2 (patch) | |
| tree | 57449eafec708924a1e7b77f2d225d2c132097ec | |
| parent | 31f7ce7f9bfd41c996b33f7568718462bbfe5b45 (diff) | |
Makefile: Prioritize external dtb if defined
Prioritize external dtb if its passed via EXT_DTB
than the dtb that was built in the tree. With this
patch it appends the specified external dtb to
the u-boot image.
Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1052,8 +1052,13 @@ MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ -a 0 -e 0 -E \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null +ifneq ($(EXT_DTB),) +u-boot-fit-dtb.bin: u-boot-nodtb.bin $(EXT_DTB) + $(call if_changed,cat) +else u-boot-fit-dtb.bin: u-boot-nodtb.bin $(FINAL_DTB_CONTAINER) $(call if_changed,cat) +endif u-boot.bin: u-boot-fit-dtb.bin FORCE $(call if_changed,copy) |
