Refine build script of zephyr product-mini, enable aot soft-float support (#188)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# Copyright (C) 2020 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
DEPS_DIR=${PWD}/../../../core/deps
|
||||
@ -8,7 +8,7 @@ DEPS_DIR=${PWD}/../../../core/deps
|
||||
cd ${DEPS_DIR}
|
||||
if [ ! -d "llvm" ]; then
|
||||
echo "Clone llvm to core/deps/ .."
|
||||
git clone https://github.com/llvm-mirror/llvm.git
|
||||
git clone --depth 1 https://github.com/llvm-mirror/llvm.git
|
||||
fi
|
||||
|
||||
cd llvm
|
||||
|
||||
35
product-mini/platforms/zephyr/simple/build.sh
Executable file
35
product-mini/platforms/zephyr/simple/build.sh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
X86_TARGET="x86"
|
||||
STM32_TARGET="stm32"
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
echo "USAGE:"
|
||||
echo "$0 $X86_TARGET|$STM32_TARGET"
|
||||
echo "Example:"
|
||||
echo " $0 $X86_TARGET"
|
||||
echo " $0 $STM32_TARGET"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET=$1
|
||||
|
||||
if [ "$TARGET" = "$X86_TARGET" ] ; then
|
||||
cp prj_qemu_x86_nommu.conf prj.conf
|
||||
rm -fr build && mkdir build && cd build
|
||||
cmake -GNinja -DBOARD=qemu_x86_nommu -DWAMR_BUILD_TARGET=X86_32 ..
|
||||
ninja
|
||||
ninja run
|
||||
elif [ "$TARGET" = "$STM32_TARGET" ] ; then
|
||||
cp prj_nucleo767zi.conf prj.conf
|
||||
rm -fr build && mkdir build && cd build
|
||||
cmake -GNinja -DBOARD=nucleo_f767zi -DWAMR_BUILD_TARGET=THUMBV7 ..
|
||||
ninja
|
||||
ninja flash
|
||||
else
|
||||
echo "unsupported target: $TARGET"
|
||||
exit 1
|
||||
fi
|
||||
@ -1,5 +0,0 @@
|
||||
# set CONFIG_ARM_MPU=y if run in ARM's board
|
||||
# CONFIG_ARM_MPU is not set
|
||||
CONFIG_STACK_SENTINEL=y
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_LOG=y
|
||||
@ -0,0 +1,7 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_STACK_SENTINEL=y
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_LOG=y
|
||||
@ -0,0 +1,6 @@
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
CONFIG_STACK_SENTINEL=y
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_LOG=y
|
||||
Reference in New Issue
Block a user