blob: bb874c4382bd76c6c6756889dac413d3d02daa69 [file] [log] [blame]
#!/bin/bash
set -e
source ../../a5s_linux_sdk/ambarella/build/env/CodeSourcery.env
PATH=$PATH:$ARM_LINUX_TOOLCHAIN_DIR/bin
TOP=`pwd`
rm -rf dist
mkdir dist
rm -rf build
mkdir build
cd build
tar xfv ../dbus-1.8.0.tar.gz
cd dbus-1.8.0
./configure --prefix= \
--host=arm-none-linux-gnueabi \
--with-dbus-user=dbus \
--with-system-pid-file=/var/run/messagebus.pid \
CFLAGS="-mtune=arm1136j-s -march=armv6 -Os -I$TOP/../../a5s_linux_sdk/ambarella/prebuild/third-party/expat/include" \
LDFLAGS="-Os -L$TOP/../../a5s_linux_sdk/ambarella/prebuild/third-party/expat/lib -lexpat -Wl,-rpath,$TOP/../../a5s_linux_sdk/ambarella/prebuild/third-party/zlib/lib" \
GLIB_CFLAGS="-I$TOP/../glib/dist/usr/include/glib-2.0 -I$TOP/../glib/dist/usr/lib/glib-2.0/include" \
GLIB_LIBS="-L$TOP/../glib/dist/usr/lib -lglib-2.0 -lgobject-2.0 -lgio-2.0"
make install-strip DESTDIR=$TOP/dist
cd $TOP
rm -rf fakeroot
mkdir fakeroot
cp -R dist/* fakeroot/
rm -rf fakeroot/include
rm -rf fakeroot/share
rm -rf fakeroot/var
rm -rf fakeroot/lib/pkgconfig
rm -rf fakeroot/lib/dbus-1.0
rm -rf fakeroot/lib/*.a
rm -rf fakeroot/lib/*.la
tar cjfv dbus.tar.bz2 fakeroot
cp dbus.tar.bz2 ../../a5s_linux_sdk/ambarella/boards/dropcam/rootfs/