From 21d28f71b20c1d58e7abb039f12d2c61aadd3f0f Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 22:45:19 +0100 Subject: Added more kconfig options --- bin/Kbuild | 24 +++++++++++------------- bin/Kconfig | 21 +++++++++++++-------- bin/clear/Kbuild | 1 - bin/echo/Kbuild | 1 - bin/false/Kbuild | 2 -- 5 files changed, 24 insertions(+), 25 deletions(-) (limited to 'bin') diff --git a/bin/Kbuild b/bin/Kbuild index d33a8bbe..b06279b2 100644 --- a/bin/Kbuild +++ b/bin/Kbuild @@ -1,13 +1,11 @@ -obj-y += playground/ - -obj-y += basename/ -obj-y += clear/ -obj-y += echo/ -obj-y += false/ -obj-y += free/ -obj-y += gzip/ -obj-y += pwd/ -obj-y += sleep/ -obj-y += sync/ -obj-y += true/ -obj-y += yes/ +obj-$(CONFIG_BIN_BASENAME) += basename/ +obj-$(CONFIG_BIN_CLEAR) += clear/ +obj-$(CONFIG_BIN_ECHO) += echo/ +obj-$(CONFIG_BIN_FALSE) += false/ +obj-$(CONFIG_BIN_FREE) += free/ +obj-$(CONFIG_BIN_GZIP) += gzip/ +obj-$(CONFIG_BIN_PWD) += pwd/ +obj-$(CONFIG_BIN_SLEEP) += sleep/ +obj-$(CONFIG_BIN_SYNC) += sync/ +obj-$(CONFIG_BIN_TRUE) += true/ +obj-$(CONFIG_BIN_YES) += yes/ diff --git a/bin/Kconfig b/bin/Kconfig index 0dcab22e..67e4e63d 100644 --- a/bin/Kconfig +++ b/bin/Kconfig @@ -1,46 +1,51 @@ # bin/Kconfig -menu "Binary Utilities Configuration" +menu "Command-line tools" + config BIN_CLEAR bool "clear" default y + depends on LIB_LIBC help - Enable the 'clear' command to clear the terminal screen. + Build/Add the 'clear' command to clear the terminal screen. config BIN_ECHO bool "echo" default y + depends on LIB_LIBC help - Enable the 'echo' command to display a line of text. + Build/Add the 'echo' command to display a line of text. config BIN_FALSE bool "false" default y help - Enable the 'false' command which returns a non-zero exit status. + Build/Add the 'false' command which returns a non-zero exit status. config BIN_FREE bool "free" default y + depends on LIB_LIBC help - Enable the 'free' command to display memory usage. + Build/Add the 'free' command to display memory usage. config BIN_GZIP bool "gzip" default n + depends on LIB_LIBC && LIB_LIBM help - Enable the 'gzip' command to compress files using the gzip algorithm. + Build/Add the 'gzip' command to compress files using the gzip algorithm. config BIN_SYNC bool "sync" default y help - Enable the 'sync' command to flush filesystem buffers. + Build/Add the 'sync' command to flush filesystem buffers. config BIN_TRUE bool "true" default y help - Enable the 'true' command which returns a zero exit status. + Build/Add the 'true' command which returns a zero exit status. endmenu diff --git a/bin/clear/Kbuild b/bin/clear/Kbuild index 3e56e161..845df317 100644 --- a/bin/clear/Kbuild +++ b/bin/clear/Kbuild @@ -1,4 +1,3 @@ bin-y := clear obj-y += clear.o libs-y += $(srctree)/lib/libc/libc.a -install-y := bin/clear diff --git a/bin/echo/Kbuild b/bin/echo/Kbuild index 0f816ddf..00d6ecdd 100644 --- a/bin/echo/Kbuild +++ b/bin/echo/Kbuild @@ -1,4 +1,3 @@ bin-y := echo obj-y += echo.o libs-y += $(srctree)/lib/libc/libc.a -install-y := bin/echo diff --git a/bin/false/Kbuild b/bin/false/Kbuild index 2f8e102d..122d0838 100644 --- a/bin/false/Kbuild +++ b/bin/false/Kbuild @@ -1,4 +1,2 @@ bin-y := false obj-y += arch/ - -install-y := bin/false -- cgit v1.2.3