Enhance wasm loader and interpreter, enhance code security and update document (#149)
This commit is contained in:
@ -2,8 +2,19 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
WAMR_DIR=${PWD}/../../..
|
||||
|
||||
if [ -z $KW_BUILD ] || [ -z $KW_OUT_FILE ];then
|
||||
echo "Local Build Env"
|
||||
makewrap="make"
|
||||
else
|
||||
echo "Klocwork Build Env"
|
||||
makewrap="kwinject -o $KW_OUT_FILE make"
|
||||
fi
|
||||
|
||||
if [ ! -d "lvgl" ]; then
|
||||
git clone https://github.com/littlevgl/lvgl.git --branch v5.3
|
||||
fi
|
||||
make -f Makefile_wasm_app
|
||||
$makewrap -f Makefile_wasm_app
|
||||
|
||||
|
||||
@ -104,7 +104,10 @@ void on_init()
|
||||
/* set up a timer */
|
||||
user_timer_t timer;
|
||||
timer = api_timer_create(10, true, false, timer1_update);
|
||||
api_timer_restart(timer, 10);
|
||||
if (timer)
|
||||
api_timer_restart(timer, 10);
|
||||
else
|
||||
printf("Fail to create timer.\n");
|
||||
}
|
||||
|
||||
/**********************
|
||||
|
||||
Reference in New Issue
Block a user