Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions template/lib/package_name.ex.eex
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
defmodule <%= @module_name %> do
@moduledoc false
use Nerves.Package.Platform
# This module's only purpose is get rid of error messages when used with Nerves 1.x

# The functions needed to be implemented when using Nerves.Package.Platform. Implement
# anyway, but don't require Nerves.Package.Platform to be around.
# use Nerves.Package.Platform

@impl Nerves.Package.Platform
def bootstrap(_pkg) do
:ok
end

@impl Nerves.Package.Platform
def build_path_link(_pkg) do
# Unused since never built via Nerves tooling
"Run build.sh directly"
end

@impl Nerves.Artifact.BuildRunner
def build(_pkg, _toolchain, _opts) do
{:error, "Run build.sh directly"}
end

@impl Nerves.Artifact.BuildRunner
def archive(_pkg, _toolchain, _opts) do
{:error, "Run build.sh directly"}
end

@impl Nerves.Artifact.BuildRunner
def clean(_pkg) do
{:error, "Run build.sh directly"}
end
Expand Down
Loading