Last change
on this file since 125 was 34, checked in by Sanahuja Guillaume, 8 years ago |
m
|
-
Property svn:executable
set to
*
|
File size:
696 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 "Warnink, 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}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.