1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/wasm/Makefile
Frederik Haxel 5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00

37 lines
977 B
Makefile

APPLICATION = wasm-example
# If no BOARD is defined in the environment, use this default:
BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
USEPKG += wamr
ifeq (,$(filter native native64,$(BOARD)))
CFLAGS += -DTHREAD_STACKSIZE_MAIN='(6 * 1024)'
endif
export WAMR_CONFIG := $(abspath config.cmake)
BLOBS += test.wasm hello.wasm
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
all: hello.wasm
hello.wasm: wasm_sample/hello.c wasm_sample/Makefile
make -C wasm_sample hello.wasm
mv wasm_sample/hello.wasm .
#######################################################
# Load the rest of the usual RIOT make infrastructure #
#######################################################
include $(RIOTBASE)/Makefile.include