]> git.sur5r.net Git - u-boot/commitdiff
kbuild,mxs: use short logs for MXS images
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 11 Mar 2014 02:05:11 +0000 (11:05 +0900)
committerTom Rini <trini@ti.com>
Wed, 12 Mar 2014 21:04:37 +0000 (17:04 -0400)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Lauri Hintsala <lauri.hintsala@bluegiga.com>
Acked-by: Marek Vasut <marex@denx.de>
Makefile
arch/arm/cpu/arm926ejs/mxs/Makefile
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg
arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd
arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd

index b7953382b5d002c351895be69850416f743d4a5f..0df378009f2eec7d1b5843676f057fa6700e4fd1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -858,7 +858,7 @@ u-boot.ais: spl/u-boot-spl.ais u-boot.img FORCE
        $(call if_changed,pad_cat)
 
 u-boot.sb: u-boot.bin spl/u-boot-spl.bin
-       $(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs $(objtree)/u-boot.sb
+       $(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs u-boot.sb
 
 # On x600 (SPEAr600) U-Boot is appended to U-Boot SPL.
 # Both images are created using mkimage (crc etc), so that the ROM
index 152546eb417a321031559c809b5827827026f9ca..1eee66111c2bc5ea6799e4a0c16d368bafb685fa 100644 (file)
@@ -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)
index c9cf4b3629463aa52c6862a8a4790f8dbbc52db8..811876736c22c3471177f01adae7faabe7218073 100644 (file)
@@ -1,6 +1,6 @@
 SECTION 0x0 BOOTABLE
  TAG LAST
- LOAD     0x0        OBJTREE/spl/u-boot-spl.bin
+ LOAD     0x0        spl/u-boot-spl.bin
  CALL     0x14       0x0
- LOAD     0x40000100 OBJTREE/u-boot.bin
+ LOAD     0x40000100 u-boot.bin
  CALL     0x40000100 0x0
index 676f5c8f77ee7d0876d5d823f41629885b2e49c6..ea772f0c869f1819b2099cd7ecc76c0e4b86edb2 100644 (file)
@@ -1,8 +1,8 @@
 SECTION 0x0 BOOTABLE
  TAG LAST
- LOAD     0x0        OBJTREE/spl/u-boot-spl.bin
+ LOAD     0x0        spl/u-boot-spl.bin
  LOAD IVT 0x8000     0x14
  CALL HAB 0x8000     0x0
- LOAD     0x40000100 OBJTREE/u-boot.bin
+ LOAD     0x40000100 u-boot.bin
  LOAD IVT 0x8000     0x40000100
  CALL HAB 0x8000     0x0
index 8b6c30e8e9b02cdd0fa0da8e18be70c81aa3385d..3a51879d5e4abb64b2a0ee096bfc78ae4710cf3a 100644 (file)
@@ -4,8 +4,8 @@ options {
 }
 
 sources {
-       u_boot_spl="OBJTREE/spl/u-boot-spl.bin";
-       u_boot="OBJTREE/u-boot.bin";
+       u_boot_spl="spl/u-boot-spl.bin";
+       u_boot="u-boot.bin";
 }
 
 section (0) {
index a5fa6483a93cbf241f3ff96b5609ee6b5f27d998..c60615a45671a59145aecd43e61a209bd9216b3f 100644 (file)
@@ -1,6 +1,6 @@
 sources {
-       u_boot_spl="OBJTREE/spl/u-boot-spl.bin";
-       u_boot="OBJTREE/u-boot.bin";
+       u_boot_spl="spl/u-boot-spl.bin";
+       u_boot="u-boot.bin";
 }
 
 section (0) {