aboutsummaryrefslogtreecommitdiffstats
path: root/mk/com32.mk
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2014-02-27 21:43:18 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2014-02-27 21:43:54 -0800
commit929b217f46ac45cc0bf7cbbaf77575ad0a17f94f (patch)
treea7768c2a5c034fda581609dd59c4b6acd5f4dba2 /mk/com32.mk
parent2702e0bdb70c4b6de530ad2205858154e47f2b33 (diff)
downloadsyslinux-929b217f46ac45cc0bf7cbbaf77575ad0a17f94f.tar.gz
syslinux-929b217f46ac45cc0bf7cbbaf77575ad0a17f94f.tar.xz
syslinux-929b217f46ac45cc0bf7cbbaf77575ad0a17f94f.zip
Makefiles: export the firmware type as a cpp variable
Export the firmware type as a cpp variable so we can #ifdef. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mk/com32.mk')
-rw-r--r--mk/com32.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/com32.mk b/mk/com32.mk
index 55dc10c2..9a3b19d3 100644
--- a/mk/com32.mk
+++ b/mk/com32.mk
@@ -64,12 +64,12 @@ GPLINCLUDE =
endif
CFLAGS = $(GCCOPT) $(GCCWARN) \
- -fomit-frame-pointer -D__COM32__ \
+ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \
-nostdinc -iwithprefix include \
-I$(com32)/libutil/include -I$(com32)/include \
-I$(com32)/include/sys $(GPLINCLUDE)
SFLAGS = $(GCCOPT) $(GCCWARN) \
- -fomit-frame-pointer -D__COM32__ \
+ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \
-nostdinc -iwithprefix include \
-I$(com32)/libutil/include -I$(com32)/include \
-I$(com32)/include/sys $(GPLINCLUDE)