Project import
diff --git a/build_dbus.sh b/build_dbus.sh
new file mode 100755
index 0000000..bb874c4
--- /dev/null
+++ b/build_dbus.sh
@@ -0,0 +1,44 @@
+#!/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/
+
diff --git a/dbus-1.8.0.tar.gz b/dbus-1.8.0.tar.gz
new file mode 100644
index 0000000..6e9134d
--- /dev/null
+++ b/dbus-1.8.0.tar.gz
Binary files differ