Last change
on this file since 70 was 46, checked in by Thomas Fuhrmann, 8 years ago |
Add the mavlink branch
|
-
Property svn:executable
set to
*
|
File size:
697 bytes
|
Line | |
---|
1 | DIR=build_$(uname -m)
|
---|
2 |
|
---|
3 | #verifie l'existence du lien symbolique build
|
---|
4 | if [ -d build ];then
|
---|
5 | if ! readlink build > /dev/null ; then
|
---|
6 | #it is a directory, exit to do not erase anything
|
---|
7 | err "Error: build already exsits and is a directory; it should be a symlink."
|
---|
8 | exit 1
|
---|
9 | fi
|
---|
10 | if ! readlink build | grep -w $DIR >/dev/null; then
|
---|
11 | echo "Warning, build was pointing to another directory."
|
---|
12 | fi
|
---|
13 | rm build
|
---|
14 | fi
|
---|
15 |
|
---|
16 | #creation du repertoire
|
---|
17 | mkdir -p $DIR
|
---|
18 | #creation du lien symbolique
|
---|
19 | ln -s $DIR build
|
---|
20 |
|
---|
21 | #creation project x86
|
---|
22 | cd build
|
---|
23 |
|
---|
24 | rm -f CMakeCache.txt
|
---|
25 | rm -rf CMakeFiles
|
---|
26 | ${OECORE_HOST_NATIVE_SYSROOT}/usr/bin/cmake ../ -G "CodeBlocks - Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_HOST_TOOLCHAIN}
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.