Questions about building

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Questions about building

Post 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?

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Re: Questions about building

Post 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.

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Questions about building

Post by nworbnhoj »

To limit the number of images created I use

Code: Select all

make ar71xx.usb
http://www.gargoyle-router.com/wiki/dok ... umentation
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Re: Questions about building

Post by uysiquebien »

I need to use make menuconfig not only to limit the images built but to also customise the building options.

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Re: Questions about building

Post 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

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Questions about building

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Questions about building

Post 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)
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Re: Questions about building

Post 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.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Questions about building

Post 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 :)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

uysiquebien
Posts: 58
Joined: Fri Jan 03, 2014 2:01 pm

Re: Questions about building

Post by uysiquebien »

I am building for the wr741nd and "find -name '*741nd*' brings nothing relevant up.

Post Reply