forked from nerves-project/nerves_system_rpi3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
84 lines (76 loc) · 1.78 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
defmodule NervesSystemRpi3.Mixfile do
use Mix.Project
@app :nerves_system_rpi3
@version Path.join(__DIR__, "VERSION")
|> File.read!()
|> String.trim()
def project do
[
app: @app,
version: @version,
elixir: "~> 1.4",
compilers: Mix.compilers() ++ [:nerves_package],
nerves_package: nerves_package(),
description: description(),
package: package(),
deps: deps(),
aliases: [
"deps.precompile": ["nerves.env", "deps.precompile"],
"deps.get": ["deps.get", "nerves.deps.get"]]
]
end
def application do
[]
end
def nerves_package do
[
type: :system,
artifact_sites: [
{:github_releases, "nerves-project/#{@app}"}
],
platform: Nerves.System.BR,
platform_config: [
defconfig: "nerves_defconfig"
],
checksum: package_files()
]
end
defp deps do
[
{:nerves, "~> 0.9", runtime: false },
{:nerves_system_br, "0.17.0", runtime: false},
{:nerves_toolchain_arm_unknown_linux_gnueabihf, "~> 0.13.0", runtime: false},
{:nerves_system_linter, "~> 0.2.2", runtime: false}
]
end
defp description do
"""
Nerves System - Raspberry Pi 3 B
"""
end
defp package do
[
maintainers: ["Frank Hunleth", "Justin Schneck"],
files: package_files(),
licenses: ["Apache 2.0"],
links: %{"Github" => "https://github.com/nerves-project/#{@app}"}
]
end
defp package_files do
[
"LICENSE",
"mix.exs",
"nerves_defconfig",
"README.md",
"VERSION",
"rootfs_overlay",
"fwup.conf",
"fwup-revert.conf",
"post-createfs.sh",
"post-build.sh",
"cmdline.txt",
"linux-4.4.defconfig",
"config.txt"
]
end
end