Commit Graph

184 Commits

Author SHA1 Message Date
Franco Fichtner 2eee340031 build/update: include rewind functionality via VERSION use; closes #373 2023-08-09 08:36:39 +02:00
jeremiah-rs 3d5bbc484a Update Makefile
Updated LeaseWeb and NYC BUG mirrors to use HTTPS
2023-08-04 08:41:53 +02:00
Franco Fichtner aef341c0ef build/core: avoid tainting VERSION for composite steps
Similar things could be done for src and ports handling, but this
one here is the most fragile.
2023-07-26 23:51:40 +02:00
Franco Fichtner ef89cfd749 composite: custom image support 2023-04-17 10:41:23 +02:00
Franco Fichtner 9ee5252153 build: remove remnants of FLAVOUR handling 2023-02-07 09:20:29 +01:00
Franco Fichtner 6cc5a564ba composite: remove FLAVOUR handling 2023-02-07 08:02:13 +01:00
Franco Fichtner b2e630c371 config: turn CRYPTO into build.conf SSL setting
We might want to change it, but more like "openssl-devel" to try version
3 at some later point in time.  The FLAVOUR magic can go gradually, see
next commit.
2023-02-03 14:34:12 +01: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 458fae9083 composite: add (nightly) log watcher 2022-11-02 12:11:46 +01:00
Franco Fichtner 0a66d2c966 make: arm requires kernel and packages #290 2022-05-17 10:56:20 +02:00
Franco Fichtner 0e2043ef67 build/connect: add tiny helper to jump to PRODUCT_SERVER secure shell 2022-05-13 12:21:27 +02: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 bd2287c014 make: indicate what we are going to override
The solution on mismatch is rarely providing the override so
try to hint at the user using that another configuration might
be needed to match the build environment.
2022-01-20 12:37:00 +01:00
Franco Fichtner d79149c880 make: merge lines 2022-01-18 11:40:28 +01:00
Franco Fichtner 721f25f65f build/kernel: with a heavy heart require base build...
... and set up a chroot environment to run the proper kldxref in the
isolated environment.  It turns out that building kldxref manually
in the host builds one for the host likely with the help of /usr/include
and this fails again for the forward build.

It's the facepalm of the week.
2022-01-18 09:44:24 +01:00
Franco Fichtner adc0ee4a12 config: check OS version before doing anything; closes #260 2022-01-18 08:56:37 +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
Franco Fichtner 747e6d0d2b make: remove standard addition of os-dyndns
According to e0e08e9a5b this was asked about in the forum back
then, but the plugin hasn't gotten much improvement over the years
and to use it you need an Internet connection which you can also
use to install the plugin.

On a restore you can already sync all missing plugins now which is
also helping in this case.
2021-12-27 21:42:47 +01:00
Franco Fichtner 1b716dda51 build/release: bundle arm if found and reduce default scope again 2021-10-14 20:18:01 +02:00
Franco Fichtner b3818a032c build/options: port option scanner; closes #226 2021-10-12 21:02:32 +02:00
Franco Fichtner dac714b313 make: bundle vm image with business release 2021-10-12 09:13:55 +02:00
Franco Fichtner 4336b0210d build: streamline version derivation/override 2021-09-09 13:09:54 +02:00
Franco Fichtner a85d9d2bff make: order UEFI values 2021-08-20 11:35:28 +02: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 6a04fbb4ca build: switch to FreeBSD ports tree 2021-08-02 10:51:18 +02:00
Franco Fichtner faaf1e2c54 make: better auto-detect for valid config dir 2021-07-30 09:26:17 +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 4ccd8ee81b make: this looks more appropriate although functional no issues 2021-07-26 22:05:45 +02:00
Franco Fichtner 99f7dbec73 make: autodetect default SETTINGS
Use the oldest available version. We only keep the current version
and the next in these directories by default, otherwise use SETTINGS
or CONFIGDIR overrides directly.
2021-07-26 14:10:53 +02:00
Christopher SHEN 91757dae56
Working aarch64 configs for 21.1 (#222) 2021-07-26 13:04:14 +02:00
Franco Fichtner 10d94fc215 composite/distribution: proper release build top target; closes #216 2021-04-09 13:33:54 +02:00
Franco Fichtner 752e2b545b build: let compress sign images and add new list helper; closes #223 2021-04-09 11:18:05 +02:00
Franco Fichtner 17fa565a15 make: switch tree 2021-04-07 19:55:39 +02:00
Franco Fichtner 3c3330f385 build: pass port options as PORTSENV
This way we can hook it into build configuration and also it
looks final enough to document it soon.
2021-04-06 09:02:35 +02:00
Franco Fichtner 74a7d25764 make: err, this is better actuallty 2021-03-31 15:41:54 +02:00
Franco Fichtner 2fcfe09906 make: only pass authoritative flavour 2021-03-31 14:37:00 +02:00
Franco Fichtner 3d5684924f config: when rebuilding crypto library with prune%no nothing is rebuilt 2021-03-26 15:02:33 +01: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 3cb53e308c make: when processing ARGS for SCRIPTS defer their parsing
# make batch-ports-a,b -V batch_ARGS

    Before: ports-a b
    After:  ports-a,b

    It also means we ever only take one argument.
2021-02-05 12:46:51 +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 0dff1f7f29 make: 21.1 as the default now 2021-01-27 14:58:41 +01:00
Franco Fichtner 89d9d02ca4 build/make.conf: apparently it is today #210 2021-01-26 20:26:38 +01:00
Franco Fichtner 83fea7ba8b build: avoid going through packages for image builds 2021-01-26 11:40:35 +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