@@ -115,9 +115,6 @@ examples: toolchain
115115EXCLUDE_RUNTIME := --exclude libtock --exclude libtock_runtime \
116116 --exclude libtock_debug_panic --exclude libtock_small_panic --exclude embedded_graphics_libtock
117117
118- # Arguments to pass to cargo to exclude demo crates.
119- EXCLUDE_RUNTIME := $(EXCLUDE_RUNTIME ) --exclude st7789 --exclude st7789-slint
120-
121118# Arguments to pass to cargo to exclude crates that cannot be tested by Miri. In
122119# addition to excluding libtock_runtime, Miri also cannot test proc macro crates
123120# (and in fact will generate broken data that causes cargo test to fail).
@@ -138,8 +135,6 @@ test: examples
138135 --target=thumbv7em-none-eabi --workspace
139136 LIBTOCK_PLATFORM=hifive1 cargo clippy $(EXCLUDE_STD ) \
140137 --target=riscv32imac-unknown-none-elf --workspace
141- $(MAKE ) apollo3-st7789
142- $(MAKE ) apollo3-st7789-slint
143138 cd nightly && \
144139 MIRIFLAGS=" -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check" \
145140 cargo miri test $(EXCLUDE_MIRI ) --manifest-path=../Cargo.toml \
@@ -174,22 +169,6 @@ $(1): toolchain
174169 mkdir -p target/tbf/$(1 )
175170 cp target/$(1 ) /$(2 ) /release/examples/$(EXAMPLE ) .{tab,tbf} \
176171 target/tbf/$(1 )
177-
178- .PHONY: $(1 ) -st7789
179- $(1 ) -st7789: toolchain
180- cd demos/st7789 && LIBTOCK_PLATFORM=$(1 ) cargo run $(features ) \
181- $(release ) --target=$(2 ) --target-dir=target/$(1 )
182- mkdir -p target/tbf/$(1 )
183- cp demos/st7789/target/$(1 ) /$(2 ) /release/st7789.{tab,tbf} \
184- target/tbf/$(1 )
185-
186- .PHONY: $(1 ) -st7789-slint
187- $(1 ) -st7789-slint: toolchain
188- cd demos/st7789-slint && LIBTOCK_PLATFORM=$(1 ) cargo run $(features ) \
189- $(release ) --target=$(2 ) --target-dir=target/$(1 )
190- mkdir -p target/tbf/$(1 )
191- cp demos/st7789-slint/target/$(1 ) /$(2 ) /release/st7789-slint.{tab,tbf} \
192- target/tbf/$(1 )
193172endef
194173
195174# Creates the `make flash-<BOARD> EXAMPLE=<EXAMPLE>` targets. Arguments:
@@ -200,18 +179,6 @@ flash-$(1): toolchain
200179 LIBTOCK_PLATFORM=$(1 ) cargo run --example $(EXAMPLE ) $(features ) \
201180 $(release ) --target=$(2 ) --target-dir=target/flash-$(1 ) -- \
202181 --deploy=tockloader
203-
204- .PHONY: flash-$(1 ) -st7789
205- flash-$(1 ) -st7789: toolchain
206- cd demos/st7789 && LIBTOCK_PLATFORM=$(1 ) cargo run $(features ) \
207- $(release ) --target=$(2 ) --target-dir=target/flash-$(1 ) -- \
208- --deploy=tockloader
209-
210- .PHONY: flash-$(1 ) -st7789-slint
211- flash-$(1 ) -st7789-slint: toolchain
212- cd demos/st7789-slint && LIBTOCK_PLATFORM=$(1 ) cargo run $(features ) \
213- $(release ) --target=$(2 ) --target-dir=target/flash-$(1 ) -- \
214- --deploy=tockloader
215182endef
216183
217184$(eval $(call platform_build,apollo3,thumbv7em-none-eabi))
@@ -246,6 +213,8 @@ $(eval $(call platform_flash,clue_nrf52840,thumbv7em-none-eabi))
246213demos :
247214 $(MAKE ) -C demos/embedded_graphics/spin
248215 $(MAKE ) -C demos/embedded_graphics/buttons
216+ $(MAKE ) -C demos/st7789
217+ $(MAKE ) -C demos/st7789-slint
249218
250219# clean cannot safely be invoked concurrently with other actions, so we don't
251220# need to depend on toolchain. We also manually remove the nightly toolchain's
0 commit comments