[project][qemu-virt-arm32-minimal] add a new project that doesnt' enable as much
Useful for testing when the console is off.
This commit is contained in:
@@ -3,6 +3,7 @@ script: ./scripts/travis-build.sh
|
||||
env:
|
||||
- PROJECT=qemu-virt-arm32-test TOOLCHAIN=arm-eabi-7.3.0-Linux-x86_64
|
||||
- PROJECT=qemu-virt-arm64-test TOOLCHAIN=aarch64-elf-7.3.0-Linux-x86_64
|
||||
- PROJECT=qemu-virt-arm32-minimal TOOLCHAIN=arm-eabi-7.3.0-Linux-x86_64
|
||||
- PROJECT=vim2-test TOOLCHAIN=aarch64-elf-7.3.0-Linux-x86_64
|
||||
- PROJECT=zybo-test TOOLCHAIN=arm-eabi-7.3.0-Linux-x86_64
|
||||
- PROJECT=rpi2-test TOOLCHAIN=arm-eabi-7.3.0-Linux-x86_64
|
||||
|
||||
3
project/qemu-virt-arm32-minimal.mk
Normal file
3
project/qemu-virt-arm32-minimal.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
# main project for qemu-arm32
|
||||
include project/target/qemu-virt-arm32.mk
|
||||
|
||||
@@ -30,8 +30,9 @@ DO_MINIHEAP=0
|
||||
SMP=1
|
||||
MEMSIZE=512
|
||||
SUDO=""
|
||||
PROJECT=""
|
||||
|
||||
while getopts bdhm:cMnt36s: FLAG; do
|
||||
while getopts bdhm:cMnt36p:s: FLAG; do
|
||||
case $FLAG in
|
||||
b) DO_BLOCK=1;;
|
||||
c) DO_CMPCTMALLOC=1;;
|
||||
@@ -43,6 +44,7 @@ while getopts bdhm:cMnt36s: FLAG; do
|
||||
6) DO_64BIT=1;;
|
||||
m) MEMSIZE=$OPTARG;;
|
||||
s) SMP=$OPTARG;;
|
||||
p) PROJECT=$OPTARG;;
|
||||
h) HELP;;
|
||||
\?)
|
||||
echo unrecognized option
|
||||
@@ -54,13 +56,16 @@ shift $((OPTIND-1))
|
||||
|
||||
if [ $DO_64BIT == 1 ]; then
|
||||
QEMU="qemu-system-aarch64 -machine virt -cpu cortex-a53"
|
||||
PROJECT="qemu-virt-arm64-test"
|
||||
_PROJECT="qemu-virt-arm64-test"
|
||||
elif [ $DO_CORTEX_M3 == 1 ]; then
|
||||
QEMU="qemu-system-arm -machine lm3s6965evb -cpu cortex-m3"
|
||||
PROJECT="lm3s6965evb-test"
|
||||
_PROJECT="lm3s6965evb-test"
|
||||
else
|
||||
QEMU="qemu-system-arm -machine virt -cpu cortex-a15"
|
||||
PROJECT="qemu-virt-arm32-test"
|
||||
_PROJECT="qemu-virt-arm32-test"
|
||||
fi
|
||||
if [ "$PROJECT" == "" ]; then
|
||||
PROJECT=$_PROJECT
|
||||
fi
|
||||
|
||||
ARGS=" -m $MEMSIZE -smp $SMP -kernel build-${PROJECT}/lk.elf"
|
||||
|
||||
Reference in New Issue
Block a user