i had a hdd failure and lost all my vm with my build system and im wanting to set it up all again but im wondering on the procedure to create a config for the new build system from the backup.
what i have is a .config and a config.buildinfo from the original build system.
From what I gather just dropping my .config into a new build system can cause issues if things have changed, what is the correct procedure to save me from having to reselect everything again in menuconfig ?
I believe I need to create a seed file is this what the config.build info is?
Can just run make defconfig with this file in the root directory and it will create a new .config is this correct ? and will it select my target and all modules as per my original build system.
What does ./scripts/diffconfig.shdo im guessing it creates a config.build for a .config file ?
diffconfig.sh gives you the minimal set of differences between default and what you have configured (ie, currently in .config). I store them in names like WN604-20210706-working-no-luci.diffconfig.
You can then copy that to .config and use make defconfig to get a fully populated config file - so taking you back to where you started if still using the same OpenWRT version. I've never had it fail to apply to a later version, but presumably that could happen, especially with the switch from ar71xx to ath79. The good news here is that you can use diffconfig to get a sense of whether your prior and latest changes look equivalent.
So I started from A complete new git clone from main repo and update the feeds.
I then renamed config.buildinfo from my backup to .config commands as below:
git clone https://github.com/professor-jonny/pj_openwrt.git
./scripts/feeds update -a
./scripts/feeds install -a
cp config.buildinfo .config
Make defconfig
I still get this error:
I'm running ubuntu 20.04 LTS under WSL2 in Windows 10.
I'm stumped I definatly can't create a new config from a seed file it has to be some sort of error under WSL or ubuntu 20.04.
Ok i found my issue because I'm on windows and have extentions hidden when i delete the config file in the root of the repo it actually was a config.in file silly me.