summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorJason <r64343@freescale.com>2009-06-08 20:13:39 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:02:18 +0800
commit05a4055d2f48a9941c1b47528dcc015d10e979e5 (patch)
tree095d9817956d54d8f52265e8786c4296997bd095 /tools/Makefile
parent5001b99606655a6f91984afb54625e4af1ed1058 (diff)
downloadu-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.zip
u-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.tar.gz
u-boot-imx-05a4055d2f48a9941c1b47528dcc015d10e979e5.tar.bz2
ENGR00113148 Add build option to uboot for different media type
1. Add build option to uboot for different media type 2. fix the spi-nor link error Signed-off-by:Jason Liu <r64343@freescale.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index b5a1e39..9d4cf3a 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -150,6 +150,11 @@ CPPFLAGS = -idirafter $(SRCTREE)/include \
-D__KERNEL_STRICT_NAMES
CFLAGS = $(HOSTCFLAGS) $(CPPFLAGS) -O
+ifneq ($(BOOT_MEDIA),)
+ BOOT_MEDIA_MACRO := BOOT_MEDIA_$(shell echo $(BOOT_MEDIA) | tr '[a-z]' '[A-Z]')
+ CPPFLAGS += -D$(BOOT_MEDIA_MACRO)
+endif
+
# No -pedantic switch to avoid libfdt compilation warnings
FIT_CFLAGS = -Wall $(CPPFLAGS) -O