summaryrefslogtreecommitdiff
path: root/src/drivers/wifi/generic/Makefile.inc
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-10-27 15:28:21 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-11-02 06:12:57 +0000
commit507a98b689975561b54e5e156d624f7dcad6d393 (patch)
tree6bb91c1bb2812522e8319836de6ea87b2a48ba4d /src/drivers/wifi/generic/Makefile.inc
parent2b5be8857bf90b8136558279f36d86371d303095 (diff)
drivers/wifi/generic: Move SMBIOS functions to a separate file
This change reorganizes the WiFi generic driver to move the SMBIOS functions to a separate file. This change is done to reduce the noise in generic.c file and improve readability of the file. Change-Id: I38ed46f5ae1594945d2078b00e8315d9234f36d7 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46859 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/drivers/wifi/generic/Makefile.inc')
-rw-r--r--src/drivers/wifi/generic/Makefile.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/drivers/wifi/generic/Makefile.inc b/src/drivers/wifi/generic/Makefile.inc
index 407041afce..3683c3eaad 100644
--- a/src/drivers/wifi/generic/Makefile.inc
+++ b/src/drivers/wifi/generic/Makefile.inc
@@ -1,5 +1,11 @@
-ramstage-$(CONFIG_DRIVERS_WIFI_GENERIC) += generic.c
+
+ifeq ($(CONFIG_DRIVERS_WIFI_GENERIC),y)
+
+ramstage-y += generic.c
+ramstage-$(CONFIG_GENERATE_SMBIOS_TABLES) += smbios.c
cbfs-files-$(CONFIG_WIFI_SAR_CBFS) += wifi_sar_defaults.hex
wifi_sar_defaults.hex-file := $(call strip_quotes,$(CONFIG_WIFI_SAR_CBFS_FILEPATH))
wifi_sar_defaults.hex-type := raw
+
+endif