diff 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 |
