mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
14 lines
200 B
Batchfile
14 lines
200 B
Batchfile
#!/bin/sh
|
|
|
|
[ "$QEMU" ] || exit 43
|
|
|
|
cc=$(echo $SYSROOT/TOOLCHAIN/cross/bin/*-cc)
|
|
[ -e "$cc" ] || exit 43
|
|
|
|
cd $SYSROOT
|
|
exe=$$.exe
|
|
|
|
$cc -o $exe ${0%.cmd}.c
|
|
$QEMU -chroot $SYSROOT $exe || true
|
|
rm -f $exe
|