I'm using the tar image "buildroot-2018.02.tar.gz" to generate the linux image (kernel & fs) for my embedded system. To be sure of the minimum configuration I need to recreate the project (later, on an other computer...), I work out of BR tree as defined in BR UM §8.5.
I've managed to correctly configure BR and linux kernel and I have created both configuration files : - myProc_defconfig - myProc_linux_defconfig
I'm trying to create an image for my coworkers to recreate the project easily. For now, I have the following tree :
/ : Git root /README : This very file /make_buildroot_env.sh : Script to set up the development environment /myProc_kernel/ : Development environment prerequisite /myProc_kernel/configs/ : Contains both BR & Linux configuration files /myProc_kernel/fs_overlay/ : Filesystem overlay, contains all applicative files /myProc_kernel/tools/ : Scripts and data used by BR /myProc_kernel/tools/data : All data files used by scripts The idea is to create a script which will untar buildroot in a different folder (system is build out of tree as defined in ) and configure it with the defconfig files.
The script begins as follow, launch from my "Git root /" defined hereabove :
make_buildroot_env.sh
tar -xaf ./MyProc_kernel/tools/data/buildroot-2018.02.tar.gz cd buildroot-2018.02 make defconfig BR2_DEFCONFIG=../myProc_kernel/configs/myProc_defconfig make O=../MyProc_kernel I have here two problems :
- I've got an error on the last call :
Makefile:862: *** Please configure Buildroot first (e.g. "make menuconfig"). Stop.
- If I look at the
.configfile created in the BR folder, it seems to have taken only few parameters fromMyProc_defconfig
My questions are :
Why does BR always complain with the error 1 ? Configuration shall be made with the line pointing to the defconfig file ?
What am I missing to recreate my development environment ?
make savedefconfig?make O=../MyProc_kernel. Then when everything was settled, I have defined the defconfig filenames withmake xconfigand thenmake savedefconfig && make update-linux-defconfig. I have verified that a change in the configuration followed by a save, actually changes the defconfig files the right way.make defconfig BR2_DEFCONFIG=<path>line outside the script and have it work? You might try running that command with an absolute path to the file..configfile comparison. This file is created in/buildroot2018.02/and is the same as the defconfig file with extra default values. The result is the same with relative or absolute path. The next command shows the same error messagebuildroot-2018.02/configsthen try just runningmake MyProc_defconfig. It'd be good to see of it's a malformed defconfig or a path resolution issue.