[klibc] Patch: Kbuild.install: *** No rule to make target `headers_install'.

leroy christophe christophe.leroy at c-s.fr
Wed Mar 11 13:18:45 PDT 2015


Le 11/03/2015 15:39, Peter Hyman a écrit :
> Version: 2.0.4 and git
> Kernel tested: 3.10.70
> Description: make install fails with: No rule to make target
> `headers_install'.
> File impacted: scripts/Kbuild.install
> Error Received:
> make[2]: *** No rule to make target `headers_install'.  Stop.
> make[1]: *** [header] Error 2
> make: *** [install] Error 2
>
> Issue: KLIBCKERNELSRC=`pwd`/linux/usr points to Makefile without
> headers_install rule.
> Kbuild.install uses wrong Makefile.
> Line 81:         $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH)
> INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
>
> headers_install is not in linux/usr. It is in linux base directory.
Maybe check http://www.zytor.com/pipermail/klibc/2013-August/003455.html

I use that patch, but it seems it has not been included yet

Christophe
>
> Patch:
> --- Kbuild.install      2015-03-11 07:29:19.292071162 -0700
> +++ Kbuild.install.fix  2015-03-11 07:36:25.973404816 -0700
> @@ -95,7 +95,7 @@
>          $(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)$(MAKE) -C $(KLIBCKERNELSRC)/.. ARCH=$(KLIBCARCH)
> INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
>          $(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
>
> _______________________________________________
> klibc mailing list
> klibc at zytor.com
> http://www.zytor.com/mailman/listinfo/klibc
>



More information about the klibc mailing list