Skip to content

Commit 46530a9

Browse files
committed
Bump deps to latest; add osd32mp1
1 parent 7b79855 commit 46530a9

File tree

8 files changed

+100
-68
lines changed

8 files changed

+100
-68
lines changed

.circleci/config.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
defaults: &defaults
22
working_directory: /nerves/build
33
docker:
4-
- image: nervesproject/nerves_system_br:1.11.0
4+
- image: nervesproject/nerves_system_br:1.13.2
55

66
elixir_version: &elixir_version
7-
ELIXIR_VERSION: 1.10.2-otp-22
7+
ELIXIR_VERSION: 1.11.1-otp-23
88

99
install_elixir: &install_elixir
1010
run:
@@ -92,6 +92,13 @@ build: &build
9292
version: 2.0
9393

9494
jobs:
95+
build_osd32mp1:
96+
<<: *defaults
97+
environment:
98+
<<: *elixir_version
99+
MIX_TARGET: osd32mp1
100+
<<: *build
101+
95102
build_rpi4:
96103
<<: *defaults
97104
environment:
@@ -156,6 +163,11 @@ jobs:
156163
- run:
157164
name: Create Artifacts Dir
158165
command: mkdir -p /home/nerves/deploy
166+
- run:
167+
name: osd32mp1
168+
command: echo "osd32mp1" > .target
169+
- restore_cache:
170+
key: nerves/deploy/{{ checksum ".target" }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
159171
- run:
160172
name: rpi4
161173
command: echo "rpi4" > .target
@@ -211,6 +223,11 @@ workflows:
211223
version: 2
212224
build_deploy:
213225
jobs:
226+
- build_osd32mp1:
227+
context: org-global
228+
filters:
229+
tags:
230+
only: /.*/
214231
- build_rpi4:
215232
context: org-global
216233
filters:
@@ -254,6 +271,7 @@ workflows:
254271
- deploy:
255272
context: org-global
256273
requires:
274+
- build_osd32mp1
257275
- build_rpi4
258276
- build_rpi3a
259277
- build_rpi3

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ by the boards they support:
4747
* `rpi3` - Raspberry Pi 3 Model B and Model B+
4848
* `rpi3a` - Raspberry Pi 3 Model A+
4949
* `rpi4` - Raspberry Pi 4 Model B
50+
* `osd32mp1` - Octavo OSD32MP1-BRK
5051

5152
Once that's done, you're ready to burn the firmware to the MicroSD card.
5253

config/config.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# is restricted to this project.
66
import Config
77

8+
# Enable the Nerves integration with Mix
9+
Application.start(:nerves_bootstrap)
10+
811
config :circuits_quickstart, target: Mix.target()
912

1013
# Customize non-Elixir parts of the firmware. See
@@ -15,7 +18,7 @@ config :nerves, :firmware, rootfs_overlay: "rootfs_overlay"
1518
# Set the SOURCE_DATE_EPOCH date for reproducible builds.
1619
# See https://reproducible-builds.org/docs/source-date-epoch/ for more information
1720

18-
config :nerves, source_date_epoch: "1584774910"
21+
config :nerves, source_date_epoch: "1603310828"
1922

2023
# Use Ringlogger as the logger backend and remove :console.
2124
# See https://hexdocs.pm/ring_logger/readme.html for more information on

config/target.exs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ config :shoehorn,
1414

1515
config :nerves_runtime, :kernel, use_system_registry: false
1616

17-
config :nerves_pack,
18-
ssh_user_passwords: [{"circuits", "circuits"}]
17+
# Erlinit can be configured without a rootfs_overlay. See
18+
# https://github.com/nerves-project/erlinit/ for more information on
19+
# configuring erlinit.
20+
21+
config :nerves,
22+
erlinit: [
23+
hostname_pattern: "nerves-%s"
24+
]
25+
26+
# Configure the device for SSH IEx prompt access and firmware updates
27+
#
28+
# * See https://hexdocs.pm/nerves_ssh/readme.html for general SSH configuration
29+
# * See https://hexdocs.pm/ssh_subsystem_fwup/readme.html for firmware updates
30+
31+
config :nerves_ssh,
32+
user_passwords: [{"circuits", "circuits"}]
1933

2034
# Configure the network using vintage_net
2135
# See https://github.com/nerves-networking/vintage_net for more information

mix.exs

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,22 @@ defmodule CircuitsQuickstart.MixProject do
33

44
@app :circuits_quickstart
55
@version "0.3.0"
6-
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :x86_64]
6+
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4, :bbb, :osd32mp1, :x86_64]
77

88
def project do
99
[
1010
app: @app,
1111
version: @version,
12-
elixir: "~> 1.9",
13-
archives: [nerves_bootstrap: "~> 1.8"],
12+
elixir: "~> 1.10",
13+
archives: [nerves_bootstrap: "~> 1.9"],
1414
start_permanent: Mix.env() == :prod,
1515
build_embedded: true,
16-
aliases: [loadconfig: [&bootstrap/1]],
1716
deps: deps(),
1817
releases: [{@app, release()}],
1918
preferred_cli_target: [run: :host, test: :host]
2019
]
2120
end
2221

23-
# Starting nerves_bootstrap adds the required aliases to Mix.Project.config()
24-
# Aliases are only added if MIX_TARGET is set.
25-
def bootstrap(args) do
26-
Application.start(:nerves_bootstrap)
27-
Mix.Task.run("loadconfig", args)
28-
end
29-
3022
def application do
3123
[
3224
extra_applications: [:logger, :runtime_tools, :inets]
@@ -36,10 +28,10 @@ defmodule CircuitsQuickstart.MixProject do
3628
defp deps do
3729
[
3830
# Dependencies for all targets
39-
{:nerves, "~> 1.6.0", runtime: false},
40-
{:shoehorn, "~> 0.6"},
41-
{:ring_logger, "~> 0.6"},
42-
{:toolshed, "~> 0.2"},
31+
{:nerves, "~> 1.7.0", runtime: false},
32+
{:shoehorn, "~> 0.7.0"},
33+
{:ring_logger, "~> 0.8.1"},
34+
{:toolshed, "~> 0.2.13"},
4335

4436
# Circuits projects
4537
{:circuits_uart, "~> 1.3"},
@@ -50,19 +42,19 @@ defmodule CircuitsQuickstart.MixProject do
5042
{:ramoops_logger, "~> 0.1"},
5143

5244
# Dependencies for all targets except :host
53-
{:nerves_runtime, "~> 0.6", targets: @all_targets},
54-
{:nerves_pack, "~> 0.3",
55-
github: "nerves-project/nerves_pack", branch: "user_password", targets: @all_targets},
45+
{:nerves_runtime, "~> 0.11.3", targets: @all_targets},
46+
{:nerves_pack, "~> 0.4.0", targets: @all_targets},
5647

5748
# Dependencies for specific targets
58-
{:nerves_system_rpi, "~> 1.11", runtime: false, targets: :rpi},
59-
{:nerves_system_rpi0, "~> 1.11", runtime: false, targets: :rpi0},
60-
{:nerves_system_rpi2, "~> 1.11", runtime: false, targets: :rpi2},
61-
{:nerves_system_rpi3, "~> 1.11", runtime: false, targets: :rpi3},
62-
{:nerves_system_rpi3a, "~> 1.11", runtime: false, targets: :rpi3a},
63-
{:nerves_system_rpi4, "~> 1.11", runtime: false, targets: :rpi4},
64-
{:nerves_system_bbb, "~> 2.6", runtime: false, targets: :bbb},
65-
{:nerves_system_x86_64, "~> 1.11", runtime: false, targets: :x86_64}
49+
{:nerves_system_rpi, "~> 1.13", runtime: false, targets: :rpi},
50+
{:nerves_system_rpi0, "~> 1.13", runtime: false, targets: :rpi0},
51+
{:nerves_system_rpi2, "~> 1.13", runtime: false, targets: :rpi2},
52+
{:nerves_system_rpi3, "~> 1.13", runtime: false, targets: :rpi3},
53+
{:nerves_system_rpi3a, "~> 1.13", runtime: false, targets: :rpi3a},
54+
{:nerves_system_rpi4, "~> 1.13", runtime: false, targets: :rpi4},
55+
{:nerves_system_bbb, "~> 2.8", runtime: false, targets: :bbb},
56+
{:nerves_system_osd32mp1, "~> 0.4", runtime: false, targets: :osd32mp1},
57+
{:nerves_system_x86_64, "~> 1.13", runtime: false, targets: :x86_64}
6658
]
6759
end
6860

0 commit comments

Comments
 (0)