aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 'core')
-rw-r--r--core/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index a7503ef4..14c10c2a 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -102,7 +102,8 @@ NASMOPT += $(NASMDEBUG)
PREPCORE = $(OBJ)/../lzo/prepcore
-CFLAGS += -D__SYSLINUX_CORE__ -I$(objdir) -DLDLINUX=\"$(LDLINUX)\"
+CFLAGS += -D__SYSLINUX_CORE__ -D__FIRMWARE_$(FIRMWARE)__ \
+ -I$(objdir) -DLDLINUX=\"$(LDLINUX)\"
# The DATE is set on the make command line when building binaries for
# official release. Otherwise, substitute a hex string that is pretty much