diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2007-02-12 21:57:57 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2007-02-12 21:57:57 +0000 |
commit | dcf241189ab7eb060aeb06caad8b14aa964f6736 (patch) | |
tree | 735c06c0036aed160a35e9c0e2870e87fe5730e5 /Makefile.in | |
parent | 216bfd092c46dc0479e571a37fd2fd96e47605b5 (diff) |
Rehash the PowerPC e500 port to avoid creating symlinks
in the powerpc arch code and make more code common with
classic PowerPC. From Steve Papacharalambous
Lets hope I didn't break something.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index a3d740f7c..72ac2760e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -52,7 +52,8 @@ export header_extra_args = -n endif HEADERS_BITS_COMMON := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/common/bits/*.h)) HEADERS_BITS_ARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h)) -HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH),$(HEADERS_BITS_COMMON)) +HEADERS_BITS_SUBARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/*.h)) +HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH) $(HEADERS_BITS_SUBARCH),$(HEADERS_BITS_COMMON)) headers: include/bits/uClibc_config.h $(Q)$(MAKE) headers-y $(Q)\ @@ -73,7 +74,12 @@ headers: include/bits/uClibc_config.h done; \ for i in $(HEADERS_BITS_ARCH) ; do \ $(LN) -fs ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/$$i .; \ - done + done; \ + if [ -n $(HEADERS_BITS_SUBARCH) ] ; then \ + for i in $(HEADERS_BITS_SUBARCH) ; do \ + $(LN) -fs ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/$$i .; \ + done; \ + fi $(Q)\ cd include/sys; \ set -e; \ |