2009-03-26 13:46:19 +01:00
|
|
|
CONTIKI_PROJECT = sky-shell-exec
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
TARGET=sky
|
|
|
|
|
2010-04-26 16:03:10 +02:00
|
|
|
DEFINES=ELFLOADER_DATAMEMORY_SIZE=0x100,ELFLOADER_TEXTMEMORY_SIZE=0x100
|
|
|
|
|
2009-03-26 13:46:19 +01:00
|
|
|
APPS = serial-shell
|
|
|
|
CONTIKI = ../..
|
2014-11-12 10:18:29 +01:00
|
|
|
CONTIKI_WITH_RIME = 1
|
2009-03-26 13:46:19 +01:00
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
|
|
|
%.shell-upload: %.ce
|
|
|
|
(echo; sleep 4; echo "~K"; sleep 4; \
|
|
|
|
echo "dec64 | write $*.ce | null"; sleep 4; \
|
|
|
|
../../tools/base64-encode < $<; sleep 4; \
|
|
|
|
echo ""; echo "~K"; echo "read $*.ce | size"; sleep 4) | make login
|
|
|
|
|
|
|
|
.PHONY: compile-executable upload-executable
|
|
|
|
compile-executable: hello-world.ce
|
|
|
|
echo Compiled Contiki executable: $<
|
|
|
|
|
|
|
|
upload-executable: hello-world.shell-upload
|
|
|
|
echo Uploaded Contiki executable: $<
|