fab42e0d67
We now have more memory, so no need to compile for flash.
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
ifeq ($(TARGET), osd-merkur)
|
|
PLATFORM_FILES= avr-size wallclock.osd-merkur.hex \
|
|
wallclock.osd-merkur.eep
|
|
endif
|
|
ifeq ($(TARGET), pico-rv32-icoboard)
|
|
PLATFORM_FILES= appimage.hex
|
|
endif
|
|
|
|
ifeq ($(ICOTOOLS),)
|
|
ICOTOOLS=/usr/local/src/unpacked/icotools
|
|
endif
|
|
|
|
all: wallclock.$(TARGET) $(PLATFORM_FILES)
|
|
# use target "er-plugtest-server" explicitly when requried
|
|
|
|
CONTIKI=../../..
|
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
# Use this if running from flash, this needs flashpmem in icosoc.cfg
|
|
#LDFLAGS += -T riscv_flash.ld
|
|
|
|
PROJECTDIRS += $(REST_RESOURCES_DIR) $(REST_RESOURCES_DIR_COMMON)
|
|
PROJECT_SOURCEFILES += $(REST_RESOURCES_FILES)
|
|
PROJECT_SOURCEFILES += icosoc.c
|
|
|
|
# REST Engine shall use Erbium CoAP implementation
|
|
APPS += er-coap
|
|
APPS += rest-engine
|
|
APPS += json json-resource time
|
|
|
|
CONTIKI_WITH_IPV6 = 1
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
appimage.hex: wallclock.pico-rv32-icoboard
|
|
riscv32-unknown-elf-objcopy -O verilog wallclock.pico-rv32-icoboard \
|
|
appimage.hex
|
|
|
|
icosoc.mk: icosoc.cfg
|
|
$(ICOTOOLS)/icosoc/icosoc.py -c
|
|
|
|
include icosoc.mk
|
|
CLEAN += appimage.hex wallclock.$(TARGET)
|
|
-include *.d
|
|
|
|
flash-run: reset_boot
|
|
|
|
flash: prog_flash
|