diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 22:45:19 +0100 |
|---|---|---|
| committer | Kacper Fiedorowicz <kf@efab.pl> | 2025-12-25 23:09:24 +0100 |
| commit | 21d28f71b20c1d58e7abb039f12d2c61aadd3f0f (patch) | |
| tree | 17d368252543872600c8eefb6f0b5410f7edced2 /lib | |
| parent | e691a7ff9a4cc0581e9e7f504125c9ecba176221 (diff) | |
Added more kconfig options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kbuild | 4 | ||||
| -rw-r--r-- | lib/Kconfig | 24 | ||||
| -rw-r--r-- | lib/libc/Kbuild | 3 | ||||
| -rw-r--r-- | lib/libm/Kbuild | 3 |
4 files changed, 28 insertions, 6 deletions
@@ -1,2 +1,2 @@ -obj-y += libc/ -obj-y += libm/ +obj-$(CONFIG_LIB_LIBC) += libc/ +obj-$(CONFIG_LIB_LIBM) += libm/ diff --git a/lib/Kconfig b/lib/Kconfig new file mode 100644 index 00000000..d5854b78 --- /dev/null +++ b/lib/Kconfig @@ -0,0 +1,24 @@ +# lib/Kconfig + +menu "Libraries" + +config LIB_LIBC + tristate "libc" + default m + help + Build/Add the 'libc' library. + +config LIB_LIBC_HEADERS + bool "libc headers" + default n + help + Add the 'libc' library headers. + + +config LIB_LIBM + tristate "libm" + default n + help + Build/Add the 'libm' library. + +endmenu diff --git a/lib/libc/Kbuild b/lib/libc/Kbuild index 60ab4f8e..762c95aa 100644 --- a/lib/libc/Kbuild +++ b/lib/libc/Kbuild @@ -1,5 +1,4 @@ -lib-y := libc.a -install-y := lib/libc.a +lib-$(CONFIG_LIB_LIBC) := libc.a cflags-y += -I $(src)/internal/include diff --git a/lib/libm/Kbuild b/lib/libm/Kbuild index 7dc47f30..b857231d 100644 --- a/lib/libm/Kbuild +++ b/lib/libm/Kbuild @@ -1,5 +1,4 @@ -lib-y := libm.a -install-y := lib/libm.a +lib-$(CONFIG_LIB_LIBM) := libm.a obj-y += __cos.o obj-y += __cosdf.o |
