]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/Makefile
applied patches from Freescale and Ka-Ro
[karo-tx-uboot.git] / tools / Makefile
index b5a1e39b02276ae20498aa0709cb111e49612171..9d4cf3af5f81252634420a2417d179ee38139e52 100644 (file)
@@ -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