aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAyrton Munoz <ayrton@google.com>2022-09-05 23:38:34 -0400
committerAyrton Munoz <ayrton@google.com>2022-09-07 14:10:19 -0400
commit4a22d09f517984f12a89eda1a822b87e85c2b45c (patch)
treee19887a68479f0cb920731f0af595211594bcbb5 /lib
parentdeb4ef75d6ee02bd3c2cb1e5f7bdd1bf7d0b8a86 (diff)
downloadcommon-4a22d09f517984f12a89eda1a822b87e85c2b45c.tar.gz
lib/libc: Move LK-specific libc headers to new directory
This change moves LK libc headers that musl requires to `lib/libc/include_common` and adds the directory to `GLOBAL_INCLUDES`. This allows using these headers without duplicating them in the kernel musl module. Bug: 230134581 Change-Id: I0dc97cd2ad1bad5bf5792ffcd615e04499ca6caf
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/include_common/assert.h (renamed from lib/libc/include/assert.h)0
-rw-r--r--lib/libc/include_common/iovec.h (renamed from lib/libc/include/iovec.h)0
-rw-r--r--lib/libc/include_common/printf.h (renamed from lib/libc/include/printf.h)0
-rw-r--r--lib/libc/include_common/rand.h (renamed from lib/libc/include/rand.h)0
-rw-r--r--lib/libc/rules.mk2
5 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/include/assert.h b/lib/libc/include_common/assert.h
index 21d109a5..21d109a5 100644
--- a/lib/libc/include/assert.h
+++ b/lib/libc/include_common/assert.h
diff --git a/lib/libc/include/iovec.h b/lib/libc/include_common/iovec.h
index e72accc5..e72accc5 100644
--- a/lib/libc/include/iovec.h
+++ b/lib/libc/include_common/iovec.h
diff --git a/lib/libc/include/printf.h b/lib/libc/include_common/printf.h
index 5eb2d132..5eb2d132 100644
--- a/lib/libc/include/printf.h
+++ b/lib/libc/include_common/printf.h
diff --git a/lib/libc/include/rand.h b/lib/libc/include_common/rand.h
index 8155493d..8155493d 100644
--- a/lib/libc/include/rand.h
+++ b/lib/libc/include_common/rand.h
diff --git a/lib/libc/rules.mk b/lib/libc/rules.mk
index ab2baad9..0cf7cd1b 100644
--- a/lib/libc/rules.mk
+++ b/lib/libc/rules.mk
@@ -18,6 +18,8 @@ MODULE_DEFINES += \
$(info KERNEL_LIBC_RANDSEED = $(KERNEL_LIBC_RANDSEED))
+GLOBAL_INCLUDES += $(LOCAL_DIR)/include_common
+
MODULE_SRCS += \
$(LOCAL_DIR)/atoi.c \
$(LOCAL_DIR)/bsearch.c \