Add thumb target, implement xtensa invokeNative asm code and update makefiles (#151)

This commit is contained in:
wenyongh
2019-12-24 11:09:54 +08:00
committed by GitHub
parent 5875a37f34
commit 2b12e2c957
21 changed files with 372 additions and 131 deletions

View File

@ -150,7 +150,7 @@ AliOS-Things
```
5. create a link to <shared-lib_root_dir> in middleware/iwasm/ and rename it to shared-lib
``` Bash
ln -s <shared-lib_root_dir> middle/iwasm/shared-lib
ln -s <shared-lib_root_dir> middleware/iwasm/shared-lib
```
6. modify file app/example/helloworld/helloworld.c, patch as:
``` C
@ -168,12 +168,25 @@ AliOS-Things
``` C
$(NAME)_COMPONENTS := osal_aos iwasm
```
8. build source code
8. build source code and run
For linuxhost:
``` Bash
aos make helloworld@linuxhost -c config
aos make
./out/helloworld@linuxhost/binary/helloworld@linuxhost.elf
```
For developerkit:
Modify file middleware/iwasm/aos.mk, patch as:
``` C
BUILD_TARGET := THUMBV7M
```
``` Bash
aos make helloworld@developerkit -c config
aos make
```
9. download the binary to developerkit board, check the output from serial port
download the binary to developerkit board, check the output from serial port
Docker
-------------------------