mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 16:38:53 +09:00
imx: build flash.bin for i.MX8
Build flash.bin for i.MX8 when SPL enabled. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
b184a796a0
commit
caceb739ea
2
Makefile
2
Makefile
@ -1254,7 +1254,7 @@ tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin FORCE
|
|||||||
SPL: spl/u-boot-spl.bin FORCE
|
SPL: spl/u-boot-spl.bin FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_IMX8M), y)
|
ifeq ($(CONFIG_ARCH_IMX8M)$(CONFIG_ARCH_IMX8), y)
|
||||||
flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
|
flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||||
endif
|
endif
|
||||||
|
@ -106,6 +106,7 @@ IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%)
|
|||||||
ifeq ($(CONFIG_ARCH_IMX8), y)
|
ifeq ($(CONFIG_ARCH_IMX8), y)
|
||||||
CNTR_DEPFILES := $(srctree)/tools/imx_cntr_image.sh
|
CNTR_DEPFILES := $(srctree)/tools/imx_cntr_image.sh
|
||||||
IMAGE_TYPE := imx8image
|
IMAGE_TYPE := imx8image
|
||||||
|
SPL_DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o spl/u-boot-spl.cfgout $(srctree)/$(IMX_CONFIG); if [ -f spl/u-boot-spl.cfgout ]; then $(CNTR_DEPFILES) spl/u-boot-spl.cfgout; echo $$?; fi)
|
||||||
DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
|
DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
|
||||||
else ifeq ($(CONFIG_ARCH_IMX8M), y)
|
else ifeq ($(CONFIG_ARCH_IMX8M), y)
|
||||||
IMAGE_TYPE := imx8mimage
|
IMAGE_TYPE := imx8mimage
|
||||||
@ -154,6 +155,18 @@ ifeq ($(DEPFILE_EXISTS),0)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_IMX8), y)
|
||||||
|
SPL:
|
||||||
|
|
||||||
|
MKIMAGEFLAGS_flash.bin = -n spl/u-boot-spl.cfgout -T $(IMAGE_TYPE) -e 0x100000
|
||||||
|
flash.bin: MKIMAGEOUTPUT = flash.log
|
||||||
|
|
||||||
|
flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
|
||||||
|
ifeq ($(SPL_DEPFILE_EXISTS),0)
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
MKIMAGEFLAGS_SPL = -n $(filter-out $(PLUGIN).bin $< $(PHONY),$^) \
|
MKIMAGEFLAGS_SPL = -n $(filter-out $(PLUGIN).bin $< $(PHONY),$^) \
|
||||||
-T $(IMAGE_TYPE) -e $(CONFIG_SPL_TEXT_BASE)
|
-T $(IMAGE_TYPE) -e $(CONFIG_SPL_TEXT_BASE)
|
||||||
|
Loading…
Reference in New Issue
Block a user