3 ## -- PANDORA USER SETTINGS
5 ## PANDORA - This should point to the root of your tool-chain {i.e. folder above the BIN dir}
7 PANDORA
=~
/Geca
/BennuGD_Pandora
/pandora-toolchain
/arm-angstrom-linux-gnueabi
9 ## HOST and TARGET - These should be the canonical tool names of your tool.
10 ## For the sake of this script HOST and TARGET should be the same.
11 ## Defaults would be 'arm-angstrom-linux-gnueabi' for a normal Pandora tool-chain.
13 HOST
=arm-angstrom-linux-gnueabi
14 TARGET
=arm-angstrom-linux-gnueabi
16 PKG_CONFIG_PATH
=~
/Geca
/BennuGD_Pandora
/pandora-toolchain
/arm-angstrom-linux-gnueabi
/lib
/pkgconfig
18 ## -- END PANDORA USER SETTINGS
23 export PKG_CONFIG_PATH
28 PATH
=$PANDORA/bin
:$PATH
31 #ln -s `whereis -b pkg-config | sed 's/pkg-config\: //g'` ~/Geca/BennuGD_Pandora/pandora-toolchain/arm-angstrom-linux-gnueabil/bin/pkg-config
33 # Do not edit below here
34 CC
="${PANDORA}/../bin/${HOST}-gcc"
35 CXX
="${PANDORA}/../bin/${HOST}-g++"
36 AR
="${PANDORA}/../bin/${HOST}-ar"
37 STRIP
="${PANDORA}/../bin/${HOST}-strip"
38 RANLIB
="${PANDORA}/../bin/${HOST}-ranlib"
40 #CFLAGS="-DTARGET_PANDORA -O2 -ffast-math -fomit-frame-pointer -mcpu=arm920t -DARM -D_ARM_ASSEM_ -I${PANDORA}/include -I${PANDORA}/include/libxml2 -I${PANDORA}/include/SDL"
41 #CFLAGS="-DTARGET_PANDORA -mcpu=arm926ej-s -mtune=arm926ej-s -fsigned-char -O3 -msoft-float -fomit-frame-pointer -fstrict-aliasing -mstructure-size-boundary=32 -fexpensive-optimizations -fweb -frename-registers -falign-functions=16 -falign-loops -falign-labels -falign-jumps -finline -finline-functions -fno-common -fno-builtin -fsingle-precision-constant -DARM -D_ARM_ASSEM_ -I${PANDORA}/include -I${PANDORA}/include/libxml2 -I${PANDORA}/include/SDL"
42 CFLAGS
="-DTARGET_PANDORA -mcpu=arm926ej-s -mtune=arm926ej-s -O3 -DARM -D_ARM_ASSEM_ -I${PANDORA}/include -I${PANDORA}/include/libxml2 -I${PANDORA}/include/SDL"
44 LDFLAGS
="-L${PANDORA}/lib"
45 #PKG_CONFIG="${PANDORA}/bin/pkg-config"
56 echo Current settings.
58 echo Install root
/Working dir
= $PANDORA
59 echo Tool locations
= $PANDORA/bin
60 echo Host
/Target
= $HOST / $TARGET
70 echo LDFLAGS
= $LDFLAGS
71 echo PKG_CONFIG
= $PKG_CONFIG
73 echo "### Building 3rd party software ###"
90 echo "### Building BennuGD Core ###"
95 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
102 if [ $?
-ne 0 ]; then
108 echo "### Building BennuGD Modules ###"
113 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
120 if [ $?
-ne 0 ]; then
126 echo "### Building BennuGD Tools ###"
131 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
138 if [ $?
-ne 0 ]; then
144 echo "### Copying files to bin folder ###"
146 mkdir
-p bin
/$TARGET 2>/dev
/null
147 cp 3rdparty
/des-4.04b
/libdes.so bin
/$TARGET
148 cp core
/bgdi
/src
/.libs
/bgdi bin
/$TARGET
149 cp core
/bgdc
/src
/bgdc bin
/$TARGET
150 cp core
/bgdrtm
/src
/.libs
/libbgdrtm.so bin
/$TARGET
151 cp $
(find modules
-name '*.so') bin
/$TARGET
152 cp tools
/moddesc
/moddesc bin
/$TARGET
154 echo "### Build done! ###"