From: Ahmad Fatoum <[email protected]>

CONFIG_FILE_LIST controls whether the file_list_* family of functions
are compiled. common/file-list.o does not register any initcalls and
there is no code that is dependent on it being available: it's selected
as required. This means linker GC can completely get rid of it if
required, so drop the symbol.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 common/Kconfig             | 4 ----
 common/Makefile            | 2 +-
 drivers/usb/gadget/Kconfig | 2 --
 net/Kconfig                | 1 -
 4 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/common/Kconfig b/common/Kconfig
index f9803dbb5219..8e14649ee27b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -80,9 +80,6 @@ config EFI_GUID
 config EFI_DEVICEPATH
        bool
 
-config FILE_LIST
-       bool
-
 config ARCH_DMA_ADDR_T_64BIT
        bool
 
@@ -106,7 +103,6 @@ config USBGADGET_START
        bool
        depends on CMD_USBGADGET || USB_GADGET_AUTOSTART
        select ENVIRONMENT_VARIABLES
-       select FILE_LIST
        default y
 
 config BOOT
diff --git a/common/Makefile b/common/Makefile
index 8d5a3a20b79a..181c27a59e98 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -65,7 +65,7 @@ obj-$(CONFIG_EFI_GUID)                += efi-guid.o
 obj-$(CONFIG_EFI_DEVICEPATH)   += efi-devicepath.o
 lwl-$(CONFIG_IMD)              += imd-barebox.o
 obj-$(CONFIG_IMD)              += imd.o
-obj-$(CONFIG_FILE_LIST)                += file-list.o
+obj-y                          += file-list.o
 obj-$(CONFIG_FIRMWARE)         += firmware.o
 obj-$(CONFIG_UBIFORMAT)                += ubiformat.o
 obj-$(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) += imx-bbu-nand-fcb.o
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 7e0c570914d7..4ed6cbbee1b9 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -45,7 +45,6 @@ comment "USB Gadget drivers"
 
 config USB_GADGET_DFU
        bool
-       select FILE_LIST
        prompt "Device Firmware Update Gadget"
 
 config USB_GADGET_SERIAL
@@ -56,7 +55,6 @@ config USB_GADGET_SERIAL
 config USB_GADGET_FASTBOOT
        bool
        select BANNER
-       select FILE_LIST
        select FASTBOOT_BASE
        prompt "Android Fastboot USB Gadget"
 endif
diff --git a/net/Kconfig b/net/Kconfig
index 1549c9af6bc1..3512055c456a 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -35,7 +35,6 @@ config NET_SNTP
 config NET_FASTBOOT
        bool
        select BANNER
-       select FILE_LIST
        select FASTBOOT_BASE
        prompt "Android Fastboot support"
        help
-- 
2.29.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to