Added example for the elfloader on the MB851 platform, taken from sky-shell-exec example.
This commit is contained in:
parent
d0db3fc39a
commit
d86b7c4592
4 changed files with 187 additions and 0 deletions
27
examples/mb851/shell-exec/Makefile
Normal file
27
examples/mb851/shell-exec/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
CONTIKI_PROJECT = shell-exec-test
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
TARGET=mb851
|
||||
COFFEE=1
|
||||
ELF_LOADER=1
|
||||
|
||||
DEFINES=ELFLOADER_DATAMEMORY_SIZE=0x100,ELFLOADER_TEXTMEMORY_SIZE=0x100
|
||||
|
||||
APPS = serial-shell
|
||||
PROJECT_SOURCEFILES = shell-exec.c
|
||||
CONTIKI = ../../..
|
||||
|
||||
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: $<
|
Loading…
Add table
Add a link
Reference in a new issue