Attention is currently required from: Thomas Heijligen.
Peter Stuge has uploaded this change for review.
Makefile, meson: Add IS_DARWIN analog to IS_WINDOWS
Change-Id: I44ae7dbcd17079e07e2cea8354325ed45d9310e3
Signed-off-by: Peter Stuge <peter@stuge.se>
---
M Makefile
M meson.build
2 files changed, 21 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/70/70570/1
diff --git a/Makefile b/Makefile
index f92cefd..729ff7a 100644
--- a/Makefile
+++ b/Makefile
@@ -260,6 +260,12 @@
override CFLAGS += -Iinclude
+ifeq ($(TARGET_OS), Darwin)
+FEATURE_FLAGS += -D'IS_DARWIN=1'
+else
+FEATURE_FLAGS += -D'IS_DARWIN=0'
+endif
+
ifeq ($(TARGET_OS), DOS)
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.
override CFLAGS += -Wno-format
diff --git a/meson.build b/meson.build
index 722822c..a93b1f9 100644
--- a/meson.build
+++ b/meson.build
@@ -100,6 +100,11 @@
else
add_project_arguments('-DIS_WINDOWS=0', language : 'c')
endif
+if host_machine.system() == 'darwin'
+ add_project_arguments('-DIS_DARWIN=1', language : 'c')
+else
+ add_project_arguments('-DIS_DARWIN=0', language : 'c')
+endif
if host_machine.system() == 'linux'
custom_baud_c = 'custom_baud_linux.c'
To view, visit change 70570. To unsubscribe, or for help writing mail filters, visit settings.