summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-05-03 13:49:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-12 07:59:59 +0200
commitfab1f406fdb82f2876f48c3c9e33672c963809e2 (patch)
tree2a801a7ba42596d1c358f94ee3c34b1eed392c8c /common
parentd0f115bb774b4c013be2852296836dadd2d73aa4 (diff)
downloadbarebox-fab1f406fdb82f2876f48c3c9e33672c963809e2.tar.gz
barebox-fab1f406fdb82f2876f48c3c9e33672c963809e2.tar.xz
common: make FILE_LIST feature unconditional
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 <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210503114901.13095-16-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig4
-rw-r--r--common/Makefile2
2 files changed, 1 insertions, 5 deletions
diff --git a/common/Kconfig b/common/Kconfig
index bddf802d3b..bf8054028b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -91,9 +91,6 @@ config EFI_GUID
config EFI_DEVICEPATH
bool
-config FILE_LIST
- bool
-
config ARCH_DMA_ADDR_T_64BIT
bool
@@ -117,7 +114,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 c0b45d263e..17e2ff1129 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