Skip to content

Commit e3f92a1

Browse files
committed
Another simplification
1 parent 5b566ee commit e3f92a1

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

firmware-building.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Building rpi4_webkiosk_playground
22

3-
These instructions document what I did to build rpi4_wbekiosk_playground on my Ubuntu 21.10 system.
3+
These instructions document what I did to build rpi4_webkiosk_playground on my Ubuntu 21.10 system.
4+
5+
## Summary
6+
7+
Set MIX_TARGET to rpi4_kiosk
48

59
## Setting up the environment
610

@@ -16,15 +20,7 @@ roger@dragon:~$ echo $MIX_TARGET
1620
rpi4_kiosk
1721
```
1822

19-
If you make any changes here. You must remember to run mix local.hex followed by mix local.rebar
20-
21-
```
22-
roger@dragon:~$ mix local.rebar
23-
.asdf/installs/elixir/1.13.0-otp-24/.mix/rebar already exists, overwrite? [Yn] n
24-
.asdf/installs/elixir/1.13.0-otp-24/.mix/rebar3 already exists, overwrite? [Yn] n
25-
```
26-
27-
The next important step is to ensure that the required qt5 packages installed. This is what is on my system.
23+
The next important step is to ensure that the required qt5 are packages installed. This is what is on my system. There are probably a lot of redundant packages here.
2824

2925
```
3026
roger@dragon:~$ dpkg -l|grep libqt5
@@ -116,19 +112,19 @@ ii libqt5xmlpatterns5:amd64 5.15.2-3
116112
ii libqt5xmlpatterns5-dev:amd64 5.15.2-3 amd64 Qt 5 XML patterns development files
117113
```
118114

119-
There are probably a lot of redundant packages here. A basic qt5 installation is required on your host machine because the webengine_kiosk dependency is compiled using elixir_make. This uses the Makefile in root of webengine_kiosk dependency. This makefile calls qmake to compile the code. qmake creates yet another makefile at
115+
A basic qt5 installation is required on your host machine because the webengine_kiosk dependency is compiled using elixir_make. This uses the Makefile in root of webengine_kiosk dependency. This makefile calls qmake to compile the code. qmake creates yet another makefile at
120116

121117
```
122118
_build/rpi4_kiosk_dev/lib/webengine_kiosk/obj/Makefile
123119
```
124120

125121
It is this makefile that actually does the work of cross compiling the dependency using a nerves sysroot.
126122

127-
If you clone my repo from https://github.com/rogerjames/99/nerves_rpi4_webkiosk_playground and switch to the "roger" branch, the you should have the fix you need to build successfully. If you do not the only change change the :webengine_kiosk dependency to pull from github rather than the local filesystem.
123+
If you clone my repo from https://github.com/rogerjames/99/nerves_rpi4_webkiosk_playground and switch to the "roger" branch, the you should have the fix you need to build successfully. If you do not the only change is to the :webengine_kiosk dependency. This need to pull from github rather than the local filesystem.
128124

129125
## Building
130126

131-
To build the firmware you need to a mix deps.update --all followed by a mix firmware. This is the output I get on my system. You can probably get away with just a mix deps.get instead of the update.
127+
To build the firmware you need to a mix deps. followed by a mix firmware. This is the output I get on my system. You can probably get away with just a mix deps.get instead of the update.
132128

133129
```
134130
roger@dragon:~/nerves/nerves_rpi4_webkiosk_playground$ mix deps.update --all

0 commit comments

Comments
 (0)