Commit Graph

163 Commits

Author SHA1 Message Date
Franco Fichtner 2aedf54827 composite/hotfix: switch default hotfixing to partial core/plugins build
I have been unintentionally scrubbing packages sets in the past which
is not a lot of fun so make the default hotfix mode a little less coarse.

While here the biggest issue of the hotfixing is not being able to see
package messages (not errors, these are shown as the build aborts) so
collect them in a variable to show at the end if all was building ok.
This is only relevant for multi-step hotfixing between core/plugins.
2024-02-16 09:52:12 +01:00
Franco Fichtner e3471710d9 composite/hotfix: use MISMATCH in explicit "ports" target
Improve hotfixing just a little bit now that we have the MISMATCH
option.  "make hotfix-ports" now does this automatically and wasn't
used before.
2024-02-15 13:30:39 +01:00
Franco Fichtner 49f84e452b build/ports: add MISMATCH knob; closes #225 2024-02-14 10:01:56 +01:00
Franco Fichtner 277fa7be97 composite: make 'watch' more usable and add a small documentation 2023-11-08 09:00:30 +01:00
Franco Fichtner 2eee340031 build/update: include rewind functionality via VERSION use; closes #373 2023-08-09 08:36:39 +02:00
Niko Hoffrén 78d9becd01 Fix typos in README.md 2023-07-25 18:07:04 +02:00
Franco Fichtner 01afc21cfa build/vm: document extras parameter ;) 2023-07-25 11:28:50 +02:00
Franco Fichtner 22eff9b1f1 README: hint at FreeBSD 13.2 as 23.7 is out very soon 2023-07-20 12:55:48 +02:00
Franco Fichtner ef89cfd749 composite: custom image support 2023-04-17 10:41:23 +02:00
Franco Fichtner b448dfb032 composite: remove batch script and multi-flavour handling in nightly
We only support OpenSSL now and the base build is also not fully
hooked up.  Perhaps we can improve the situation later on but for
now just remove the spurious bits leading to errors.
2023-01-25 10:38:44 +01:00
Franco Fichtner 9f517ee230 README: update wrong version 2022-12-08 14:46:20 +01:00
Franco Fichtner 10518249a2 README: clarify on ZFS option
The ZFS option is optional for VM images.  It will create a ZFS
image instead of a UFS image.  In case the build system knows
about "zpool" already the option takes the name of the ZFS pool
to create to sidestep potential clashes.
2022-02-23 13:11:36 +01:00
Franco Fichtner 2e4601721e build: remove hw.uart.console and unused COMPORT support
It doesn't work anymore for EFI on FreeBSD 13.
2022-02-21 11:02:31 +01:00
Franco Fichtner 5f64cb5902 composite: add factory target 2022-02-17 15:32:21 +01:00
Franco Fichtner e782af9d8a build/vm: support bundling a ZFS image; closes #272
Flip the order of root and swap to allow VM image to grow.
Hook this up in extras.conf and also retrofit a serial console
for being able to test and debug in bhyve (build/boot).

Omit the use of a GPT root label in the ZFS case to deal with
devices names in the way that bsdinstall sets it up.  It is
not all that important for ZFS anyway.

The setup likely needs further testing and tweaking to make
sure we emulate bsdinstall zfsboot script properly to avoid
future problems.
2022-02-17 11:46:13 +01:00
Franco Fichtner b5ef261b45 build: remove FreeBSD 12.1 renmants 2022-01-31 11:21:58 +01:00
Franco Fichtner 5559bc8524 build: add a working DEBUG flag for 22.1 kernels
Make sure to do a manual clean kernel build run in order to get
the necessary files in place.  A partial rebuild does not seem
to work.
2022-01-04 09:52:58 +01:00
Kyle Evans 45483f8986
Makefile: add $ROOTDIR support (#244)
This allows one to place the OPNsense repositories in a different
location, e.g., /root/opnsense, rather than reusing the host's /usr.
2021-08-19 10:15:55 +02:00
Franco Fichtner ad95a2af87 build/ports: no longer use make -s in the builder
It's a lot of log content but somehow pkg wanting to bootstrap
into FreeBSD's 1.17 package during building is gone now which
sort of defeats the purpose if trying to fix this with more
debug output.  *shrug*
2021-08-10 08:40:26 +02:00
Franco Fichtner 6a04fbb4ca build: switch to FreeBSD ports tree 2021-08-02 10:51:18 +02:00
Franco Fichtner b63c1d069d make: improve accuracy vs. sticky eviromental variables
While here fix a lie and add more documentation.  We can switch
the include order for local build configuration to allow for more
thorough override capabilities.
2021-07-26 22:28:27 +02:00
Franco Fichtner feab3fbeaf build/vm: fix bugs in previous and flatten mkimg invoke 2021-07-26 13:51:23 +02:00
Franco Fichtner cd0fdba4b0 build/ports: allow to override BATCH run with developer shell on failure 2021-07-06 08:56:02 +02:00
Franco Fichtner 31d406fc5c build/boot: uncompress if needed, update README 2021-07-05 10:26:52 +02:00
Franco Fichtner b1b52c4631 build: document PORTSLIST and PLUGINSLIST 2021-06-24 09:04:48 +02:00
Franco Fichtner 10d94fc215 composite/distribution: proper release build top target; closes #216 2021-04-09 13:33:54 +02:00
Franco Fichtner 4c16a1073c README: document PORTSENV
COREENV/PLUGINSENV is a make(1) environment for package builds.
For PORTSENV we actually manipulate build process mostly relevant
for advanced hotfixing.
2021-04-06 14:07:15 +02:00
Franco Fichtner a927e81e30 build: make sure the build can cope with SUFFIX=-business
We do not want to install globs as the matching is very fuzzy and
also we no longer do.  To make sure prevent use of globs in
install_packages so we can catch this in nightly builds if it
ever happens.

While here, allow to set a VERSION for core builds which ignores
the tag-version-derivation.  It is useful for prerelease building.

Last but not least ADDITIONS should no longer look for SUFFIX so
if you want to build an image with SUFFIX=-devel and use a development
plugin overwrite ADDITIONS accordingly, e.g. ADDTIONS=os-dyndns-devel
2021-02-10 11:13:50 +01:00
Franco Fichtner 9a5dca65fb README: lowercase bullet point 2021-02-02 13:48:49 +01:00
Franco Fichtner cf3f923da2 build: while here make COMPORT configurable and rename SPEED to COMSPEED 2021-02-02 13:38:01 +01:00
Franco Fichtner 808649f0ed build: fold CONFIGDIRPREFIX into CONFIGDIR, derive (PRODUCT_)SETTINGS
So now we either set SETTINGS or CONFIGDIR and if the latter is used
SETTINGS variable is populated from the basename of CONFIGDIR to avoid
having to set two overrides at the same time.

Also add a build.conf.local optional build configuration to make
adjustments beyond our own scope feasible.
2021-02-02 09:24:34 +01:00
Franco Fichtner ba3d075c6e build: change CONFIG to CONFIGDIR/CONFIGDIRPREFIX approach
Always require build.conf since /dev/null does not work anymore
due to omission of embedded language versions.

The top view CONFIGDIR is not the low level CONFIGDIR in the
build scripts, but for lack of refactoring noise and a catchy
naming scheme let's just leave it where it is.
2021-02-01 16:44:55 +01:00
Franco Fichtner fbac38f495 build/audit: run vulnerability check on ports 2021-01-27 16:22:47 +01:00
Franco Fichtner 1b61f199e8 build: rename DEVELBRANCH to EXTRABRANCH
We can switch it to any other branch depending on requirements.
2021-01-22 13:37:46 +01:00
Franco Fichtner 38ee2fa1d4 config: untangle SETTINGS and ABI
In case we want a custom config directory but a matching ABI.
2021-01-20 16:51:37 +01:00
Franco Fichtner c3f66077b4 build/clone: add new helper 2021-01-18 11:50:37 +01:00
Franco Fichtner 3bc587dcb8 build/prefech: use PRODUCT_ABI when no manual version was set
Makes prefetch work out of the box. The initial version is very
likely capable of building packages for the whole series.
2021-01-13 11:15:18 +01:00
Franco Fichtner 84aefa59b0 config: support UEFI in serial images, off by default for now; closes #138
While here switch images to UFS2.
2021-01-07 15:58:47 +01:00
Franco Fichtner 8dd525035a config: replace fallbacks if needed for 21.1 and onwards
In normal build operations the variables are populated by the
environment already so the templated fallbacks are never used.
2021-01-07 14:31:21 +01:00
Franco Fichtner 464de02172 make: pew pew pew 2020-07-23 15:23:08 +02:00
Franco Fichtner a32ec5c46b build/sign: use args and regenerate mtree signature as well 2020-01-22 22:20:54 +01:00
Franco Fichtner 379bf96c4a build: fix issue with "make update-portsref"
... which is only used with "make skim".  Since HBSD moves to another
git server soon this seems like a good idea to fix.
2019-12-23 07:32:23 +01:00
Franco Fichtner b22e911fab build: add `fingerprint' target 2019-07-02 08:26:40 +02:00
Franco Fichtner dfefa3379f device: no ODROID and ORANGEPI for now #137 2019-05-07 13:57:59 +02:00
Franco Fichtner ea5155836e device: there is no RPI3 support in 11.2
Add it later when we have it, because if we keep it there will
only be questions why it doesn't work.
2019-05-07 13:48:49 +02:00
Franco Fichtner 6e54f6037a device: work on RPI2 image 2019-05-07 13:43:51 +02:00
Franco Fichtner dc20e68b6d device: a10 -> A10 for consistency 2019-05-07 10:02:53 +02:00
Franco Fichtner 415af5a2b6 build/arm: more on bananapi 2019-05-07 08:27:44 +02:00
Franco Fichtner bb1b755b09 config: use "bananapi" as FreeBSD calls it, proper image 2019-05-06 19:41:34 +02:00
Franco Fichtner 3681419d79 README: rewrite cross-build section 2019-04-28 12:55:20 +02:00