3 ## -- DINGUX USER SETTINGS
5 ## DINGUX - This should point to the root of your tool-chain {i.e. folder above the BIN dir}
7 DINGUX
=/opt
/dingux-a320
/mipsel-linux-uclibc
/usr
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 'mipsel-linux'.
16 PKG_CONFIG_PATH
=/opt
/dingux-a320
/mipsel-linux-uclibc
/usr
/lib
/pkgconfig
18 ## -- END DINGUX USER SETTINGS
23 export PKG_CONFIG_PATH
28 PATH
=$PATH:$DINGUX/bin
31 #ln -s `whereis -b pkg-config | sed 's/pkg-config\: //g'` /opt/dingux-a320/mipsel-linux-uclibc/usr/bin/pkg-config
33 # Do not edit below here
34 CC
="${DINGUX}/bin/${HOST}-gcc"
35 CXX
="${DINGUX}/bin/${HOST}-g++"
36 AR
="${DINGUX}/bin/${HOST}-ar"
37 STRIP
="${DINGUX}/bin/${HOST}-strip"
38 RANLIB
="${DINGUX}/bin/${HOST}-ranlib"
39 LD
="${DINGUX}/bin/${HOST}-ld"
41 # -msoft-float -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -G0 -march=mips32 -mtune=r4600 -mno-mips16
42 CFLAGS
="-DNO_ZLIB -D_REENTRANT -DTARGET_DINGUX_A320 -O2 -I${DINGUX}/include -msoft-float -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -G0 -march=mips32 -mtune=r4600 -mno-mips16"
43 LDFLAGS
="-L${DINGUX}/lib -D_REENTRANT"
44 #PKG_CONFIG="${DINGUX}/bin/pkg-config"
57 echo Current settings.
59 echo Install root
/Working dir
= $DINGUX
60 echo Tool locations
= $DINGUX/bin
61 echo Host
/Target
= $HOST / $TARGET
72 echo LDFLAGS
= $LDFLAGS
73 echo PKG_CONFIG
= $PKG_CONFIG
75 echo "### Building 3rd party software ###"
93 echo "### Building BennuGD Core ###"
98 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
105 if [ $?
-ne 0 ]; then
111 echo "### Building BennuGD Modules ###"
116 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
123 if [ $?
-ne 0 ]; then
129 echo "### Building BennuGD Tools ###"
134 .
/configure
--prefix=${PREFIX} --target=${TARGET} --host=${HOST} --build=${BUILD} --enable-shared PKG_CONFIG_LIBDIR=${PKG_CONFIG_PATH} && make clean
&& make
141 if [ $?
-ne 0 ]; then
147 echo "### Copying files to bin folder ###"
149 mkdir
-p bin
/$TARGET 2>/dev
/null
150 cp 3rdparty
/des-4.04b
/libdes.so bin
/$TARGET
151 cp core
/bgdi
/src
/.libs
/bgdi bin
/$TARGET
152 cp core
/bgdc
/src
/bgdc bin
/$TARGET
153 cp core
/bgdrtm
/src
/.libs
/libbgdrtm.so bin
/$TARGET
154 cp $
(find modules
-name '*.so') bin
/$TARGET
155 cp tools
/moddesc
/moddesc bin
/$TARGET
157 echo "### Build done! ###"