From 322bafdc216e8bddb06c55a3cda02cfb8955b4c9 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Thu, 3 May 2012 00:26:47 +0000 Subject: [PATCH] ubertooth-firmware: allow building of U0 and U1 firmwares --- net-wireless/ubertooth-firmware/Manifest | 2 +- .../ubertooth-firmware-9999.ebuild | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/net-wireless/ubertooth-firmware/Manifest b/net-wireless/ubertooth-firmware/Manifest index 060b75e9a..2b3c1ca98 100644 --- a/net-wireless/ubertooth-firmware/Manifest +++ b/net-wireless/ubertooth-firmware/Manifest @@ -1 +1 @@ -EBUILD ubertooth-firmware-9999.ebuild 743 RMD160 e95d25bbbe6280532d62b3d9cee67850e2d8809e SHA1 9ec716fbe024d77d22a779ddcc252c320c565182 SHA256 761a96c36ce5069b5db60a4c067a819fbdb8cd6b79eed421c2543b28abf4619b +EBUILD ubertooth-firmware-9999.ebuild 1128 RMD160 329388477d40665008922526973d5d3584d0d3eb SHA1 584e32366e5523a78c92af17ef67cd6fa86b6ec7 SHA256 99845f6600d4601279c561c126237aab615c328f88dcf0c5e4bf7303522af97a diff --git a/net-wireless/ubertooth-firmware/ubertooth-firmware-9999.ebuild b/net-wireless/ubertooth-firmware/ubertooth-firmware-9999.ebuild index 84888533e..e227d0918 100644 --- a/net-wireless/ubertooth-firmware/ubertooth-firmware-9999.ebuild +++ b/net-wireless/ubertooth-firmware/ubertooth-firmware-9999.ebuild @@ -13,7 +13,7 @@ SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="ubertooth0 +ubertooth1" DEPEND="net-wireless/ubertooth[dfu] sys-devel/gcc-arm-embedded-bin" @@ -22,11 +22,20 @@ ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/fir src_compile() { cd "${S}"/bluetooth_rxtx - SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1 + if use ubertooth0; 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 + emake clean + fi + if use ubertooth1; 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 + fi } src_install() { insinto /lib/firmware - doins bluetooth_rxtx/bluetooth_rxtx.bin + use ubertooth0 && doins bluetooth_rxtx/bluetooth_rxtx_U0.bin + use ubertooth1 && doins bluetooth_rxtx/bluetooth_rxtx_U1.bin }