Browse Source

Makefile: add LPC32xx precondition for building platform images

To prevent accidental build failures the change converts a number of
NXP LPC32xx specific image targets to be conditionally dependent on
target build configuration. The wrapped image targets always contain
a U-Boot SPL binary and the images are supposed to be directly flashed
on a NAND flash device for read access by LPC32xx NAND MLC controller.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Vladimir Zapolskiy 3 years ago
parent
commit
e3e0819cbc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -1139,6 +1139,7 @@ OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
1139 1139
 u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
1140 1140
 	$(call if_changed,pad_cat)
1141 1141
 
1142
+ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy)
1142 1143
 MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE)
1143 1144
 
1144 1145
 lpc32xx-spl.img: spl/u-boot-spl.bin FORCE
@@ -1158,6 +1159,7 @@ lpc32xx-full.bin: lpc32xx-boot-0.bin lpc32xx-boot-1.bin u-boot.img FORCE
1158 1159
 	$(call if_changed,cat)
1159 1160
 
1160 1161
 CLEAN_FILES += lpc32xx-*
1162
+endif
1161 1163
 
1162 1164
 OBJCOPYFLAGS_u-boot-with-tpl.bin = -I binary -O binary \
1163 1165
 				   --pad-to=$(CONFIG_TPL_PAD_TO)