freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
611 stars 187 forks source link

Rolling ports and special configurations into build image #128

Closed villajo closed 8 years ago

villajo commented 8 years ago

Hi,

This isn't so much of an issue, but I'm more curious whether it's possible or not.

I'd like to build the Raspberry Pi 2 images with Xorg and also have my own configuration files which would override original configuration files.

So, the questions I have are:

1.) Is there a way to add Xorg (possibly Wayland) during the build process and not after? 2.) Is there a way to specify my own configuration files during the build process which would override the resulting configuration files from the installation of other programs? IE: If I create an Xorg.conf and I want to use the settings in that vs what's generated by Xorg, would I be able to slipstream those files into the installation?

kientzle commented 8 years ago

On Sep 20, 2015, at 8:58 AM, soylentgreen notifications@github.com wrote:

Hi,

This isn't so much of an issue, but I'm more curious whether it's possible or not.

I'd like to build the Raspberry Pi 2 images with X11 and also have my own configuration files which would override original configuration files.

So, the questions I have are:

1.) Is there a way to add Xorg (possibly Wayland) during the build process and not after?

Sort of. There's been some attempt to support package installation during the build process (see 'option Package' for the current attempt), but it's still a little rough:

An alternative would be to include the package on the image and do the installation per se on first boot. I've not explored that approach but it should be straightforward.

2.) Is there a way to specify my own configuration files during the build process which would override the resulting configuration files from the installation of other programs? IE: If I create an Xorg.conf and I want to use the settings in that vs what's generated by Xorg, would I be able to slipstream those files into the installation?

Yes. Crochet has very robust support for overwriting configuration at the end of building the image.

Tim

villajo commented 8 years ago

Hi Tim!

Thanks for your reply. Very helpful!

In response to your Xorg response... What if I instead specified to cross compile Xorg to ARM during the build process instead of using a package? Would this have the same limitation?

kientzle commented 8 years ago

What if I instead specified to cross compile Xorg to ARM during the build process instead of using a package?

If you figure out how to do this, please let me know. It's an interesting idea.

brd commented 8 years ago

I am working on patches to the ports framework to support this. The next version of pkg will have better support for this and then the ports framework will need a bunch of TLC to respect what pkg is doing. I hope to have that committed this week and get another package run done on the build cluster.