Nerves v1.3.2 Nerves.Artifact.BuildRunners.Local behaviour View Source
Builds an artifact locally.
This build_runner will only function on certain Linux host configurations
Link to this section Summary
Functions
Builds an artifact locally
Builds an artifact locally
Callback implementation for Nerves.Artifact.BuildRunner.clean/1
Connect to a system configuration sub-shell
Callbacks
Builds an artifact locally
Link to this section Functions
Link to this function
archive(pkg, toolchain, opts)
View Source
archive(Nerves.Package.t(), Nerves.Package.t(), term()) :: Nerves.Artifact.BuildRunner.archive_result()
Builds an artifact locally.
Link to this function
build(pkg, toolchain, opts)
View Source
build(Nerves.Package.t(), Nerves.Package.t(), term()) :: Nerves.Artifact.BuildRunner.build_result()
Builds an artifact locally.
Opts:
make_args:
- Extra arguments to be passed to make.
For example:
You can configure the number of parallel jobs that buildroot can use for execution. This is useful for situations where you may have a machine with a lot of CPUs but not enough ram.
# mix.exs
defp nerves_package do
[
# ...
build_runner_opts: [make_args: ["PARALLEL_JOBS=8"]],
]
end
Callback implementation for Nerves.Artifact.BuildRunner.clean/1
.
Connect to a system configuration sub-shell
Link to this section Callbacks
Link to this callback
clean(package)
View Source
clean(package :: Nerves.Package.t()) :: Nerves.Artifact.BuildRunner.clean_result()
Builds an artifact locally.