]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Provide a testable platform macro alongside -DPLATFORM
authorMichael Brown <mcb30@ipxe.org>
Fri, 16 Oct 2020 13:34:14 +0000 (14:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 16 Oct 2020 14:16:00 +0000 (15:16 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index 134becd508c2f7f7c01c2f601d36284d0aa6e4bf..cac6efcfd12e8a1873c487e043c176a60e3d4ae7 100644 (file)
@@ -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)