building something from source in image-builder script

The image-builder scripts (https://github.com/beagleboard/image-builder) are great for putting together a Beaglebone image. Is there a mechanism in there to build specific packages from source? I see some references to qemu in various places. Is it set up to cross compile?

Any tips are appreciated!

That what this final "target" bash script was for:

https://github.com/beagleboard/image-builder/blob/master/target/chroot/beagleboard.org-buster.sh

anything not packaged, etc..

Just note, qemu can be a funky beast with a mind of it's own..

Regards,

Is there a way to drop into a bash terminal within the qemu environment to debug? I ran the RootStock-NG.sh script and see the ignore/tmp.XXXXX directory. Does something like this work?

After running RootStock-NG.sh;
sudo chroot /path/to/ignore/tmp.XXX /bin/bash

(I get a /lib/ld-linux-armhf.so.3: No such file or directory when I do that)

Before you chroot, make sure you mount sys, proc, dev/pts

https://github.com/beagleboard/image-builder/blob/master/scripts/chroot.sh#L171-L187

Then if host does not equal chroot architecture, copy qemu-arm-static
under the chroot:

https://github.com/beagleboard/image-builder/blob/master/scripts/chroot.sh#L246-L253

At which case you can chroot in...

Regards,

It seems like that tmp dir is missing a lot of data. Is there a clean up step I need to comment out?

If you kill it right here:

https://github.com/beagleboard/image-builder/blob/master/scripts/chroot.sh#L1363

You can re-chroot in..

Regards,

Perfect, thanks!

I completely missed this line where it blows the whole directory away: https://github.com/beagleboard/image-builder/blob/24b8b155b41d4d0b4a3d7d3e2295441df81b94b0/RootStock-NG.sh#L160

I must be looking at a partial temp directory from a canceled run or something.

Thanks for your help Robert!