mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
ubertooth-firmware: allow building of U0 and U1 firmwares
This commit is contained in:
parent
8b41c9f043
commit
322bafdc21
2 changed files with 13 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue