From 6405d6f874689fb6285c76dea5a98f3667eb0aaa Mon Sep 17 00:00:00 2001 From: Kedar Sovani Date: Thu, 10 Aug 2017 10:46:36 +0530 Subject: [PATCH] kconfig: Add an option for skipping binary blobs --- components/esp32/Kconfig | 8 ++++++++ components/esp32/component.mk | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/esp32/Kconfig b/components/esp32/Kconfig index 4cdf010009..c5d410f762 100644 --- a/components/esp32/Kconfig +++ b/components/esp32/Kconfig @@ -560,6 +560,14 @@ config ESP32_XTAL_FREQ endmenu +config NO_BLOBS + bool "No Binary Blobs" + depends on !BT_ENABLED + default n + help + If enabled, this disables the linking of binary libraries in the application build. Note + that after enabling this Wi-Fi/Bluetooth will not work. + menu Wi-Fi config SW_COEXIST_ENABLE diff --git a/components/esp32/component.mk b/components/esp32/component.mk index ee8e5c5795..32876da0ee 100644 --- a/components/esp32/component.mk +++ b/components/esp32/component.mk @@ -7,7 +7,9 @@ CFLAGS += -DBOOTLOADER_BUILD #endif COMPONENT_SRCDIRS := . hwcrypto -LIBS := core rtc net80211 pp wpa smartconfig coexist wps wpa2 phy coexist +ifndef CONFIG_NO_BLOBS +LIBS := core rtc net80211 pp wpa smartconfig coexist wps wpa2 phy +endif LINKER_SCRIPTS += esp32.common.ld esp32.rom.ld esp32.peripherals.ld