kbuild error for mips (and possibly others)
PATCH 1/1 kbuild error for mips (and possibly others)
Hi,
there is a very annoying error in the 2.5 kbuild process
where the generation of the elfconfig.h file depends on the proper configuration of the kernel being available (for mips at least) but configuring the kernel disallows the inclusion of the .config file and thus the configuration and specifically CROSS_COMPILE is not set. This causes empty.o to fail to build because CC is now gcc and not mips(el)-linux-gcc and the -G option to gcc is invalid for my cross compiler.
This patch fixes the problem. It also makes the *config targets not dependant on having the helper programs in scripts/ compiled which they shouldn't be. They are not necessary.
/Brian
Index: scripts/Makefile
===================================================================
RCS file: /cvs/linux/scripts/Makefile,v
retrieving revision 1.20
Makefile +3 -0
@@ -7,6 +7,7 @@ # include/config/... # docproc: Preprocess .tmpl file in order to generate .sgml docs # conmakehash: Create arrays for initializing the kernel console tables +ifdef include_config host-progs := fixdep split-include conmakehash docproc kallsyms modpost \ mk_elfconfig pnmtologo
@@ -33,3 +34,5 @@ $(call if_changed,elfconfig) targets += elfconfig.h + +endif