summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2020-10-16 15:34:14 +0200
committerMichael Brown2020-10-16 16:16:00 +0200
commit49fd66a8c9d94b7d66656ea5d844278109ee2eef (patch)
treeb557d6d766be73af0dac8e90ee973ab34d5c4f6b /src
parent[ipv6] Reduce time spent waiting for router discovery (diff)
downloadipxe-49fd66a8c9d94b7d66656ea5d844278109ee2eef.tar.gz
ipxe-49fd66a8c9d94b7d66656ea5d844278109ee2eef.tar.xz
ipxe-49fd66a8c9d94b7d66656ea5d844278109ee2eef.zip
[build] Provide a testable platform macro alongside -DPLATFORM
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 134becd50..cac6efcfd 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -342,7 +342,7 @@ arch :
# Determine build platform
DEFAULT_PLATFORM := pcbios
PLATFORM := $(firstword $(BIN_PLATFORM) $(DEFAULT_PLATFORM))
-CFLAGS += -DPLATFORM=$(PLATFORM)
+CFLAGS += -DPLATFORM=$(PLATFORM) -DPLATFORM_$(PLATFORM)
platform :
@$(ECHO) $(PLATFORM)