Page 1 of 2
Questions about building
Posted: Thu Dec 10, 2015 9:03 am
by uysiquebien
I have a few questions about the building system. It seems to be different to that of OpenWrt.
1) It seems like "make menuconfig" is not available. In its place we have "make custom", which triggers the menu configuration, but then starts compiling. Is it possible to just do the menu configuration without starting the building process afterwards?
2) Is the -j parameter supported at all?
3) If the compilation fails and I type "make" again, it looks like it's starting over. Is that a fact? If so, how do I avoid that?
Re: Questions about building
Posted: Thu Dec 10, 2015 9:08 am
by uysiquebien
Well, 3) is a fact--compilation just failed because of
viewtopic.php?f=7&t=7827 (it hasn't been fixed yet). I'm looking at the logs and I remember how cmake or gmp were being built before and they are being built again. So every time I use "make" it starts over.
Re: Questions about building
Posted: Thu Dec 10, 2015 1:46 pm
by nworbnhoj
Re: Questions about building
Posted: Thu Dec 10, 2015 2:35 pm
by uysiquebien
I need to use make menuconfig not only to limit the images built but to also customise the building options.
Re: Questions about building
Posted: Thu Dec 10, 2015 5:19 pm
by uysiquebien
Compilation fails with the following message:
Code: Select all
Generating index for package ./uboot-envtools_2014.10-2_ar71xx.ipk
Generating index for package ./ubox_2015-07-14-907d046c8929fb74e5a3502a9498198695e62ad8_ar71xx.ipk
Generating index for package ./ubus_2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e_ar71xx.ipk
Generating index for package ./ubusd_2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e_ar71xx.ipk
Generating index for package ./uci_2015-08-27.1-1_ar71xx.ipk
Generating index for package ./uhttpd-mod-tls_2015-10-20-618315bc0729c3064e06af2900a86211354f81c9_ar71xx.ipk
Generating index for package ./uhttpd_2015-10-20-618315bc0729c3064e06af2900a86211354f81c9_ar71xx.ipk
Generating index for package ./uqmi_2014-12-03-86bcdb8cca652676a78b2df8b5e3fb27a40c60a4_ar71xx.ipk
Generating index for package ./usb-modeswitch_2014-08-26-993a9a542791953c4804f7ddbb3a07756738e37a_ar71xx.ipk
Generating index for package ./usign_2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131_ar71xx.ipk
Generating index for package ./vsftpd_3.0.3-2_ar71xx.ipk
Generating index for package ./webmon-gargoyle_1.9.0-1_ar71xx.ipk
Generating index for package ./wireless-tools_29-5_ar71xx.ipk
Generating index for package ./wol_0.7.1-3_ar71xx.ipk
Generating index for package ./wpad-mini_2015-03-25-1_ar71xx.ipk
Generating index for package ./wpad_2015-03-25-1_ar71xx.ipk
Generating index for package ./wwan_2014-07-17-1_ar71xx.ipk
Generating index for package ./zip_3.0-1_ar71xx.ipk
Generating index for package ./zlib_1.2.8-1_ar71xx.ipk
Signing package index...
make[3]: Leaving directory '/home/vagrant/gargoyle/custom-src'
make[2]: Leaving directory '/home/vagrant/gargoyle/custom-src'
make[1]: Leaving directory '/home/vagrant/gargoyle/custom-src'
cp: cannot stat ‘bin/ar71xx/uboot-ar71xx-nbg460n_550n_550nh:’: No such file or directory
Re: Questions about building
Posted: Thu Dec 10, 2015 5:46 pm
by Lantis
Wow lol. That's like literally the final step of the build.
At that step it copies all of the built images from /bin/TARGET/built to /images/TARGET. It also renames the files to suit gargoyle.
You may be able to just go and find the correct built image and use that if it completed to that point successfully.
As for dosfstools, just bump it to .28. Makes no difference.
"make FULL_BUILD=false" doesn't rebuild openwrt. But it does rebuild packages.
Takes build time from several hours to about 30 minutes in my experience.
Re: Questions about building
Posted: Thu Dec 10, 2015 5:48 pm
by nworbnhoj
That error is right at the very end of the build. My last few lines look like:
Code: Select all
Generating index for package ./vsftpd_3.0.3-2_ar71xx.ipk
Generating index for package ./webmon-gargoyle_1.9.0-1_ar71xx.ipk
Generating index for package ./wireless-tools_29-5_ar71xx.ipk
Generating index for package ./wol_0.7.1-3_ar71xx.ipk
Generating index for package ./wpad-mini_2015-03-25-1_ar71xx.ipk
Generating index for package ./wpad_2015-03-25-1_ar71xx.ipk
Generating index for package ./wwan_2014-07-17-1_ar71xx.ipk
Generating index for package ./zip_3.0-1_ar71xx.ipk
Generating index for package ./zlib_1.2.8-1_ar71xx.ipk
Signing package index...
make[3]: Leaving directory '/mnt/john/Development/gargoyle/ar71xx-src'
make[2]: Leaving directory '/mnt/john/Development/gargoyle/ar71xx-src'
make[1]: Leaving directory '/mnt/john/Development/gargoyle/ar71xx-src'
me@PC:~/Git/gargoyle$
OK so @Lantis beat me by 5 sec (again)
Re: Questions about building
Posted: Thu Dec 10, 2015 5:55 pm
by uysiquebien
Lantis wrote:Wow lol. That's like literally the final step of the build.
At that step it copies all of the built images from /bin/TARGET/built to /images/TARGET. It also renames the files to suit gargoyle.
You may be able to just go and find the correct built image and use that if it completed to that point successfully.
I indeed found lots of images with "sysupgrade" in the name, but not the one I'm interested on. Where could it be?
Lantis wrote:As for dosfstools, just bump it to .28. Makes no difference.
That's what I did.
Lantis wrote:"make FULL_BUILD=false" doesn't rebuild openwrt. But it does rebuild packages.
Takes build time from several hours to about 30 minutes in my experience.
That's wrong then, only packages which have been modified should been rebuilt. i.e.: none.
Thanks for your help.
Re: Questions about building
Posted: Thu Dec 10, 2015 5:59 pm
by Lantis
Which router are you building for? I'd just run a search for its exact string and see what shows up.
If you can think of a way of optimising the build process please consider making some changes to it and uploading them to GitHub

Re: Questions about building
Posted: Thu Dec 10, 2015 6:11 pm
by uysiquebien
I am building for the wr741nd and "find -name '*741nd*' brings nothing relevant up.