summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 22:45:19 +0100
committerKacper Fiedorowicz <kf@efab.pl>2025-12-25 23:09:24 +0100
commit21d28f71b20c1d58e7abb039f12d2c61aadd3f0f (patch)
tree17d368252543872600c8eefb6f0b5410f7edced2 /bin
parente691a7ff9a4cc0581e9e7f504125c9ecba176221 (diff)
Added more kconfig options
Diffstat (limited to 'bin')
-rw-r--r--bin/Kbuild24
-rw-r--r--bin/Kconfig21
-rw-r--r--bin/clear/Kbuild1
-rw-r--r--bin/echo/Kbuild1
-rw-r--r--bin/false/Kbuild2
5 files changed, 24 insertions, 25 deletions
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