.config file not found for selected architecture in make menuconfig

Hi,

When i compiling my package the .config file is not found. Before compiling i did select the architecture in make menuconfig and after that i did a make toolchain/install. i checked the folder where the .config should be located but it’s not there.

Whats the problem here?

make[2]: Entering directory '/home/marc/openwrt/package/kernel/linux'
can't open file '/home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/.config' at /home/marc/openwrt/scripts/kconfig.pl line 32.
rm -f /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.configured_*
rm -f /home/marc/openwrt/staging_dir/target-aarch64_cortex-a72_musl/stamp/.linux_installed
( if [ -f /home/marc/openwrt/staging_dir/target-aarch64_cortex-a72_musl/packages/linux.list ]; then /home/marc/openwrt/scripts/clean-package.sh "/home/marc/openwrt/staging_dir/target-aarch64_cortex-a72_musl/packages/linux.list" "/home/marc/openwrt/staging_dir/target-aarch64_cortex-a72_musl"; fi; )



touch /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.built_d41d8cd98f00b204e9800998ecf8427e
touch /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.built_d41d8cd98f00b204e9800998ecf8427e_check





touch /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.built_d41d8cd98f00b204e9800998ecf8427e
rm -rf /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel
mkdir -p /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel
install -d -m0755 /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119
install -m0644 /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119
/home/marc/openwrt/staging_dir/host/bin/sed -i -e 's,.*/,,' /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119/modules.builtin
strings /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin.modinfo | grep -E -v "\.(file|parmtype)=" | tr '\n' '\0' > /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel/lib/modules/6.6.119/modules.builtin.modinfo

touch /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed
install: cannot stat '/home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/linux-6.6.119/modules.builtin': No such file or directory
make[2]: *** [Makefile:74: /home/marc/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kernel.installed] Error 1
make[2]: Leaving directory '/home/marc/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#2.54#0.10#3.61
    ERROR: package/kernel/linux failed to build.
make[1]: *** [package/Makefile:176: package/kernel/linux/compile] Error 1
make[1]: Leaving directory '/home/marc/openwrt'
make: *** [/home/marc/openwrt/include/toplevel.mk:233: package/loraopcua/compile] Fout 2

What are you actually trying to do? Compile a new kernel package that needs the basic kernel?

The actual kernel would be built with make target/linux/compile

i execute this command: make package/newpackage/compile.

I want to build a new package out of my .c an .o files which i compiled before this, so that i have an .ipk file to install on target system openwrt.

The target system is a BCM2711 64bit.

When i compile the c program itself compiles but it stops here:

make[2]: Entering directory '/home/marc/openwrt/package/kernel/linux'

It cannot find the .config file

Are you using an SDK or buildroot? And which version? How was it set-up? Are all the host dependencies present? Where (as in which directory) and which commands are you executing?

Did you follow @hnyman 's advice to compile linux?