From: Michael Brown Date: Fri, 16 Oct 2020 13:34:14 +0000 (+0100) Subject: [build] Provide a testable platform macro alongside -DPLATFORM X-Git-Tag: v1.21.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49fd66a8c9d94b7d66656ea5d844278109ee2eef;p=thirdparty%2Fipxe.git [build] Provide a testable platform macro alongside -DPLATFORM Signed-off-by: Michael Brown --- 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)