|
@@ -14,11 +14,12 @@ obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
|
|
|
endif
|
|
|
|
|
|
# Specify the target for use in elftosb call
|
|
|
-MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
|
|
|
-MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
|
|
|
+MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
|
|
|
+MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
|
|
|
|
|
|
-$(OBJTREE)/mxsimage.cfg: $(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg
|
|
|
- sed "s@OBJTREE@$(OBJTREE)@g" $^ > $@
|
|
|
+quiet_cmd_mkimage_mxs = UIMAGE $@
|
|
|
+cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
|
|
|
+ $(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
|
|
|
|
|
-$(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/mxsimage.cfg
|
|
|
- $(OBJTREE)/tools/mkimage -n $(OBJTREE)/mxsimage.cfg -T mxsimage $@
|
|
|
+u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE
|
|
|
+ $(call if_changed,mkimage_mxs)
|