From 3c50e6cf145ef8e9d661a80d40e85bceefca7dfa Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 24 Apr 2024 23:38:14 -0400 Subject: build: Export some sys/*.h headers Signed-off-by: Ian Moffett --- Makefile.in | 1 + builddeps/sysexports | 10 ++++++++++ lib/libc/.gitignore | 2 ++ lib/libc/Makefile | 2 ++ tools/sysexport | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 builddeps/sysexports create mode 100755 tools/sysexport diff --git a/Makefile.in b/Makefile.in index eb53811..331554d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -92,6 +92,7 @@ base: .PHONY: lib lib: + bash tools/sysexport cd lib/; make $(USER_MKFLGS) cp lib/libc/build/libc.a base/usr/lib/ diff --git a/builddeps/sysexports b/builddeps/sysexports new file mode 100644 index 0000000..4c0f0e1 --- /dev/null +++ b/builddeps/sysexports @@ -0,0 +1,10 @@ +# Sys header export list +# Add headers to be exported to userland here +# Example: foo.h corresponds to sys/include/sys/foo.h +sys_headers=$(cat < lib/libc/include/sys/$i" + echo include/sys/$i >>.sys_export + echo "$i" >>.gitignore + ln -sf $SYS_DIR/$i . +done -- cgit v1.2.3