aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/netbsd.go
Commit message (Collapse)AuthorAgeFilesLines
* vm: add context to Pool.Create()Aleksandr Nogikh2025-10-011-1/+1
| | | | | | | | | | Enable external abortion of the instance creation process. This is especially useful for the qemu case where we retry the creation/boot up to 1000 times, which can take significant time (e.g. it timeouts syz-cluster pods on unstable kernels). The context can be further propagated to WaitForSSH, but that requires another quite significant vm/ refactoring.
* vm: extract all the crashes from the logTaras Madan2025-08-281-3/+3
|
* vm: func Run accepts contextTaras Madan2025-05-191-1/+4
| | | | It allows to use context as a single termination signal source.
* pkg/build/bsd: use the number of CPUs provided in params in cleanFlorent Revest2024-10-151-2/+1
| | | | | | Now that clean functions take a params, like builds, it makes sense to use the BuildCPUs parameter rather than let each OS build implementation extract the number of CPUs.
* pkg/build: use the build environment in clean() callsFlorent Revest2024-10-141-2/+2
| | | | | | 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.
* vm: make sure vm.Pools are cleaned upCameron Finucane2024-09-191-0/+1
| | | | Add calls to Close() from all locations that call Create().
* all: rename build_jobs to build_cpusAleksandr Nogikh2024-08-221-4/+4
| | | | The latter is a better suitable name.
* pkg/build: introduce the build jobs parameterAleksandr Nogikh2024-08-221-4/+4
| | | | | This parameter defines the number of cores dedicated to the kernel build process. By default, it's equal to the number of available CPUs.
* vm: combine Run and MonitorExecutionDmitry Vyukov2024-04-111-2/+1
| | | | | | All callers of Run always call MonitorExecution right after it. Combine these 2 methods. This allows to hide some implementation details and simplify users of vm package.
* pkg/build: run NetBSD in qemu emulation modeAleksandr Nogikh2024-04-111-1/+3
| | | | We used to do that before, but somehow we now pass the -enable-kvm flag.
* pkg/build: fix incorrect vm instantiationAleksandr Nogikh2024-02-051-1/+3
| | | | vm now expects SysTarget to be present.
* all: use special placeholder for errorsTaras Madan2023-07-241-7/+7
|
* pkg/build: modify builder interfaceAleksandr Nogikh2021-07-201-11/+11
| | | | | | | | | 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: fix qemu timeouts for netbsdDmitry Vyukov2021-05-251-0/+1
| | | | | | | netbsd.go uses a hacky way to construct manager config that skips of all of our verification/completion logic. As the result the manager config has 0 timeouts and qemu immidiately timeouts. Fill in timeouts.
* pkg/mgrconfig: move derived fields into separate structDmitry Vyukov2020-11-301-9/+11
| | | | | | Users should not be concerned with the internal derived fields. Move all derived fields into a separate struct before adding more. This leaves config.go as a better documentation for end users.
* sys/targets: add OS/Arch name constsDmitry Vyukov2020-10-261-1/+2
| | | | | | | | | | | | We use strings to identify OS/Arch. These strings are duplicated throughout the code base massively. golangci-lint points to possiblity of typos and duplication. We already had to define these names in pkg/csource and disable checking for prog package. A future change triggers such warnings in another package. Add OS/Arch name consts to sys/targets so that they can be used to refer to OS/Arch. Use the consts everywhere.
* all: fix comments formatDmitry Vyukov2020-07-121-5/+5
| | | | | | | Fix capitalization, dots at the end and two spaces after a period. Update #1876
* pkg/build: chmod key file before running qemuDmitry Vyukov2020-05-301-0/+5
| | | | | In case the original key has wrong permissions. Ssh is very picky about key permissions.
* pkg/build/netbsd: use mknod rather than MAKEDEVm00nbsd2020-05-261-1/+1
|
* pkg/build: create /dev/vhci on NetBSDm00nbsd2020-05-241-0/+1
|
* pkg/build: Remove all the build dirs for NetBSD (#1688)Siddharth M2020-04-211-0/+10
|
* pkg/build: remove '-u' option for NetBSD build and increase timeout (#1686)Siddharth M2020-04-201-8/+8
|
* pkg/build: Raise the timeout limit to 30min for building LLVM (tools)Kamil Rytarowski2020-02-221-1/+1
|
* pkg/build: Fix always true caseSiddharth Muralee2019-12-171-10/+10
|
* pkg/build: add support to build the NetBSD kernel with KMSanSiddharth M2019-12-061-8/+24
| | | | | * Initial KMSan commit * pkg/buil: kmsan cleanup * pkg/build: Modify the logic slightly
* pkg/build: refactor Image function argumentsDmitry Vyukov2019-11-061-11/+11
| | | | | | | 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: build netbsd using config filesSiddharth M2019-09-181-17/+1
|
* pkg/build: add DEBUG alsoR3x2019-06-241-0/+1
|
* pkg/build: add LOCKDEBUG and KASAN_PANICR3x2019-06-241-0/+3
|
* pkg/build: fix the failing buildR3x2019-06-111-5/+3
| | | | | 1. Add MKCTF option 2. Remove the command to make the kcov node. Since do it in the script.
* pkg/build: Add the KCOV build commandsR3x2019-05-231-1/+6
|
* pkg/build: extract bazel build errorsDmitry Vyukov2019-03-291-2/+2
| | | | | | | | | | 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-2/+2
|
* pkg/build: fix netbsd ifconfigDmitry Vyukov2019-02-231-1/+1
| | | | | ! escaping seems not be required. The current code writes / as well, which is wrong.
* pkg/build: setup network interface on GCE for netbsdDmitry Vyukov2019-02-231-3/+8
|
* pkg/build: netbsd build improvementsDmitry Vyukov2019-02-231-20/+22
| | | | | | | 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: minor assorted improvements for netbsdDmitry Vyukov2019-02-221-26/+25
| | | | | | Create /fastboot and /var/db/entropy-file files. Check that we copy kernel into the right location. Fix code style.
* pkg/build: added feature to copy kernel image for netbsdSiddharth M2019-02-221-9/+72
| | | | | | | | | | | | | | | | | | | * Modified pkg/build/netbsd.go 1. Made kernel build incremental 2. Added code to copy kernel to disk image * Fix formating issues * Fixed basic issues * Fixed copy kernel to disk 1. Added CPU option to default 2. Added snapshot option to vm/qemu/qemu.go 3. Hacky solution to get the build working * Fixed issues and added vm.MonitorExecution * Added sync instead of poweroff
* pkb/build: extractRootCause for NetBSD tooGreg Steuck2019-02-111-2/+2
| | | | | | | | | | | | * pkg/build: share extractRootCause with openbsd This should get kernel build errors reported in syz-ci console. * Add a test * lint * pkb/build: extractRootCause for NetBSD too
* pkg/build: add basic support for NetBSDSiddharth M2019-01-251-0/+68
* Add pkg/build support for NetBSD * Fix length of characters