mm/circbuf: Remove MM_CIRCBUF option from Kconfig

since the linker can remove the unused object file from the final image

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-11-06 00:18:52 +08:00
committed by Alan Carvalho de Assis
parent bcafc77cf8
commit a446b5816f
15 changed files with 0 additions and 22 deletions
@@ -25,7 +25,6 @@ CONFIG_DEFAULT_SMALL=y
CONFIG_FS_LITTLEFS=y CONFIG_FS_LITTLEFS=y
CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=1536 CONFIG_INIT_STACKSIZE=1536
CONFIG_MM_CIRCBUF=y
CONFIG_MM_SMALL=y CONFIG_MM_SMALL=y
CONFIG_MTD=y CONFIG_MTD=y
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6 CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
@@ -52,7 +52,6 @@ CONFIG_INTELHEX_BINARY=y
CONFIG_IOEXPANDER=y CONFIG_IOEXPANDER=y
CONFIG_IOEXPANDER_MULTIPIN=y CONFIG_IOEXPANDER_MULTIPIN=y
CONFIG_LIBC_EXECFUNCS=y CONFIG_LIBC_EXECFUNCS=y
CONFIG_MM_CIRCBUF=y
CONFIG_MM_SMALL=y CONFIG_MM_SMALL=y
CONFIG_MTD=y CONFIG_MTD=y
CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6 CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
@@ -37,7 +37,6 @@ CONFIG_INTELHEX_BINARY=y
CONFIG_LIBM=y CONFIG_LIBM=y
CONFIG_MCUBOOT_BOOTLOADER=y CONFIG_MCUBOOT_BOOTLOADER=y
CONFIG_MCUBOOT_VERSION="414ac87cfd8d9cedeb781f812ad6f5072e6d8a39" CONFIG_MCUBOOT_VERSION="414ac87cfd8d9cedeb781f812ad6f5072e6d8a39"
CONFIG_MM_CIRCBUF=y
CONFIG_MM_IOB=y CONFIG_MM_IOB=y
CONFIG_MM_REGIONS=4 CONFIG_MM_REGIONS=4
CONFIG_NSH_BUILTIN_APPS=y CONFIG_NSH_BUILTIN_APPS=y
@@ -48,7 +48,6 @@ CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y CONFIG_LIBC_STRERROR=y
CONFIG_MEMSET_64BIT=y CONFIG_MEMSET_64BIT=y
CONFIG_MEMSET_OPTSPEED=y CONFIG_MEMSET_OPTSPEED=y
CONFIG_MM_CIRCBUF=y
CONFIG_MM_IOB=y CONFIG_MM_IOB=y
CONFIG_MPFS_IHC_CLIENT=y CONFIG_MPFS_IHC_CLIENT=y
CONFIG_MPFS_IHC_LINUX_ON_HART4=0 CONFIG_MPFS_IHC_LINUX_ON_HART4=0
@@ -48,7 +48,6 @@ CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y CONFIG_LIBC_STRERROR=y
CONFIG_MEMSET_64BIT=y CONFIG_MEMSET_64BIT=y
CONFIG_MEMSET_OPTSPEED=y CONFIG_MEMSET_OPTSPEED=y
CONFIG_MM_CIRCBUF=y
CONFIG_MM_IOB=y CONFIG_MM_IOB=y
CONFIG_MPFS_IHC_CLIENT=y CONFIG_MPFS_IHC_CLIENT=y
CONFIG_MPFS_IHC_LINUX_ON_HART3=0 CONFIG_MPFS_IHC_LINUX_ON_HART3=0
@@ -62,7 +62,6 @@ CONFIG_MEMSET_64BIT=y
CONFIG_MEMSET_OPTSPEED=y CONFIG_MEMSET_OPTSPEED=y
CONFIG_MMCSD=y CONFIG_MMCSD=y
CONFIG_MMCSD_SDIO=y CONFIG_MMCSD_SDIO=y
CONFIG_MM_CIRCBUF=y
CONFIG_MM_IOB=y CONFIG_MM_IOB=y
CONFIG_MPFS_EMMCSD=y CONFIG_MPFS_EMMCSD=y
CONFIG_MPFS_UART2=y CONFIG_MPFS_UART2=y
@@ -71,7 +71,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y CONFIG_INTELHEX_BINARY=y
CONFIG_IOB_NBUFFERS=24 CONFIG_IOB_NBUFFERS=24
CONFIG_IOB_THROTTLE=0 CONFIG_IOB_THROTTLE=0
CONFIG_MM_CIRCBUF=y
CONFIG_MM_REGIONS=3 CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48 CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y CONFIG_NETDB_DNSCLIENT=y
-2
View File
@@ -32,12 +32,10 @@ endif # INPUT_MOUSE
config INPUT_TOUCHSCREEN config INPUT_TOUCHSCREEN
bool bool
select MM_CIRCBUF
default n default n
config INPUT_KEYBOARD config INPUT_KEYBOARD
bool bool
select MM_CIRCBUF
default n default n
config INPUT_UINPUT config INPUT_UINPUT
-1
View File
@@ -1,6 +1,5 @@
menuconfig IPCC menuconfig IPCC
bool "IPCC (Inter Processor Communication Controller) driver" bool "IPCC (Inter Processor Communication Controller) driver"
select MM_CIRCBUF
depends on EXPERIMENTAL depends on EXPERIMENTAL
default n default n
---help--- ---help---
-1
View File
@@ -5,7 +5,6 @@
menuconfig DRIVERS_RC menuconfig DRIVERS_RC
bool "Remote Control Device Support" bool "Remote Control Device Support"
select MM_CIRCBUF
default n default n
---help--- ---help---
Drivers for various remote control Drivers for various remote control
-1
View File
@@ -5,7 +5,6 @@
menuconfig SENSORS menuconfig SENSORS
bool "Sensor Device Support" bool "Sensor Device Support"
select MM_CIRCBUF
default n default n
---help--- ---help---
Drivers for various sensors Drivers for various sensors
-1
View File
@@ -714,7 +714,6 @@ endif # PSEUDOTERM
menuconfig UART_BTH4 menuconfig UART_BTH4
bool "BT H4 uart pseudo device" bool "BT H4 uart pseudo device"
default n default n
select MM_CIRCBUF
---help--- ---help---
Enable support for Bluetooth H4 UART Pseudo Device(eg. /dev/ttyHCI). Enable support for Bluetooth H4 UART Pseudo Device(eg. /dev/ttyHCI).
This instantiates a serial-like interface over an existing bluetooth This instantiates a serial-like interface over an existing bluetooth
-6
View File
@@ -165,12 +165,6 @@ config MM_SHM
Build in support for the shared memory interfaces shmget(), shmat(), Build in support for the shared memory interfaces shmget(), shmat(),
shmctl(), and shmdt(). shmctl(), and shmdt().
config MM_CIRCBUF
bool "Circular buffer support"
default n
---help---
Build in support for the circular buffer management.
config MM_MEMPOOL config MM_MEMPOOL
bool "Enable memory buffer pool" bool "Enable memory buffer pool"
default n default n
-2
View File
@@ -20,11 +20,9 @@
# Circular buffer management # Circular buffer management
ifeq ($(CONFIG_MM_CIRCBUF),y)
CSRCS += circbuf.c CSRCS += circbuf.c
# Add the circular buffer directory to the build # Add the circular buffer directory to the build
DEPPATH += --dep-path circbuf DEPPATH += --dep-path circbuf
VPATH += :circbuf VPATH += :circbuf
endif
-1
View File
@@ -9,7 +9,6 @@ menu "Rpmsg Socket Support"
config NET_RPMSG config NET_RPMSG
bool "Rpmsg domain (remote) sockets" bool "Rpmsg domain (remote) sockets"
depends on RPTUN depends on RPTUN
select MM_CIRCBUF
default n default n
---help--- ---help---
Enable or disable Rpmsg (aka remote) sockets. Enable or disable Rpmsg (aka remote) sockets.