-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·29 lines (24 loc) · 968 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
rm -rf build
# build the project using the big endian toolchain.
cmake -H. -Bbuild -DCMAKE_C_COMPILER=/usr/local/bin/armeb-none-eabi-gcc/bin/armeb-none-eabi-gcc \
-DCMAKE_BUILD_TYPE=debug \
-DCMAKE_AR=/usr/local/bin/armeb-none-eabi-gcc/bin/armeb-none-eabi-ar \
-DCMAKE_OBJCOPY=/usr/local/bin/armeb-none-eabi-gcc/bin/armeb-none-eabi-objcopy \
-DCMAKE_OBJDUMP=/usr/local/bin/armeb-none-eabi-gcc/bin/armeb-none-eabi-objdump \
-DENDIANNESS=big
pushd build
make all
popd
rm -rf build
# build the project using the little endian toolchain.
cmake -H. -Bbuild -DCMAKE_C_COMPILER=/usr/local/bin/armel-none-eabi-gcc/bin/arm-none-eabi-gcc \
-DCMAKE_BUILD_TYPE=debug \
-DCMAKE_AR=/usr/local/bin/armel-none-eabi-gcc/bin/arm-none-eabi-ar \
-DCMAKE_OBJCOPY=/usr/local/bin/armel-none-eabi-gcc/bin/arm-none-eabi-objcopy \
-DCMAKE_OBJDUMP=/usr/local/bin/armel-none-eabi-gcc/bin/arm-none-eabi-objdump \
-DENDIANNESS=little
pushd build
make all
popd
rm -rf build