bootstrap.sh 740 Bytes
Newer Older
1
2
3
#!/bin/sh
set -xe

4
cd "$(dirname "$0")"
5
6
test -d build/ && rm -r build/

7
git submodule update --init ./lib/micropython
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
meson --cross-file card10-cross.ini build/

set +x

echo "---------------------------------------------------------------"
echo "   Build configured successfully!"
echo "---------------------------------------------------------------"
echo "   You can now start building using"
echo "       ninja -C build/"
echo ""
echo "   The path after -C is the path to the build-directory."
echo "   Suppose you are in 'hw-tests/hello-world/', you could"
echo "   then run 'ninja -C ../../build/'"
echo ""
echo "   You can also build a single target.  For example:"
echo "       ninja -C build/ hw-tests/hello-world/hello-world.elf"