Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

How can I maintain my_own Kernel default config?

$
0
0

I am trying to maintain my own Kernel default config in a separate directory.

For example, I want to make my_config under /linux-5.15.95 and keep my own Kernel default config file in the directory.But if I do so, Kernel make file was not able to find the default config file in ~/linux-5.15.95/my_config directory.

To explain the problem more clear, I tried a couple of test below.If I run make omap2plus_defconfig, Kernel makefile was able to find omap2plus_defconfig under ~/linux-5.15.95/arch/arm/configs.

user1@ubuntu-main:~/linux-5.15.95$ export ARCH=armuser1@ubuntu-main:~/linux-5.15.95$ make omap2plus_defconfig  HOSTCC  scripts/basic/fixdep  HOSTCC  scripts/kconfig/conf.o  HOSTCC  scripts/kconfig/confdata.o  HOSTCC  scripts/kconfig/expr.o  LEX     scripts/kconfig/lexer.lex.c  YACC    scripts/kconfig/parser.tab.[ch]  HOSTCC  scripts/kconfig/lexer.lex.o  HOSTCC  scripts/kconfig/menu.o  HOSTCC  scripts/kconfig/parser.tab.o  HOSTCC  scripts/kconfig/preprocess.o  HOSTCC  scripts/kconfig/symbol.o  HOSTCC  scripts/kconfig/util.o  HOSTLD  scripts/kconfig/conf## configuration written to .config#

But if I create a directory my_config under ~/linux-5.15.95 and move omap2plus_defconfig file into this directory from ~/linux-5.15.95/arch/arm/configs, then I see errors like below.

user1@ubuntu-main:~/linux-5.15.95$ make omap2plus_defconfig  HOSTCC  scripts/basic/fixdep  HOSTCC  scripts/kconfig/conf.o  HOSTCC  scripts/kconfig/confdata.o  HOSTCC  scripts/kconfig/expr.o  LEX     scripts/kconfig/lexer.lex.c  YACC    scripts/kconfig/parser.tab.[ch]  HOSTCC  scripts/kconfig/lexer.lex.o  HOSTCC  scripts/kconfig/menu.o  HOSTCC  scripts/kconfig/parser.tab.o  HOSTCC  scripts/kconfig/preprocess.o  HOSTCC  scripts/kconfig/symbol.o  HOSTCC  scripts/kconfig/util.o  HOSTLD  scripts/kconfig/conf****** Can't find default configuration "arch/arm/configs/omap2plus_defconfig"!***make[1]: *** [scripts/kconfig/Makefile:94: omap2plus_defconfig] Error 1make: *** [Makefile:620: omap2plus_defconfig] Error 2

What should I do to tell where Kernel makefile need to search my own default config file?


Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>