mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 04:14:34 +00:00
imx: add rules for U-Boot DTB support
Signed-off-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
bb2637be09
commit
e64348f5eb
3 changed files with 15 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -757,6 +757,9 @@ dtbs dts/dt.dtb: checkdtc u-boot
|
||||||
u-boot-dtb.bin: u-boot.bin dts/dt.dtb FORCE
|
u-boot-dtb.bin: u-boot.bin dts/dt.dtb FORCE
|
||||||
$(call if_changed,cat)
|
$(call if_changed,cat)
|
||||||
|
|
||||||
|
%.imx: %.bin
|
||||||
|
$(Q)$(MAKE) $(build)=arch/arm/imx-common $@
|
||||||
|
|
||||||
quiet_cmd_copy = COPY $@
|
quiet_cmd_copy = COPY $@
|
||||||
cmd_copy = cp $< $@
|
cmd_copy = cp $< $@
|
||||||
|
|
||||||
|
@ -810,9 +813,6 @@ MKIMAGEFLAGS_u-boot.pbl = -n $(CONFIG_SYS_FSL_PBL_RCW) \
|
||||||
u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE
|
u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE
|
||||||
$(call if_changed,mkimage)
|
$(call if_changed,mkimage)
|
||||||
|
|
||||||
u-boot.imx: u-boot.bin
|
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/imx-common $@
|
|
||||||
|
|
||||||
u-boot.sha1: u-boot.bin
|
u-boot.sha1: u-boot.bin
|
||||||
tools/ubsha1 u-boot.bin
|
tools/ubsha1 u-boot.bin
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,10 @@ ifndef CONFIG_SPL_BUILD
|
||||||
ALL-y += SPL
|
ALL-y += SPL
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
ifeq ($(CONFIG_OF_SEPARATE),y)
|
||||||
|
ALL-y += u-boot-dtb.imx
|
||||||
|
else
|
||||||
ALL-y += u-boot.imx
|
ALL-y += u-boot.imx
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
|
@ -42,6 +42,14 @@ MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
|
||||||
u-boot.imx: u-boot.bin $(IMX_CONFIG) FORCE
|
u-boot.imx: u-boot.bin $(IMX_CONFIG) FORCE
|
||||||
$(call if_changed,mkimage)
|
$(call if_changed,mkimage)
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_OF_SEPARATE),y)
|
||||||
|
MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
|
||||||
|
-e $(CONFIG_SYS_TEXT_BASE)
|
||||||
|
|
||||||
|
u-boot-dtb.imx: u-boot-dtb.bin $(IMX_CONFIG) FORCE
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
endif
|
||||||
|
|
||||||
MKIMAGEFLAGS_SPL = -n $(filter-out $< $(PHONY),$^) -T imximage \
|
MKIMAGEFLAGS_SPL = -n $(filter-out $< $(PHONY),$^) -T imximage \
|
||||||
-e $(CONFIG_SPL_TEXT_BASE)
|
-e $(CONFIG_SPL_TEXT_BASE)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue