aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVita Preskovsky2012-11-20 11:45:15 -0600
committerVita Preskovsky2012-11-20 11:45:15 -0600
commit09bd8d1236b2d4a5f53f05d5a846f8655d5fd716 (patch)
tree5ba0aa02b66d9ff416cdb917e1bbd3a893c79eca
parent356a5fbeaff3535b8b903e29bedc91eac89404f9 (diff)
downloadbuild-utilities-09bd8d1236b2d4a5f53f05d5a846f8655d5fd716.tar.gz
build-utilities-09bd8d1236b2d4a5f53f05d5a846f8655d5fd716.tar.xz
build-utilities-09bd8d1236b2d4a5f53f05d5a846f8655d5fd716.zip
bt build: building bluez-4.98 for wilink8
Signed-off-by: Vita Preskovsky <vitap@ti.com>
-rwxr-xr-xwl18xx_build_bt.sh74
1 files changed, 35 insertions, 39 deletions
diff --git a/wl18xx_build_bt.sh b/wl18xx_build_bt.sh
index d9f0fe2..634de09 100755
--- a/wl18xx_build_bt.sh
+++ b/wl18xx_build_bt.sh
@@ -50,6 +50,7 @@ function all()
50 libIConv 1 50 libIConv 1
51 zlib 1 51 zlib 1
52 gettext 1 52 gettext 1
53 alsa-lib 1
53 dbus-glib 1 54 dbus-glib 1
54 check 1 55 check 1
55 python 1 56 python 1
@@ -98,10 +99,27 @@ function bt-modules()
98 echo "bt-modules built successfully" 99 echo "bt-modules built successfully"
99} 100}
100 101
102function alsa-lib
103{
104 cd ${WORK_SPACE} || exit 1
105 COMPONENT_NAME="alsa-lib-1.0.26.tar.gz"
106 COMPONENT_DIR="alsa-lib-1.0.26"
107 download_component "http://fossies.org/linux/misc/alsa-lib-1.0.26.tar.gz"
108 if [ ${CURRENT_OPTION} = "2" ]; then
109 add_fingerprint 0
110 ./configure --prefix=${MY_PREFIX} --host=${BUILD_HOST} --sysconfdir=${MY_SYSCONFDIR} --localstatedir=${MY_LOCALSTATEDIR} --disable-python || exit 1
111 make || exit 1
112 make install DESTDIR=${ROOTFS} || exit 1
113 rm `find ${ROOTFS}${MY_PREFIX}/lib/ -name '*.la'` >& /dev/null
114 add_fingerprint 1
115 fi
116 echo "alsa-lib built successfully"
117}
118
101function bluez() 119function bluez()
102{ 120{
103 if [ $# -eq 1 ]; then 121 if [ $# -eq 1 ]; then
104 START_MODULE="bluez" 122 START_MODULE="bluez-4.98"
105 fi 123 fi
106 # dependency section, in here we build the dependencies. We do not want to rebuild them each time 124 # dependency section, in here we build the dependencies. We do not want to rebuild them each time
107 check 125 check
@@ -110,39 +128,25 @@ function bluez()
110 uim 128 uim
111 129
112 cd ${WORK_SPACE} || exit 1 130 cd ${WORK_SPACE} || exit 1
113 COMPONENT_NAME="bluez" 131 COMPONENT_NAME="bluez-4.98.tar.gz"
114 #COMPONENT_REV="18a5dc6cdcf0828443c415eaea82b6834a8f9825" 132 #COMPONENT_REV="18a5dc6cdcf0828443c415eaea82b6834a8f9825"
115 COMPONENT_REV="70a609bb3a7401b56377de77586e09a56d631468" 133 COMPONENT_DIR="bluez-4.98"
116 COMPONENT_DIR="bluez" 134 download_component "http://kernel.org/pub/linux/bluetooth/bluez-4.98.tar.gz"
117 download_component "git://git.kernel.org/pub/scm/bluetooth/bluez.git"
118 if [ ${CURRENT_OPTION} = "2" ]; then 135 if [ ${CURRENT_OPTION} = "2" ]; then
119 add_fingerprint 0 136 add_fingerprint 0
120 patch -p1 -i ${old_dir}/patches/0001-bluez-define-_GNU_SOURCE-macro.patch || exit 1
121 patch -p1 -i ${old_dir}/patches/0002-bluez-define-macro-lacking-in-compiler.patch || exit 1
122 patch -p1 -i ${old_dir}/patches/0003-socket-enable-for-bluez-4_98.patch || exit 1 137 patch -p1 -i ${old_dir}/patches/0003-socket-enable-for-bluez-4_98.patch || exit 1
123 patch -p1 -i ${old_dir}/patches/0004-bluez-enable-source-interface.patch || exit 1 138 patch -p1 -i ${old_dir}/patches/0004-bluez-enable-source-interface.patch || exit 1
124 patch -p1 -i ${old_dir}/patches/0005-bluez-enable-gatt.patch || exit 1
125 patch -p1 -i ${old_dir}/patches/0006-bluez-fix-missing-include-directive.patch || exit 1
126 patch -p1 -i ${old_dir}/patches/0001-Enable-auto-reconnection.patch || exit 1
127 139
128 /usr/bin/libtoolize || exit 1 140 LIBS='-liconv' ./configure --host=${BUILD_HOST} --prefix=${MY_PREFIX} --sysconfdir=${MY_SYSCONFDIR} --localstatedir=${MY_LOCALSTATEDIR} --enable-alsa --enable-tools --enable-test --enable-audio --enable-serial --enable-service --enable-gstreamer --enable-usb --enable-tools --enable-bccmd --enable-hid2hci --enable-dfutool --enable-pand --disable-cups --enable-debug --enable-gatt --enable-hid2hci --enable-health
129 /usr/bin/aclocal || exit 1
130 /usr/bin/autoheader || exit 1
131 /usr/bin/automake --add-missing || exit 1
132 /usr/bin/autoconf || exit 1
133
134 ./configure --host=${BUILD_HOST} --prefix=${MY_PREFIX} --sysconfdir=${MY_SYSCONFDIR} --localstatedir=${MY_LOCALSTATEDIR} --enable-tools --enable-test --enable-audio --enable-serial --enable-service --enable-gstreamer --enable-usb --enable-tools --enable-bccmd --enable-hid2hci --enable-dfutool --enable-pand --disable-cups --enable-debug --enable-gatt --enable-hid2hci --enable-health
135 make LIBS='-lffi' || exit 1 141 make LIBS='-lffi' || exit 1
136 make install DESTDIR=${ROOTFS} || exit 1 142 make install DESTDIR=${ROOTFS} || exit 1
137 rm `find ${ROOTFS}${MY_PREFIX}/lib/ -name '*.la'` >& /dev/null 143 rm `find ${ROOTFS}${MY_PREFIX}/lib/ -name '*.la'` >& /dev/null
138 cp audio/audio.conf profiles/input/input.conf ${ROOTFS}${MY_SYSCONFDIR}/bluetooth/ || exit 1 144 cp audio/audio.conf input/input.conf ${ROOTFS}${MY_SYSCONFDIR}/bluetooth/ || exit 1
139 cp test/agent ${ROOTFS}${MY_PREFIX}/bin/agent || exit 1 145 cp test/agent ${ROOTFS}${MY_PREFIX}/bin/agent || exit 1
140 mkdir -p ${ROOTFS}/usr/share/bluetooth 146 mkdir -p ${ROOTFS}/usr/share/bluetooth
141 list='simple-agent test-device test-discovery test-manager test-profile'
142 147
143 cd test 148 cd test
144 for i in ${list}; do sed -i -e 's/from gi\.repository //' -e 's/GObject/gobject/' $i; done 149 list='simple-agent list-devices simple-service test-adapter test-attrib test-audio test-device test-discovery test-health test-health-sink test-input test-manager test-network test-oob test-proximity test-sap-server test-service test-telephony test-textfile test-thermometer uuidtest rctest monitor-bluetooth mpris-player lmptest gaptest hciemu hsmicro hsplay hstest l2test attest avtest bdaddr btiotest'
145 list='simple-agent list-devices simple-player simple-service test-adapter test-alert test-attrib test-audio test-device test-discovery test-health test-health-sink test-heartrate test-input test-manager test-nap test-network test-oob test-profile test-proximity test-sap-server test-service test-telephony test-textfile test-thermometer uuidtest rctest monitor-bluetooth mpris-player lmptest gaptest hciemu hsmicro hsplay hstest l2test attest avtest bdaddr btiotest'
146 echo "installing tests in ${ROOTFS}/usr/share/bluetooth" 150 echo "installing tests in ${ROOTFS}/usr/share/bluetooth"
147 cp ${list} ${ROOTFS}/usr/share/bluetooth 151 cp ${list} ${ROOTFS}/usr/share/bluetooth
148 cd - 152 cd -
@@ -242,7 +246,7 @@ function libical
242function obexd 246function obexd
243{ 247{
244 if [ $# -eq 1 ]; then 248 if [ $# -eq 1 ]; then
245 START_MODULE="obexd" 249 START_MODULE="obexd-0.34.tar.gz"
246 fi 250 fi
247 # dependency section, in here we build the dependencies. We do not want to rebuild them each time 251 # dependency section, in here we build the dependencies. We do not want to rebuild them each time
248 bluez 252 bluez
@@ -251,23 +255,19 @@ function obexd
251 ncurses 255 ncurses
252 256
253 cd ${WORK_SPACE} || exit 1 257 cd ${WORK_SPACE} || exit 1
254 COMPONENT_NAME="obexd" 258 COMPONENT_NAME="obexd-0.34.tar.gz"
255 COMPONENT_REV="2281d4fac9fec97993b0a6dc0e2ec42911eac194" 259 COMPONENT_DIR="obexd-0.34"
256 COMPONENT_DIR="obexd" 260 download_component "http://www.kernel.org/pub/linux/bluetooth/obexd-0.34.tar.gz"
257 download_component "git://git.kernel.org/pub/scm/bluetooth/obexd.git"
258 if [ ${CURRENT_OPTION} = "2" ]; then 261 if [ ${CURRENT_OPTION} = "2" ]; then
259 add_fingerprint 0 262 add_fingerprint 0
260 /usr/bin/libtoolize || exit 1
261 /usr/bin/aclocal || exit 1
262 /usr/bin/autoheader || exit 1
263 /usr/bin/automake --add-missing || exit 1
264 /usr/bin/autoconf || exit 1
265 ./configure --host=${BUILD_HOST} --prefix=${MY_PREFIX} --sysconfdir=${MY_SYSCONFDIR} || exit 1 263 ./configure --host=${BUILD_HOST} --prefix=${MY_PREFIX} --sysconfdir=${MY_SYSCONFDIR} || exit 1
266 patch -p1 -i ${old_dir}/patches/0001-obexd-ftp-and-opp-cancel-security.patch || exit 1 264 wget http://processors.wiki.ti.com/images/4/43/Obexd-patches_v1.tar.gz || exit 1
265 echo "Openning archive: Obexd-patches_v1.tar.gz" && tar -xzf Obexd-patches_v1.tar.gz || exit 1
266 apply_patches
267 make || exit 1 267 make || exit 1
268 make install DESTDIR=${ROOTFS} || exit 1 268 make install DESTDIR=${ROOTFS} || exit 1
269 test -d ${ROOTFS}/usr/share/bluetooth || mkdir -p ${ROOTFS}/usr/share/bluetooth 269 test -d ${ROOTFS}/usr/share/bluetooth || mkdir -p ${ROOTFS}/usr/share/bluetooth
270 list='exchange-business-cards ftp-client get-capabilities list-folders map-client opp-client pbap-client' 270 list='exchange-business-cards ftp-client list-folders pbap-client send-files'
271 for f in ${list}; do 271 for f in ${list}; do
272 install -c test/$f ${ROOTFS}/usr/share/bluetooth || exit 1 272 install -c test/$f ${ROOTFS}/usr/share/bluetooth || exit 1
273 done 273 done
@@ -296,7 +296,7 @@ function bt-obex
296 [ ! -e Bt-obex-patches.zip ] && { wget 'http://processors.wiki.ti.com/images/f/f5/Bt-obex-patches.zip' || exit 1; } 296 [ ! -e Bt-obex-patches.zip ] && { wget 'http://processors.wiki.ti.com/images/f/f5/Bt-obex-patches.zip' || exit 1; }
297 unzip -o Bt-obex-patches.zip || exit 1 297 unzip -o Bt-obex-patches.zip || exit 1
298 apply_patches 298 apply_patches
299 patch -p1 -i ${old_dir}/patches/0001-bt-obex-new-dbus-api-for-obexd.patch 299 #patch -p1 -i ${old_dir}/patches/0001-bt-obex-new-dbus-api-for-obexd.patch
300 #patch -p1 -i ${old_dir}/patches/0001-manager-adoptation-to-new-manager-interface-of-bluez.patch 300 #patch -p1 -i ${old_dir}/patches/0001-manager-adoptation-to-new-manager-interface-of-bluez.patch
301 301
302 /usr/bin/libtoolize || exit 1 302 /usr/bin/libtoolize || exit 1
@@ -318,7 +318,7 @@ function wl1271-demo
318 cd ${WORK_SPACE} || exit 1 318 cd ${WORK_SPACE} || exit 1
319 COMPONENT_NAME="wl1271-bluetooth" 319 COMPONENT_NAME="wl1271-bluetooth"
320 COMPONENT_DIR="wl1271-bluetooth" 320 COMPONENT_DIR="wl1271-bluetooth"
321 COMPONENT_REV="ae08318c7a66bb8e7dbdcfbe722178dfa78db943" 321 COMPONENT_REV="ae9a9a961dd9821d30a0b9c32612f3a552c81d4e"
322 download_component "git://github.com/TI-ECS/wl1271-bluetooth.git" 322 download_component "git://github.com/TI-ECS/wl1271-bluetooth.git"
323 if [ ${CURRENT_OPTION} = "2" ]; then 323 if [ ${CURRENT_OPTION} = "2" ]; then
324 add_fingerprint 0 324 add_fingerprint 0
@@ -334,10 +334,6 @@ function wl1271-demo
334 cp ./script/common/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/scripts || exit 1 334 cp ./script/common/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/scripts || exit 1
335 cp ./script/${MACHINE_TYPE}/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/scripts || exit 1 335 cp ./script/${MACHINE_TYPE}/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/scripts || exit 1
336 cp ./ftp_folder/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/ftp_folder || exit 1 336 cp ./ftp_folder/* ${ROOTFS}/usr/share/wl1271-demos/bluetooth/ftp_folder || exit 1
337 #install -c -m 755 ./script/${MACHINE_TYPE}/BT_Init.sh ${ROOTFS}/etc/init.d/ || exit 1
338 #cd ${ROOTFS}/etc/init.d || exit 1
339 #ln -s -f ../init.d/BT_Init.sh ../rc5.d/S92btinit || exit 1
340 #cd -
341 add_fingerprint 1 337 add_fingerprint 1
342 fi 338 fi
343 echo "wl1271-demo built successfully" 339 echo "wl1271-demo built successfully"