bladerf_adsb: in case you ever wanted to track aircraft from 100 miles away

This commit is contained in:
Rick Farina (Zero_Chaos) 2017-05-10 21:51:28 -04:00
parent 407d2ffc70
commit 4baa58e7d2
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
3 changed files with 92 additions and 0 deletions

44
licenses/nuand_adsb Normal file
View file

@ -0,0 +1,44 @@
Copyright (c) 2016, Nuand LLC. All rights reserved.
The Software is available for download and use subject to
the terms and conditions of this License. Access or use of
the Software constitutes acceptance and agreement to the
terms and conditions of this License.
Use of the Software defined as FPGA firmware and C source code,
in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Source code and any derivative works including binaries may only be used,
integrated, copied, modified, and distributed when used on or tagetting devices
sold, or distributed by Nuand LLC.
2. Evaluation of Software for commercial purposes is not permitted without prior
consent from Nuand LLC (contact bladeRF@nuand.com).
3. A commercial license or permission to use the Software for commercial
purposes may be obtained only from Nuand LLC (contact bladeRF@nuand.com).
4. Redistributions of source code must retain the above copyright
notice, this list of conditions and the capitalized paragraph below.
5. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the capitalized paragraph below
in the documentation and/or other materials provided with the distribution.
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS, IMPLIED OR
STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF ACCURACY,
COMPLETENESS, NONINFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. ACCESS OR USE OF THE SOFTWARE IS ENTIRELY AT THE
USER'S RISK. IN NO EVENT SHALL RICE UNIVERSITY OR ITS FACULTY, STAFF OR
STUDENTS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. THE SOFTWARE USER SHALL INDEMNIFY, DEFEND AND
HOLD HARMLESS RICE UNIVERSITY AND ITS FACULTY, STAFF AND STUDENTS FROM ANY
AND ALL CLAIMS, ACTIONS, DAMAGES, LOSSES, LIABILITIES, COSTS AND EXPENSES,
INCLUDING ATTORNEYS' FEES AND COURT COSTS, DIRECTLY OR INDIRECTLY ARISING OUR
OF OR IN CONNECTION WITH ACCESS OR USE OF THE SOFTWARE.

View file

@ -0,0 +1,2 @@
DIST adsbx115.rbf 3571462 SHA256 c908baca2848efebc4c1aacec239179b548182406f398e608ad99dbbf0b72836 SHA512 82c5e415c656721e2899a9124cab4f04b69bab0a9ab6aed400d250a879893c341044cb67c8d89949b147eaf74916457e29af2490faac4ef7d2d223aba313be4a WHIRLPOOL b3498c45ee3317a9c95f272dbb0b2fffbd51bbbe8c6000f15587b44917e437007319c6dd6238184ce3ab191b5498a5fdfb8763eb612b479f3c5c682e822f5c60
DIST adsbx40.rbf 1191788 SHA256 a491fe4adc310b9ac71cab5017d2b99897b3d314b51130ed9b3c4c965d3ad4c4 SHA512 8e16e22b2d026c1b5cfcf06490babcd8d977798f6a40e0e617477e473e16ce71eda419c714eb8262434c964b7ccf22e50fffea3311e54c7c006421cccbda958e WHIRLPOOL bf118da169e737dce8ceeee592c13531442d917cd6128218978ee05e8e983af707304c5da83dc8568ca43a2b7b98ba82649bd4c2fae21fbdd99703caa33ba815

View file

@ -0,0 +1,46 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit git-r3 toolchain-funcs
DESCRIPTION="bladeRF ADS-B hardware decoder"
HOMEPAGE="https://github.com/Nuand/bladeRF-adsb"
SRC_URI="x40? ( https://www.nuand.com/fpga/adsbx40.rbf )
x115? ( https://www.nuand.com/fpga/adsbx115.rbf )"
EGIT_REPO_URI="https://github.com/Nuand/bladeRF-adsb.git"
LICENSE="nuand_adsb"
SLOT="0"
KEYWORDS=""
IUSE="x40 x115"
DEPEND="net-wireless/bladerf"
RDEPEND="${DEPEND}"
src_unpack() {
git-r3_src_unpack
use x40 && cp "${DISTDIR}"/adsbx40.rbf "${S}"
use x115 && cp "${DISTDIR}"/adsbx115.rbf "${S}"
}
src_prepare() {
sed -i 's#./adsbx40.rbf#/usr/share/Nuand/bladeRF/adsbx40.rbf#' bladeRF_adsb/bladeRF_adsb.c
sed -i 's#./adsbx115.rbf#/usr/share/Nuand/bladeRF/adsbx115.rbf#' bladeRF_adsb/bladeRF_adsb.c
eapply_user
}
src_compile() {
pushd bladeRF_adsb
$(tc-getCC) ${CFLAGS} -o bladeRF_adsb bladeRF_adsb.c -lbladeRF
popd
}
src_install() {
dobin bladeRF_adsb/bladeRF_adsb
insinto /usr/share/Nuand/bladeRF
use x40 && doins "${S}"/adsbx40.rbf
use x115 && doins "${S}"/adsbx115.rbf
}