[PATCH] Add CONFIG_CHROMIUM option

Matthew Wang matthewmwang at chromium.org
Wed Dec 20 12:23:09 PST 2023


Hide ChromeOS specific code behind a flag.

Signed-off-by: Matthew Wang <matthewmwang at chromium.org>
---
 wpa_supplicant/Makefile  | 4 ++++
 wpa_supplicant/defconfig | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 46e20f44a..76a2f1f06 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -491,6 +491,10 @@ else
 OBJS += robust_av.o
 endif
 
+ifdef CONFIG_CHROMIUM
+CFLAGS += -DCHROMIUM
+endif
+
 include ../src/drivers/drivers.mak
 ifdef CONFIG_AP
 OBJS_d += $(DRV_BOTH_OBJS)
diff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig
index 60d1bfc57..d2abef891 100644
--- a/wpa_supplicant/defconfig
+++ b/wpa_supplicant/defconfig
@@ -293,6 +293,9 @@ CONFIG_BACKEND=file
 # none = Empty template
 #CONFIG_OS=unix
 
+# Is the operating system ChromeOS? Not defined by default.
+#CONFIG_CHROMIUM=y
+
 # Select event loop implementation
 # eloop = select() loop (default)
 # eloop_win = Windows events and WaitForMultipleObject() loop
-- 
2.43.0.472.g3155946c3a-goog




More information about the Hostap mailing list