From: Alexey Lapshin <alexey.lapshin@espressif.com>
To: "jcmvbkbc@gmail.com" <jcmvbkbc@gmail.com>
Cc: Alexey Gerenkov <alexey.gerenkov@espressif.com>,
"newlib@sourceware.org" <newlib@sourceware.org>,
Ivan Grokhotkov <ivan@espressif.com>
Subject: [PATCH, RFC v2 1/8] newlib: add system headers from include/$(sys_dir)/*/*.h
Date: Mon, 15 May 2023 13:47:16 +0000 [thread overview]
Message-ID: <be25386064a0eada92a1cc0f679a08ae091d57a5.camel@espressif.com> (raw)
In-Reply-To: <15cedffa7c98bea187abe6041c7542db03dbe834.camel@espressif.com>
newlib:
* newlib/Makefile.am: use headers from libc/sys/$(sys_dir)/include/$(sys_dir)/*/*.h
this needs for newlib/libc/sys/xtensa/include/xtensa/config/core-isa.h
* newlib/Makefile.in: Likewise.
---
newlib/Makefile.am | 21 +++++++++++++++++++++
newlib/Makefile.in | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 809d49238..6474deada 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -267,6 +267,16 @@ stmp-targ-include: config.status
done \
else true; fi ; \
done
+ -for i in $(srcdir)/libc/sys/$(sys_dir)/include/$(sys_dir)/*; do \
+ if [ -d $$i ]; then \
+ for j in $$i/*.h; do \
+ if [ ! -d targ-include/$(sys_dir)/`basename $$i` ]; then \
+ mkdir targ-include/$(sys_dir)/`basename $$i`; \
+ fi; \
+ cp $$j targ-include/$(sys_dir)/`basename $$i`/`basename $$j`; \
+ done \
+ else true; fi ; \
+ done
-for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
if [ -f $$i ]; then \
cp $$i targ-include/sys/`basename $$i`; \
@@ -370,6 +380,17 @@ endif
done ; \
else true; fi ; \
done ; \
+ for i in $(srcdir)/libc/sys/$(sys_dir)/include/$(sys_dir)/*; do \
+ if [ -d $$i ]; then \
+ for j in $$i/*.h; do \
+ if [ ! -d $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i` ]; then \
+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(sys_dir); \
+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i`; \
+ fi ; \
+ $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i`/`basename $$j`; \
+ done ; \
+ else true; fi ; \
+ done ; \
for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
if [ -f $$i ]; then \
$(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
diff --git a/newlib/Makefile.in b/newlib/Makefile.in
index c3ee2908f..6eb210e7a 100644
--- a/newlib/Makefile.in
+++ b/newlib/Makefile.in
@@ -1019,6 +1019,16 @@ stmp-targ-include: config.status
done \
else true; fi ; \
done
+ -for i in $(srcdir)/libc/sys/$(sys_dir)/include/$(sys_dir)/*; do \
+ if [ -d $$i ]; then \
+ for j in $$i/*.h; do \
+ if [ ! -d targ-include/$(sys_dir)/`basename $$i` ]; then \
+ mkdir targ-include/$(sys_dir)/`basename $$i`; \
+ fi; \
+ cp $$j targ-include/$(sys_dir)/`basename $$i`/`basename $$j`; \
+ done \
+ else true; fi ; \
+ done
-for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
if [ -f $$i ]; then \
cp $$i targ-include/sys/`basename $$i`; \
@@ -1117,6 +1127,17 @@ install-data-local: install-toollibLIBRARIES
done ; \
else true; fi ; \
done ; \
+ for i in $(srcdir)/libc/sys/$(sys_dir)/include/$(sys_dir)/*; do \
+ if [ -d $$i ]; then \
+ for j in $$i/*.h; do \
+ if [ ! -d $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i` ]; then \
+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(sys_dir); \
+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i`; \
+ fi ; \
+ $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/$(sys_dir)/`basename $$i`/`basename $$j`; \
+ done ; \
+ else true; fi ; \
+ done ; \
for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
if [ -f $$i ]; then \
$(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
--
2.34.1
next prev parent reply other threads:[~2023-05-15 13:47 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 6:03 [PATCH, RFC 0/8] add xtensa port Alexey Lapshin
2023-05-11 6:05 ` [PATCH, RFC 1/8] newlib: add system headers from include/$(sys_dir)/*/*.h Alexey Lapshin
2023-05-11 6:12 ` [PATCH, RFC 2/8] libc: sys: add xtensa port Alexey Lapshin
2023-05-11 6:18 ` [PATCH, RFC 3/8] libm: " Alexey Lapshin
2023-05-11 6:20 ` [PATCH, RFC 4/8] libc: " Alexey Lapshin
2023-05-11 6:21 ` [PATCH, RFC 5/8] libm: add attribute weak for __ieee754_sqrtf Alexey Lapshin
2023-05-11 6:22 ` [PATCH, RFC 6/8] libgloss: libnosys: add xtensa port Alexey Lapshin
2023-05-11 6:23 ` [PATCH, RFC 7/8] libgloss: " Alexey Lapshin
2023-05-11 6:25 ` [PATCH, RFC 8/8] libc: fix xtensa PSRAM cache bug Alexey Lapshin
2023-05-12 9:18 ` [PATCH, RFC 0/8] add xtensa port Max Filippov
2023-05-15 13:45 ` [PATCH, RFC v2 " Alexey Lapshin
2023-05-15 13:47 ` Alexey Lapshin [this message]
2023-05-15 13:48 ` [PATCH, RFC v2 2/8] libc: sys: " Alexey Lapshin
2023-05-15 13:49 ` [PATCH, RFC v2 3/8] libm: " Alexey Lapshin
2023-05-15 13:50 ` [PATCH, RFC v2 4/8] libc: " Alexey Lapshin
2023-05-15 13:51 ` [PATCH, RFC v2 5/8] libm: add attribute weak for __ieee754_sqrtf Alexey Lapshin
2023-05-15 13:53 ` [PATCH, RFC v2 6/8] libgloss: libnosys: add xtensa port Alexey Lapshin
2023-05-15 13:54 ` [PATCH, RFC v2 7/8] libgloss: " Alexey Lapshin
2023-05-15 13:55 ` [PATCH, RFC v2 8/8] libc: xtensa: fix PSRAM cache bug Alexey Lapshin
2023-05-30 19:58 ` [PATCH, RFC v2 0/8] add xtensa port Jeff Johnston
2023-05-31 7:53 ` Alexey Lapshin
2023-08-09 20:00 ` [PATCH, RFC v3 0/3] " Alexey Lapshin
2023-08-09 20:02 ` [PATCH, RFC v3 1/3] libc: fix nested sys-include dirs install Alexey Lapshin
2023-08-09 20:03 ` [PATCH, RFC v3 2/3] newlib: add Xtensa port Alexey Lapshin
2023-08-09 20:04 ` [PATCH, RFC v3 3/3] libgloss: " Alexey Lapshin
2023-08-10 18:20 ` [PATCH, RFC v3 0/3] add xtensa port Jeff Johnston
2023-08-10 19:50 ` Alexey Lapshin
2023-08-10 22:12 ` Jeff Johnston
2023-08-10 22:15 ` Alexey Lapshin
2023-08-10 22:18 ` Jeff Johnston
2023-08-15 7:20 ` Alexey Lapshin
2023-08-15 14:48 ` Jeff Johnston
2023-08-15 15:07 ` Alexey Lapshin
2023-08-15 17:53 ` Jeff Johnston
2023-08-15 19:20 ` Alexey Lapshin
2023-08-15 22:09 ` Jeff Johnston
2023-08-16 7:46 ` Alexey Lapshin
2023-08-16 18:55 ` Jeff Johnston
2023-08-17 20:38 ` Alexey Lapshin
2023-08-17 22:25 ` Jeff Johnston
2023-08-18 10:13 ` Alexey Lapshin
2023-08-23 20:57 ` Jeff Johnston
2023-08-23 21:28 ` Alexey Lapshin
2023-08-24 15:01 ` Jeff Johnston
2023-08-24 15:45 ` Alexey Lapshin
2023-09-11 12:07 ` [PATCH, RFC 0/8] " Sebastian Huber
2023-09-11 12:15 ` Alexey Lapshin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be25386064a0eada92a1cc0f679a08ae091d57a5.camel@espressif.com \
--to=alexey.lapshin@espressif.com \
--cc=alexey.gerenkov@espressif.com \
--cc=ivan@espressif.com \
--cc=jcmvbkbc@gmail.com \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).