Skip to content

Commit 6f05c2f

Browse files
committed
Try try try to build one
1 parent c8f8992 commit 6f05c2f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ all: generate
2424
generate:
2525
@elixir generate_toolchains.exs
2626

27+
build-one:
28+
nerves_toolchain_armv7_nerves_linux_gnueabihf/build.sh nerves_toolchain_armv7_nerves_linux_gnueabihf/defconfig $PWD/o/nerves_toolchain_armv7_nerves_linux_gnueabihf
29+
2730
clean:
2831
@for tc in $(TOOLCHAINS); do \
2932
echo "Cleaning $$tc..."; \

template/lib/nerves_toolchain_ctng.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ defmodule Nerves.Toolchain.CTNG do
77
@doc """
88
Called as the last step of bootstrapping the Nerves env.
99
"""
10+
@impl Nerves.Package.Platform
1011
def bootstrap(_pkg) do
1112
:ok
1213
end
1314

1415
@doc """
1516
Build the artifact
1617
"""
18+
@impl Nerves.Artifact.BuildRunner
1719
def build(pkg, _toolchain, _opts) do
1820
build_path = Artifact.build_path(pkg)
1921
File.rm_rf!(build_path)
@@ -47,6 +49,7 @@ defmodule Nerves.Toolchain.CTNG do
4749
@doc """
4850
Return the location in the build path to where the global artifact is linked
4951
"""
52+
@impl Nerves.Package.Platform
5053
def build_path_link(pkg) do
5154
Artifact.build_path(pkg)
5255
|> Path.join("x-tools")
@@ -55,6 +58,7 @@ defmodule Nerves.Toolchain.CTNG do
5558
@doc """
5659
Create an archive of the artifact
5760
"""
61+
@impl Nerves.Artifact.BuildRunner
5862
def archive(pkg, _toolchain, _opts) do
5963
build_path = Artifact.build_path(pkg)
6064

@@ -76,6 +80,7 @@ defmodule Nerves.Toolchain.CTNG do
7680
@doc """
7781
Clean up all the build files
7882
"""
83+
@impl Nerves.Artifact.BuildRunner
7984
def clean(pkg) do
8085
pkg
8186
|> Artifact.dir()

0 commit comments

Comments
 (0)