Skip to content

Commit 3b88c47

Browse files
committed
travis: zephyr: Use cmake makefile generator.
The core cmake rules don't generate valid a ninja build system due to their use of C_INCLUDES, C_FLAGS, and C_DEFINES. Update the zephyr port documentation and travis to use the makefile generator. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
1 parent 869123d commit 3b88c47

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
- docker exec -w /zephyrproject zephyr-ci west update
6060
- docker exec -w /zephyrproject zephyr-ci west zephyr-export
6161
script:
62-
- docker exec zephyr-ci west build -b qemu_x86 -- -DCONF_FILE=prj_minimal.conf
63-
- docker exec zephyr-ci west build -b frdm_k64f -- -DCONF_FILE=prj_minimal.conf
64-
- docker exec zephyr-ci west build -b qemu_x86
65-
- docker exec zephyr-ci west build -b frdm_k64f
66-
- docker exec zephyr-ci west build -b mimxrt1050_evk
67-
- docker exec zephyr-ci west build -b reel_board
62+
- docker exec zephyr-ci west build -b qemu_x86 -- -G'Unix Makefiles' -DCONF_FILE=prj_minimal.conf
63+
- docker exec zephyr-ci west build -b frdm_k64f -- -G'Unix Makefiles' -DCONF_FILE=prj_minimal.conf
64+
- docker exec zephyr-ci west build -b qemu_x86 -- -G'Unix Makefiles'
65+
- docker exec zephyr-ci west build -b frdm_k64f -- -G'Unix Makefiles'
66+
- docker exec zephyr-ci west build -b mimxrt1050_evk -- -G'Unix Makefiles'
67+
- docker exec zephyr-ci west build -b reel_board -- -G'Unix Makefiles'
6868

6969
# unix port on OSX (first in list because the build VM takes a long time to start)
7070
- stage: test

ports/zephyr/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ not have to be in the `ports/zephyr` directory. Assuming you have cloned the
5656
MicroPython repository into your home directory, you can build the Zephyr port
5757
for a frdm_k64f board like this:
5858

59-
$ west build -b frdm_k64f ~/micropython/ports/zephyr
59+
$ west build -b frdm_k64f ~/micropython/ports/zephyr -- -G'Unix Makefiles'
6060

6161
To build for QEMU instead:
6262

63-
$ west build -b qemu_x86 ~/micropython/ports/zephyr
63+
$ west build -b qemu_x86 ~/micropython/ports/zephyr -- -G'Unix Makefiles'
6464

6565
Consult the Zephyr documentation above for the list of
6666
supported boards. Board configuration files appearing in `ports/zephyr/boards/`
@@ -152,7 +152,7 @@ enabled over time.
152152

153153
To make a minimal build:
154154

155-
$ west build -b qemu_x86 ~/micropython/ports/zephyr -- -DCONF_FILE=prj_minimal.conf
155+
$ west build -b qemu_x86 ~/micropython/ports/zephyr -- -G'Unix Makefiles' -DCONF_FILE=prj_minimal.conf
156156

157157
To run a minimal build in QEMU without requiring TAP networking setup
158158
run the following after you built an image with the previous command:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy