2014-03-29 12:14:24 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
KDIR=~/linux-git
|
|
|
|
BUILD_ROOT_DIR=/temp-build/buildroot-2014.02/
|
|
|
|
|
|
|
|
scons -j20
|
2014-04-07 11:35:22 +08:00
|
|
|
mkdir -p $BUILD_ROOT_DIR/output/target/vmm
|
2014-03-29 12:14:24 +08:00
|
|
|
cp rtthread.bin $BUILD_ROOT_DIR/output/target/vmm
|
|
|
|
|
|
|
|
(
|
|
|
|
cd ./linux_vmm/
|
|
|
|
export PATH=/opt/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/:"$PATH"
|
|
|
|
make -C $KDIR M=$PWD VMM_HDR_DIR=$PWD/../ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
|
|
|
|
cp rtvmm.ko $BUILD_ROOT_DIR/output/target/root/
|
|
|
|
)
|
|
|
|
|
|
|
|
make -C $BUILD_ROOT_DIR
|