aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/openbsd.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/build: use the build environment in clean() callsFlorent Revest2024-10-141-1/+1
| | | | | | This unifies the build() and clean() interfaces such that if a custom compiler or make binary is provided in the manager or bisection config, they can be taken into account by the clean() interface.
* all: rename build_jobs to build_cpusAleksandr Nogikh2024-08-221-1/+1
| | | | The latter is a better suitable name.
* pkg/build: introduce the build jobs parameterAleksandr Nogikh2024-08-221-4/+3
| | | | | This parameter defines the number of cores dedicated to the kernel build process. By default, it's equal to the number of available CPUs.
* all: use special placeholder for errorsTaras Madan2023-07-241-1/+1
|
* pkg/build: modify builder interfaceAleksandr Nogikh2021-07-201-8/+8
| | | | | | | | | Modify the `builder` interface in such a way that build method also returns a struct containing extra information about the build process. This allows to fetch compiler ID from individual builders. Also, this makes the `signer` interface obsolete, as this information can also go into that structure.
* all: remove pointers to pkg.build.ParamsAleksandr Nogikh2021-07-201-1/+1
| | | | | | | | | | The struct pkg.build.Params is currently primarily passed on as a pointer, which leads make it hard to see the places, where it can (and should) actually be modified. Make it all more explicit by only passing pointer references to objects of this type when the object is expected to be modified by the function. In fact, at this moment there are no such situations.
* pkg/build/openbsd: sync before umount (#2414)Greg Steuck2021-01-281-0/+2
| | | Reported-by: syzbot+badc83af4aac6e58c236@syzkaller.appspotmail.com
* all: fix log/error text starting with capital letterDmitry Vyukov2020-07-051-5/+1
| | | | Update #1876
* pkg/build: refactor Image function argumentsDmitry Vyukov2019-11-061-10/+9
| | | | | | | Image takes too many arguments, so we need to do lots of forwarding, adding new argumnets is painful and most OSes are not interested in lots of arguments. Combine all arguments into a params struct.
* pkg/build: extract bazel build errorsDmitry Vyukov2019-03-291-1/+1
| | | | | | | | | | We currently manually call extractRootCause in few selected places to denote kernel build errors that we want to report to developers. The rest are considered infra errors that we don't report. This does not work well. We are missing fuchsia and gvisor build errors. Treat all external command exection failures as kernel build errors instead. Let's see how this works in practice. Also add bazel-specfic error patterns and tests.
* pkg/build: don't export OS-specific functionsMark Johnston2019-03-121-3/+3
|
* ci-openbsd-multicore: enable PF (#1033)Greg Steuck2019-03-051-8/+14
| | | | | * pkg/build/openbsd: copy overlay files from userspaceDir into image Fixes #1030
* pkg/build: netbsd build improvementsDmitry Vyukov2019-02-231-1/+1
| | | | | | | 1. Implement clean since we do incremental build we actually need no-op clean. 2. Don't copy netbsd to output dir, we don't need it there (we create full-fledged image). 3. Copy netbsd.gdb to obj/ dir, that's where it is expected. 4. Fix boot disk name for gce (it's sd0 instead of wd0).
* pkg/build: share extractRootCause with openbsdGreg Steuck2019-02-111-1/+1
| | | | | | | | | | * pkg/build: share extractRootCause with openbsd This should get kernel build errors reported in syz-ci console. * Add a test * lint
* pkg/build/openbsd: always make clean to manage config in treeGreg Steuck2018-12-191-2/+6
| | | | | | clean build barely takes 3 minutes end-to-end on our CI machine. Undo debug options which caused prevented kernels from booting on GCE.
* pkg/build/openbsd: require kernel config files as configuration dataGreg Steuck2018-12-071-37/+12
| | | | | | Previously the config was generated directly, but testing multiple configurations makes this cumbersome going forward. This makes kernel_config a mandatory parameter.
* openbsd: run on gceGreg Steuck2018-11-271-14/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * build/openbsd: minor cleanup (use tuples instead of maps) * Grammar nits in comments. * Simplify openbsd.Create, will defer when there's more than one error exit. * pkg/build: Support copying kernel into GCE image * Simple test for openbsd image copy build. * Cleanup in case something failed before. * Support multi-processor VMs on GCE. * More debug * Reformat * OpenBSD gce image needs to be raw. * GC * Force format to GNU directly on Go 1.10 or newer. * Use vmType passed as a parameter inside openbsd.go * gofmt * more fmt * Can't use GENERIC.mp just yet. * capitalize * Copyright
* pkg/build: copy image to output dirDmitry Vyukov2018-09-171-6/+6
| | | | | | | | | For vmm we need a pre-created image. So if one is provided in the userspace dir, copy it to output. This should be enough to get vmm working. Update #712
* pkg/build: OpenBSD support, currently limited to building a kcov enabled kernelAnton Lindqvist2018-09-171-0/+80