File klibc-2.0.4-headers_install.patch of Package klibc

diff -Nurp klibc-2.0.4/scripts/Kbuild.install klibc-2.0.4-headers_install/scripts/Kbuild.install
--- klibc-2.0.4/scripts/Kbuild.install	2014-07-26 03:15:05.000000000 +0300
+++ klibc-2.0.4-headers_install/scripts/Kbuild.install	2014-09-22 02:45:36.000000000 +0300
@@ -95,7 +95,13 @@ header:
 	$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
 	$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
 	$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
-	$(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
+	$(Q)set -e ; for r in $(KLIBCKERNELSRC)/include; do \
+	  for d in $$r/linux $$r/asm*; do \
+	    [ -d "$$d" ] || continue ; \
+	    t=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/$${d##*/} ; \
+	    mkdir $$t; cp -rfL $$d/. $$t/. ; \
+	  done ; \
+	done
 	$(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
 	$(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
 	$(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
openSUSE Build Service is sponsored by