使用 ./build.sh config
或直接修改 .buildconfig
/lichee# cat .buildconfig
export LICHEE_CHIP=sun50iw1p1
export LICHEE_PLATFORM=android
export LICHEE_KERN_VER=linux-3.10
export LICHEE_BOARD=t1_v1
./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun50iw1p1
Choice: 0
All available platforms:
0. android
1. ubuntu
2. linuxqt
Choice: 0
All available kernel:
0. linux-3.10
Choice: 0
All available boards:
0. t1
1. t1_v1
Choice: 1
./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun50iw1p1
INFO: platform: android
INFO: kernel: linux-3.10
INFO: board: t1_v1
INFO: output: out/sun50iw1p1/android/t1_v1
INFO: ----------------------------------------
INFO: build buildroot ...
external toolchain has been installed
external toolchain_32 has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
路径 lichee\buildroot\scripts\mkcommon.sh
FLAGS_HELP="Top level build script for lichee
Examples:
Build lichee, it maybe config platform options, if
you first use it. And it will pack firmware use default
argument.
$ ./build.sh
Configurate platform option
$ ./build.sh -c
or
$ ./build.sh config
or
$ ./build.sh --config
Pack linux, dragonboard image
$ ./build.sh pack[_] e.g. debug, dump, prvt
Build lichee using command argument
$ ./build.sh -p <chip_os> e.g. sun8iw1p1_linux, sun8iw1p1
Build module using command argument
$ ./build.sh -m
Build special kernel
$ ./build.sh -k
Build forcely to clean rootfs dir
$ ./build.sh -f
"