diff --git a/src/Makefile b/src/Makefile index d96736e266e..7189f1c4a0c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,6 +4,7 @@ VPATH += $(PLATFORM_DIR) target ENABLE_DEBUG ?= 0 ENABLE_CORTEXAR ?= 0 ENABLE_RISCV ?= 0 +ENABLE_PUYA ?= 0 ENABLE_XILINX ?= 0 SYS = $(shell $(CC) -dumpmachine) @@ -71,7 +72,6 @@ SRC = \ nrf51.c \ nrf91.c \ nxpke04.c \ - puya.c \ remote.c \ rp.c \ sam3x.c \ @@ -100,6 +100,11 @@ ifeq (,$(filter all_platforms,$(MAKECMDGOALS))) include $(PLATFORM_DIR)/Makefile.inc endif +ifeq ($(ENABLE_PUYA), 1) +SRC += \ + puya.c +endif + ifeq ($(ENABLE_CORTEXAR), 1) CFLAGS += -DENABLE_CORTEXAR SRC += \ diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index 2c1068c0464..23974a0cd0a 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -9,6 +9,7 @@ CFLAGS +=-I ./target ENABLE_CORTEXAR := 1 ENABLE_RISCV := 1 # Target enables +ENABLE_PUYA := 1 ENABLE_XILINX := 1 # Clang requires some special handling here: -gnu means MinGW