guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
508 stars 146 forks source link

allow out-of-tree builds #205

Closed umlaeute closed 1 year ago

umlaeute commented 1 year ago

i find it slightly annoying that running build_dist will put the workspace/ directory into the same directory where the build_dist script lives.

it would be nice if i could clone my CustomPiOS repo into my (small, fast) home, and do the actual build on my big data disk:

git clone github.com:me/MyCustomPiOS
mkdir /media/big_disk/MyCustomPiOS_build
cd /media/big_disk/MyCustomPiOS_build
~-/MyCustomPiOS/mydist/src/build_dist
ls -lha workspace/

this might be a problem with how i customize CustomPiOS though. currently (after having checked out some of the forks) I leave the src/ folder as is, and put all my (git-tracked) modules/config/... into mydist/src/.

alternatively, I could of course put all my stuff into src/, and turn the build-process into something like

src/make_custom_pi_os -g -v raspios_full_armhf mydist
mydist/src/build_dist

but that would mean that i need to modify src/dist_generators/dist_example/ to use sane defaults for mydist, and i somewhat dislike this approach.

anyhow, it's probably just a matter of documentation :-)

guysoft commented 1 year ago

It can be changed here: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/base/config#L48

Be warned I haven't tested that in a while (reopen if there is an issue with that)

umlaeute commented 1 year ago

thx, actually i think i tried that bt it seems it didn't work. i'll re-open once i think it is important enough for me :-)