Skip to content

Commit c242975

Browse files
Merge pull request #1 from nerves-project/pkg
support for nerves ~> 0.4.0
2 parents 379089c + 881ced4 commit c242975

File tree

8 files changed

+51
-45
lines changed

8 files changed

+51
-45
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
erl_crash.dump
55
*.ez
66
build.log
7+
.nerves

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@ script:
4848
- mix deps.get
4949
- mix archive.install https://github.com/nerves-project/archives/raw/master/nerves_bootstrap.ez --force
5050
- mix compile
51-
- export NERVES_SYSTEM=$NERVES_PACKAGE/_build/dev/nerves/system
52-
- export NERVES_TOOLCHAIN=$NERVES_PACKAGE/_build/dev/nerves/toolchain
53-
- git clone https://github.com/nerves-project/nerves-examples
54-
- cd nerves-examples/hello_gpio
55-
- MIX_ENV=travis mix deps.get
56-
- MIX_ENV=travis mix compile
57-
- MIX_ENV=travis mix firmware
51+
# - export NERVES_SYSTEM=$NERVES_PACKAGE/_build/dev/nerves/system
52+
# - export NERVES_TOOLCHAIN=$NERVES_PACKAGE/_build/dev/nerves/toolchain
53+
# - git clone https://github.com/nerves-project/nerves-examples
54+
# - cd nerves-examples/hello_gpio
55+
# - MIX_ENV=travis mix deps.get
56+
# - MIX_ENV=travis mix compile
57+
# - MIX_ENV=travis mix firmware
5858

5959
# Deploy the build products
6060
before_deploy:
61+
- cd $NERVES_PACKAGE/.nerves/artifacts/*
62+
- make system
6163
- cd $NERVES_PACKAGE
62-
- mix compress.nerves_system
6364
- $NERVES_PACKAGE/deps/nerves_system_br/scripts/ci-deploy.sh
6465

6566
deploy:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## v0.9.0
4+
5+
This version switches to using the `nerves_package` compiler. This will
6+
consolidate overall deps and compilers.
7+
8+
* Nerves.System.BR v0.8.1
9+
* Support for distillery
10+
* Support for nerves_package compiler
11+
312
## v0.7.0
413

514
When upgrading to this version, be sure to review the updates to

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.0
1+
0.9.0

mix.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ defmodule NervesSystemEv3.Mixfile do
99
[app: :nerves_system_ev3,
1010
version: @version,
1111
elixir: "~> 1.2",
12-
compilers: Mix.compilers ++ [:nerves_system],
13-
description: description,
14-
package: package,
15-
deps: deps]
12+
compilers: Mix.compilers ++ [:nerves_package],
13+
description: description(),
14+
package: package(),
15+
deps: deps()]
1616
end
1717

1818
def application do
1919
[]
2020
end
2121

2222
defp deps do
23-
[{:nerves_system, "~> 0.1.4"},
24-
{:nerves_system_br, "~> 0.7.0"},
25-
{:nerves_toolchain_armv5tejl_unknown_linux_musleabi, "~> 0.7.0"}]
23+
[{:nerves, "0.4.0"},
24+
{:nerves_system_br, "~> 0.8.1"},
25+
{:nerves_toolchain_armv5tejl_unknown_linux_musleabi, "~> 0.8.0"}]
2626
end
2727

2828
defp description do

mix.lock

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
%{"certifi": {:hex, :certifi, "0.4.0", "a7966efb868b179023618d29a407548f70c52466bf1849b9e8ebd0e34b7ea11f", [:rebar3], []},
2-
"hackney": {:hex, :hackney, "1.6.0", "8d1e9440c9edf23bf5e5e2fe0c71de03eb265103b72901337394c840eec679ac", [:rebar3], [{:ssl_verify_fun, "1.1.0", [hex: :ssl_verify_fun, optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, optional: false]}, {:metrics, "1.0.1", [hex: :metrics, optional: false]}, {:idna, "1.2.0", [hex: :idna, optional: false]}, {:certifi, "0.4.0", [hex: :certifi, optional: false]}]},
3-
"httpoison": {:hex, :httpoison, "0.8.3", "b675a3fdc839a0b8d7a285c6b3747d6d596ae70b6ccb762233a990d7289ccae4", [:mix], [{:hackney, "~> 1.6.0", [hex: :hackney, optional: false]}]},
4-
"idna": {:hex, :idna, "1.2.0", "ac62ee99da068f43c50dc69acf700e03a62a348360126260e87f2b54eced86b2", [:rebar3], []},
5-
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], []},
6-
"mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], []},
7-
"nerves_system": {:hex, :nerves_system, "0.1.6", "d3cff2ae40d3764c75b187cbbdb09985ae169489c26178d765edc9b66bc4e355", [:mix], []},
8-
"nerves_system_br": {:hex, :nerves_system_br, "0.7.0", "e838dbec1079fa326d958a3aef4ee14f22d8ffbc91ce7f6b28fc7d9f3197dfa7", [:mix], []},
9-
"nerves_toolchain": {:hex, :nerves_toolchain, "0.7.1", "164f5fcf07f717d5e8f918965ea043c860b75065768c93a726f763498a7d8792", [:mix], []},
10-
"nerves_toolchain_arm_unknown_linux_gnueabi": {:hex, :nerves_toolchain_arm_unknown_linux_gnueabi, "0.6.2", "a8bbfb30bb11b9c0115643feb6d1980335e267c3ea8533d8918863fae6797295", [:mix], [{:nerves_toolchain, "~> 0.6.2", [hex: :nerves_toolchain, optional: false]}]},
11-
"nerves_toolchain_armv5tejl_unknown_linux_musleabi": {:hex, :nerves_toolchain_armv5tejl_unknown_linux_musleabi, "0.7.1", "43909a7aeab85e4d0a81c8b8f97b053b2975accdc0b04096ce5f8781bfbb63f0", [:mix], [{:nerves_toolchain, "~> 0.7", [hex: :nerves_toolchain, optional: false]}, {:nerves_toolchain_ctng, "~> 0.7", [hex: :nerves_toolchain_ctng, optional: false]}]},
12-
"nerves_toolchain_ctng": {:hex, :nerves_toolchain_ctng, "0.7.1", "6f46b1591b23d1a017347f8cd9962c24775b2a6fde4e2f2b5251439efef8d6a4", [:mix], []},
13-
"porcelain": {:hex, :porcelain, "2.0.2", "c1d4863de3e391195e36457bb3d7e17ee1bca5a44f1d708bc037c313342f58e9", [:mix], []},
14-
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.0", "edee20847c42e379bf91261db474ffbe373f8acb56e9079acb6038d4e0bf414f", [:rebar, :make], []}}
1+
%{"distillery": {:hex, :distillery, "1.0.0", "a866a72bf2a3a5f078f5a249017ed951acda88a760d200512f91f585d74db1ec", [:mix], []},
2+
"nerves": {:hex, :nerves, "0.4.0", "ea9f281f84573d3a3b060dbc1135bdcf6304cb87a23b7509187b949bfe1d9a52", [:mix], [{:distillery, "~> 1.0.0", [hex: :distillery, optional: false]}]},
3+
"nerves_system_br": {:hex, :nerves_system_br, "0.8.1", "86889f97719eae6ec243ba0b8f445a25cabc0463d2e9606293cb4033f2c6b9e4", [:mix], []},
4+
"nerves_toolchain_armv5tejl_unknown_linux_musleabi": {:hex, :nerves_toolchain_armv5tejl_unknown_linux_musleabi, "0.8.0", "3b11fd172953a11b774cd8321bbfd32e050bb79ccb3eacf73bb866263ae3b4f6", [:mix], [{:nerves, "~> 0.4.0", [hex: :nerves, optional: false]}, {:nerves_toolchain_ctng, "~> 0.8.0", [hex: :nerves_toolchain_ctng, optional: false]}]},
5+
"nerves_toolchain_ctng": {:hex, :nerves_toolchain_ctng, "0.8.0", "6dff7ed51e1711c5f4da3d559bc528a8265e3dd950dda95f4d6832aed9dbe320", [:mix], []}}

nerves.exs

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,25 @@ version =
55
|> File.read!
66
|> String.strip
77

8-
config :nerves_system_ev3, :nerves_env,
8+
pkg = :nerves_system_ev3
9+
10+
config pkg, :nerves_env,
911
type: :system,
1012
version: version,
11-
mirrors: [
12-
"https://github.com/nerves-project/nerves_system_ev3/releases/download/v#{version}/nerves_system_ev3-v#{version}.tar.gz",
13-
"https://s3.amazonaws.com/nerves/artifacts/nerves_system_ev3-#{version}.tar.gz"],
14-
build_platform: Nerves.System.Platforms.BR,
15-
build_config: [
13+
compiler: :nerves_package,
14+
artifact_url: [
15+
"https://github.com/nerves-project/#{pkg}/releases/download/v#{version}/#{pkg}-v#{version}.tar.gz",
16+
],
17+
platform: Nerves.System.BR,
18+
platform_config: [
1619
defconfig: "nerves_defconfig",
17-
package_files: [
18-
"rootfs-additions",
19-
"post-createfs.sh",
20-
"fwup.conf",
21-
"linux-3.16-ev3dev.defconfig",
22-
"ev3-busybox.config",
23-
"nerves_logo_178x128.pbm"
24-
]
20+
],
21+
checksum: [
22+
"rootfs-additions",
23+
"post-createfs.sh",
24+
"fwup.conf",
25+
"linux-3.16-ev3dev.defconfig",
26+
"ev3-busybox.config",
27+
"nerves_logo_178x128.pbm",
28+
"VERSION"
2529
]

nerves_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BR2_arm=y
22
BR2_TOOLCHAIN_EXTERNAL=y
33
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
44
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
5-
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/nerves-project/toolchains/releases/download/v0.7.1/nerves_toolchain_armv5tejl_unknown_linux_musleabi-0.7.1.linux-x86_64.tar.xz"
5+
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/nerves-project/toolchains/releases/download/v0.8.0/nerves_toolchain_armv5tejl_unknown_linux_musleabi-0.8.0.linux-x86_64.tar.xz"
66
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv5tejl-unknown-linux-musleabi"
77
BR2_TOOLCHAIN_EXTERNAL_GCC_4_9=y
88
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_4=y

0 commit comments

Comments
 (0)