Hi all,
I'm trying to build FreeBSD from scratch in a custom directory. In my line of testing, I was able to get to start to finish by using the default directories (/usr/src and /usr/obj). However, I would like to now use a custom directory to specify where the source is and where the object files should be located, so that I can build it under Jenkins. I'm aware of the fact that there's a release.sh script that can do everything - build kernel, world, and installer images - however, I would eventually like to insert some additional steps after buildworld and buildkernel which is why I'm doing it this way.
I was succesful in buildworld and buildkernel by specifying the MAKEOBJDIRPREFIX variable in make - but I can't seem to figure out how to build the release iso.
Here's a rough outline of what I'm doing
The make release failed, so I tried again but this time specifying CHROOTDIR and CHROOTBUILD_SKIP instead, which also didn't work. Here's the output of the current errors that I'm looking at for make release
https://pastebin.com/5BGCrMry
Please let me know if I'm going in the right direction, or if there's a better way to approach this!
Thanks
I'm trying to build FreeBSD from scratch in a custom directory. In my line of testing, I was able to get to start to finish by using the default directories (/usr/src and /usr/obj). However, I would like to now use a custom directory to specify where the source is and where the object files should be located, so that I can build it under Jenkins. I'm aware of the fact that there's a release.sh script that can do everything - build kernel, world, and installer images - however, I would eventually like to insert some additional steps after buildworld and buildkernel which is why I'm doing it this way.
I was succesful in buildworld and buildkernel by specifying the MAKEOBJDIRPREFIX variable in make - but I can't seem to figure out how to build the release iso.
Here's a rough outline of what I'm doing
Code:
cd /path/to/source
make buildkernel KERNCONF=CUSTOM MAKEOBJDIRPREFIX="`realpath ./obj`" SRCCONF="`realpath ./src.conf``" __MAKE_CONF="`realpath ./make.conf``"
make buildworld MAKEOBJDIRPREFIX="`realpath ./obj`" SRCCONF="`realpath ./src.conf`" __MAKE_CONF="`realpath ./make.conf`"
cd release
make release KERNCONF=CUSTOM MAKEOBJDIR="`realpath ../obj`" -DNO_ROOT
The make release failed, so I tried again but this time specifying CHROOTDIR and CHROOTBUILD_SKIP instead, which also didn't work. Here's the output of the current errors that I'm looking at for make release
https://pastebin.com/5BGCrMry
Please let me know if I'm going in the right direction, or if there's a better way to approach this!
Thanks