Can't find default configuration "arch/x86/configs/100ask_imx6ull_defconfig"!----The configuration file cannot be found when compiling the kernel

I'm using the command

make 100ask_imx6ull_defconfig

When compiling and configuring the kernel, the following error is prompted

***
*** Can't find default configuration "arch/x86/configs/100ask_imx6ull_defconfig"!
***
scripts/kconfig/Makefile:112: recipe for target '100ask_imx6ull_defconfig' failed
make[1]: *** [100ask_imx6ull_defconfig] Error 1
Makefile:543: recipe for target '100ask_imx6ull_defconfig' failed
make: *** [100ask_imx6ull_defconfig] Error 2

This means that the configuration file was not found, so I searched

find / -iname 100ask_imx6ull_defconfig

Found that there is this configuration file

There are configuration files in the arch directory, but the previous error is

*** Can't find default configuration "arch/x86/configs/100ask_imx6ull_defconfig"!

This shows that the make command does not search for the configuration file in the arch/arm directory, but searches in the arch/x86 directory. By default, the make command searches for the configuration file in the arch/$(ARCH)/configs/ directory.

export ARCH=armARCHThe command is used to set the value of environment variables in the Linux shell arm. This environment variable is typically used when compiling the Linux kernel or other architecture-specific software. By setting ARCHan environment variable, you tell the build system that the target architecture you are compiling for is ARM. In this way, the compilation system will compile the code using compilation options and tool chains suitable for the ARM architecture.

So, I need to set the ARCH environment variable, 

Then I compiled and configured the kernel and no longer reported errors.

 make 100ask_imx6ull_defconfig
HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#

Then continue to compile the kernel with the following command

 make zImage  -j4

Then the following error is reported:

gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘-maes’?
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’; did you mean ‘-fno-sched-interblock’?
gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
scripts/Makefile.build:293: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:544: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  SHIPPED scripts/genksyms/parse.tab.c
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  CC      kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
gcc: error: unrecognized command line option ‘-mapcs’; did you mean ‘-maes’?
gcc: error: unrecognized command line option ‘-mno-sched-prolog’; did you mean ‘-Wno-sign-promo’?
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’; did you mean ‘-fno-sched-interblock’?
gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
Kbuild:45: recipe for target 'kernel/bounds.s' failed

 Solution:

export CROSS_COMPILE=arm-buildroot-linux-gnueabihf-

おすすめ

転載: blog.csdn.net/u013171226/article/details/132754283