c49d4a0b36
Version now is below 128k but doesn't include most application-specific interesting stuff. The icosoc routines for I/O are now linked in (thanks to Clifford for spotting this) and we have debug output. Current code is enough to get cooperative multitasking and timers working and tested, this is next todo.
42 lines
1 KiB
Makefile
42 lines
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\"
|
|
|
|
#FIXME PROJECTDIRS += $(REST_RESOURCES_DIR) $(REST_RESOURCES_DIR_COMMON)
|
|
#FIXME PROJECT_SOURCEFILES += $(REST_RESOURCES_FILES)
|
|
PROJECT_SOURCEFILES += icosoc.c
|
|
|
|
# REST Engine shall use Erbium CoAP implementation
|
|
#FIXME APPS += er-coap
|
|
#FIXME APPS += rest-engine
|
|
#FIXME 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
|