On 11/4/07, Sam Ravnborg <[EMAIL PROTECTED]> wrote:
> When you combine -E and -o the outputfile produced is the preprocessed
> C source - and not the objectfile.
> So the script behing "MKELF" complains that the file is not an ELF file
> which is correct.
>
> It will obviously have impact when you replace the .o files with preprocessed
> output. The linker will also complain a bit.
>
>         Sam
>
Ah, yes, hence the -k argument.  But even adding this only moves me a
little farther:

localhost linux # rm -rf ../targ/ && mkdir ../targ && make mrproper &&
cat /proc/config.gz | gunzip > ../targ/.config && make O=../targ
CFLAGS=-E -k
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  GEN     /usr/src/targ/Makefile
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig.i386
drivers/net/Kconfig:1887:warning: 'select' used by config symbol
'FEC_MPC52xx' refers to undefined symbol 'PPC_BESTCOMM'
drivers/net/Kconfig:1888:warning: 'select' used by config symbol
'FEC_MPC52xx' refers to undefined symbol 'PPC_BESTCOMM_FEC'
  Using /usr/src/linux-2.6.24-rc1-git10 as source for kernel
  GEN     /usr/src/targ/Makefile
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm-x86/asm-offsets.h
  CALL    /usr/src/linux-2.6.24-rc1-git10/scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
Error: not ELF
make[3]: *** [scripts/mod/elfconfig.h] Error 1
make[3]: Target `__build' not remade because of errors.
make[2]: *** [scripts/mod] Error 2
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
make[2]: Target `__build' not remade because of errors.
make[1]: *** [scripts] Error 2
make[1]: Target `_all' not remade because of errors.
make: *** [sub-make] Error 2
make: Target `_all' not remade because of errors.
-
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to