diff options
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 5 |
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 |