From dcf241189ab7eb060aeb06caad8b14aa964f6736 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Mon, 12 Feb 2007 21:57:57 +0000 Subject: 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. --- Makefile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile.in') 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; \ -- cgit v1.2.3