Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 616c13f

Browse files
James Prestwoodgrgustaf
authored andcommitted
[readme] Update cmake instructions to match Zephyr upstream (#1718)
The ZJS cmake instructions were wrong (and did not seem to work) for ZJS. Updated the the same steps that zephyr uses. These steps are also much easier and do not require actually building cmake. Signed-off-by: James Prestwood <[email protected]>
1 parent a78c747 commit 616c13f

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,6 @@ sudo apt-get update
6262
sudo apt-get install cmake dfu-util git python3-yaml screen uglifyjs
6363
```
6464

65-
Note: cmake 3.8.2 or later is required, and your system might install an older
66-
version, if this is the case, you'll have to manually install the latest
67-
version of cmake:
68-
```bash
69-
sudo apt-get purge cmake
70-
wget https://cmake.org/files/v3.9/cmake-3.9.5.tar.gz
71-
tar -xzvf cmake-3.9.5.tar.gz
72-
cd cmake-3.9.5/
73-
./bootstrap
74-
make -j4
75-
sudo make install
76-
```
77-
7865
Note: python3-yaml is a recent requirement for the frdm-k64f build due to a
7966
change in Zephyr, so it could be left out currently if you don't use k64f.
8067
Before that, for a while python-yaml was needed when the script was using
@@ -180,6 +167,18 @@ environment variables, too. Here's the right way to do that:
180167
source deps/zephyr/zephyr-env.sh
181168
```
182169

170+
Note: cmake 3.8.2 or later is required, and your system might install an older
171+
version, if this is the case, you'll have to manually install the latest
172+
version of cmake:
173+
```bash
174+
$ mkdir $HOME/cmake && cd $HOME/cmake
175+
$ wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh
176+
$ yes | sh cmake-3.8.2-Linux-x86_64.sh | cat
177+
$ echo "export PATH=$PWD/cmake-3.8.2-Linux-x86_64/bin:\$PATH" >> $HOME/.zephyrrc
178+
$ source $ZJS_ROOT/deps/zephyr/zephyr-env.sh
179+
$ cmake --version
180+
```
181+
183182
### Build and Flash
184183
#### x86 application image and ARC support image
185184
Now you're ready to build the x86 and ARC images. The x86 image

0 commit comments

Comments
 (0)