ubertooth: updates based on latest svn and prepping to add cross compiler to gentoo

This commit is contained in:
Zero_Chaos 2012-07-07 04:06:12 +00:00
parent 72b956e1c2
commit 4a42990f84
4 changed files with 38 additions and 38 deletions

View file

@ -1,5 +1,5 @@
AUX 40-ubertooth.rules 76 RMD160 cf87649015164070048501b14cb0abec20ad78a2 SHA1 d10e88fd6312f0eeaad48784c901bd3350edc4ae SHA256 70b5c65df12c2600551c3e7e4710622cd26693fe36c91c2a79da4eb3dfea427d
AUX 40-ubertooth.rules 380 RMD160 16fb7f287c50bf6674c073eba596261cdaeaef1a SHA1 df3e4c23b21f2f03b28cc4c2fd916362705eeb40 SHA256 103f261d0fe795c2a461444566e486c83d9d51141fdfa4466e1739bb5b9fe89a
DIST ubertooth-r534.tar.gz 2959832 RMD160 b03f30bc8900c51654a224c9928a1cb96d801eae SHA1 99ccdb283be58d6501b0bb1aec509eef6d148b38 SHA256 5e227872ee8c088fe2cdac936c4a30d1e12b8f7c6ac781c96004ad7528b44730
EBUILD ubertooth-0.0_p534.ebuild 3208 RMD160 ec9fb30e0a02769017c2ddb005b9f1e450138550 SHA1 56143a89327eb8dea54fb59efd8db7e936c64350 SHA256 559bcbbe1ae95f1703eee5ce6fb675dd168596d9c6e2164624036e34b20e1432
EBUILD ubertooth-9999.ebuild 3208 RMD160 ec9fb30e0a02769017c2ddb005b9f1e450138550 SHA1 56143a89327eb8dea54fb59efd8db7e936c64350 SHA256 559bcbbe1ae95f1703eee5ce6fb675dd168596d9c6e2164624036e34b20e1432
EBUILD ubertooth-0.0_p534.ebuild 3015 RMD160 034ef2945f8ea3558c2bdfce43b85b0670b106b6 SHA1 dc99b8b6bba5b813d31f920d8fb99ae169ae1ef5 SHA256 7fb42ff7c4396d314a2dcca544b0f443b5428ee23cbcf6b89fa18eebf434353b
EBUILD ubertooth-9999.ebuild 3028 RMD160 e9cd5d0b0cbc75728a0476270364ed90899a21b2 SHA1 e44f6cca6699b027417a9bd0eda30139d39a7875 SHA256 91db4a2d8a0a3fd36fb53743e1a09c39f810e5e01883eecf3064daa06099bcee
MISC metadata.xml 277 RMD160 039ea0dcde9bea63c82aa1745676a8184c0367ef SHA1 38af6f6a555e7eeb19c264062a1cb0328959f061 SHA256 9c8b8823f3efb6278268bddb1a49badc7f174607e7e84b501a9e5c17601eb08f

View file

@ -1 +1,5 @@
ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="0004", MODE="0660", GROUP="usb"
ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6000", MODE="0660", GROUP="usb"
ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6001", MODE="0660", GROUP="usb"
ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6002", MODE="0660", GROUP="usb"
ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6003", MODE="0660", GROUP="usb"

View file

@ -29,9 +29,9 @@ if [[ ${PV} == "9999" ]] ; then
inherit subversion
KEYWORDS=""
RDEPEND="${RDEPEND}
>=net-libs/libbtbb-9999"
# ubertooth0-firmware? ( sys-devel/gcc-arm-embedded-bin )
# ubertooth1-firmware? ( sys-devel/gcc-arm-embedded-bin )"
>=net-libs/libbtbb-9999
ubertooth0-firmware? ( sys-devel/gcc-arm-embedded-bin )
ubertooth1-firmware? ( sys-devel/gcc-arm-embedded-bin )"
else
MY_PV="${PV/p/r}"
MY_PV="${MY_PV/0.0_/}"
@ -48,20 +48,18 @@ src_compile() {
cd "${S}/host/bluetooth_rxtx" || die
emake
#firmware build for live version currently requires a cross compiler which is not in the tree
#all this code if functional if you wish to "layman -a pentoo" and uncomment it
#if [[ ${PV} == "9999" ]] ; then
# cd "${S}"/firmware/bluetooth_rxtx || die
# if use ubertooth0-firmware; then
# SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
# mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
# emake clean
# fi
# if use ubertooth1-firmware; then
# SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
# mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
# fi
#fi
if [[ ${PV} == "9999" ]] ; then
cd "${S}"/firmware/bluetooth_rxtx || die
if use ubertooth0-firmware; then
SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
emake clean
fi
if use ubertooth1-firmware; then
SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
fi
fi
}
src_install() {

View file

@ -29,9 +29,9 @@ if [[ ${PV} == "9999" ]] ; then
inherit subversion
KEYWORDS=""
RDEPEND="${RDEPEND}
>=net-libs/libbtbb-9999"
# ubertooth0-firmware? ( sys-devel/gcc-arm-embedded-bin )
# ubertooth1-firmware? ( sys-devel/gcc-arm-embedded-bin )"
>=net-libs/libbtbb-9999
ubertooth0-firmware? ( sys-devel/gcc-arm-embedded-bin )
ubertooth1-firmware? ( sys-devel/gcc-arm-embedded-bin )"
else
MY_PV="${PV/p/r}"
MY_PV="${MY_PV/0.0_/}"
@ -48,20 +48,18 @@ src_compile() {
cd "${S}/host/bluetooth_rxtx" || die
emake
#firmware build for live version currently requires a cross compiler which is not in the tree
#all this code if functional if you wish to "layman -a pentoo" and uncomment it
#if [[ ${PV} == "9999" ]] ; then
# cd "${S}"/firmware/bluetooth_rxtx || die
# if use ubertooth0-firmware; then
# SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
# mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
# emake clean
# fi
# if use ubertooth1-firmware; then
# SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
# mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
# fi
#fi
if [[ ${PV} == "9999" ]] ; then
cd "${S}"/firmware/bluetooth_rxtx || die
if use ubertooth0-firmware; then
SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
emake clean
fi
if use ubertooth1-firmware; then
SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
fi
fi
}
src_install() {
@ -85,7 +83,7 @@ src_install() {
fi
insinto /lib/udev/rules.d/
doins "${FILESDIR}"/40-ubertooth.rules
doins "${S}"/host/bluetooth_rxtx/40-ubertooth.rules
elog "Everyone can read from the ubertooth, but to talk to it"
elog "your user needs to be in the usb group."