forked from xuos/xiuos
minor: remove devtools.sh
This commit is contained in:
parent
736189f855
commit
922a3ceef2
47
devtools.sh
47
devtools.sh
|
@ -1,47 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
|
|
||||||
current_path=$(pwd)
|
|
||||||
xizi_path=Ubiquitous/XiZi
|
|
||||||
board=ok1052-c
|
|
||||||
qemu_machine=netduinoplus2
|
|
||||||
|
|
||||||
run_in_docker() {
|
|
||||||
docker run \
|
|
||||||
-i -t --rm \
|
|
||||||
-v $current_path:$current_path \
|
|
||||||
-w $current_path \
|
|
||||||
xiuos_builder \
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
run_in_docker make -C $xizi_path BOARD=$board
|
|
||||||
}
|
|
||||||
|
|
||||||
menuconfig() {
|
|
||||||
run_in_docker make -C $xizi_path BOARD=$board menuconfig
|
|
||||||
}
|
|
||||||
|
|
||||||
clean() {
|
|
||||||
run_in_docker make -C $xizi_path clean
|
|
||||||
}
|
|
||||||
|
|
||||||
distclean() {
|
|
||||||
run_in_docker make -C $xizi_path distclean
|
|
||||||
}
|
|
||||||
|
|
||||||
simulate() {
|
|
||||||
qemu-system-arm $debug_param \
|
|
||||||
-machine $qemu_machine \
|
|
||||||
-nographic \
|
|
||||||
-kernel $xizi_path/build/XiZi_$board.elf \
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
|
|
||||||
gdb() {
|
|
||||||
gdb-multiarch \
|
|
||||||
$xizi_path/build/XiZi_$board.elf \
|
|
||||||
-ex "target remote localhost:1234"
|
|
||||||
}
|
|
||||||
|
|
||||||
$@
|
|
Loading…
Reference in New Issue