package/hackrf: new package
PATCH v2 1/1 package/hackrf: new package
From: Jason Pruitt <[email protected]>
This patch adds hackrf/host tools and lib for the HackRF SDR.
[yann.morin.1998 at free.fr:
- rename hackrf-host -> hackrf
- update to recent git sha1
- add dependency on !static lib because shared lib always built
- add dependency on host-pkgconf
- add dependency on fftx single precision
- add patch to fix detection of fftw
- remove feature patch to disable tools, always build them
- remove feature patch to disable build of shared lib
]
---
Jason: I've had your patch pending in my tree for quite a while now, and I finally had a look. I took the liberty of updating it and fixing it since you initially sent it in:
http://lists.busybox.net/pipermail/buildroot/2015-October/142686.html
--- package/Config.in | 1 + ...01-host-tools-use-pkg-cnfig-to-find-fftwf.patch | 45 ++++++++++++++++++++++ package/hackrf/Config.in | 17 ++++++++ package/hackrf/hackrf.mk | 22 +++++++++++ 4 files changed, 85 insertions(+) create mode 100644 package/hackrf/0001-host-tools-use-pkg-cnfig-to-find-fftwf.patch create mode 100644 package/hackrf/Config.in create mode 100644 package/hackrf/hackrf.mk
package/Config.in +1 -0
@@ -420,6 +420,7 @@ endmenu source "package/gpsd/Config.in" source "package/gptfdisk/Config.in" source "package/gvfs/Config.in" + source "package/hackrf/Config.in" source "package/hdparm/Config.in" source "package/hwdata/Config.in" source "package/hwloc/Config.in"
package/hackrf/0001-host-tools-use-pkg-cnfig-to-find-fftwf.patch new file +45 -0
45 lines not on this page · raw message
package/hackrf/Config.in new file +17 -0
@@ -0,0 +1,17 @@ +comment "hackrf needs a toolchain w/ threads, dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS + +comment "hackrf needs fftw w/ single precision" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + depends on !BR2_PACKAGE_FFTW_PRECISION_SINGLE + +config BR2_PACKAGE_HACKRF + bool "hackrf" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + depends on BR2_PACKAGE_FFTW_PRECISION_SINGLE + help + Library and tools for accessing HackRF SDR boards. + + https://github.com/mossmann/hackrf/wiki
package/hackrf/hackrf.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# hackrf +# +################################################################################ + +HACKRF_VERSION = fb83ad64953bf7f8707bc209968f9e49f894369e +HACKRF_SITE = $(call github,mossmann,hackrf,$(HACKRF_VERSION)) +HACKRF_LICENSE = GPLv2 GPLv2+ BSD-3c +HACKRF_LICENSE_FILES = COPYING +HACKRF_DEPENDENCIES = host-pkgconf libusb fftw +HACKRF_INSTALL_STAGING = YES +HACKRF_SUBDIR = host +HACKRF_SUPPORTS_IN_SOURCE_BUILD = NO + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=ON +else +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=OFF +endif + +$(eval $(cmake-package))
Signature · 1 line
2.11.0
PATCH v2 1/1 package/hackrf: new package
Hi Yann,
Quoted 6 lines · Yann E. MORIN
package/hackrf/hackrf.mk new file +0
-0
package/hackrf/hackrf.mk line 9
Quoted 9 lines
package/hackrf/hackrf.mk new file +9
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# hackrf +# +################################################################################ + +HACKRF_VERSION = fb83ad64953bf7f8707bc209968f9e49f894369e +HACKRF_SITE = $(call github,mossmann,hackrf,$(HACKRF_VERSION)) +HACKRF_LICENSE = GPLv2 GPLv2+ BSD-3c
_LICENSE should use SPDX identifiers: GPL-2.0, GPL-2.0+, BSD-3-Clause.
baruch
Quoted 13 lines
package/hackrf/hackrf.mk new file +13
-0+HACKRF_LICENSE_FILES = COPYING +HACKRF_DEPENDENCIES = host-pkgconf libusb fftw +HACKRF_INSTALL_STAGING = YES +HACKRF_SUBDIR = host +HACKRF_SUPPORTS_IN_SOURCE_BUILD = NO + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=ON +else +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=OFF +endif + +$(eval $(cmake-package))
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v2 1/1 package/hackrf: new package
Baruch, All,
On 2017-11-26 18:16 +0200, Baruch Siach spake thusly:
Quoted 12 lines
Hi Yann,
Quoted 9 lines · Yann E. MORIN
package/hackrf/hackrf.mk new file +3
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# hackrf
Quoted 8 lines
package/hackrf/hackrf.mk line 9
Quoted 6 lines
package/hackrf/hackrf.mk new file +6
-0+# +################################################################################ + +HACKRF_VERSION = fb83ad64953bf7f8707bc209968f9e49f894369e +HACKRF_SITE = $(call github,mossmann,hackrf,$(HACKRF_VERSION)) +HACKRF_LICENSE = GPLv2 GPLv2+ BSD-3c
_LICENSEshould use SPDX identifiers: GPL-2.0, GPL-2.0+, BSD-3-Clause.
Fixed, thanks! :-)
Regards,
Yann E. MORIN.
Quoted 20 lines
baruch
Quoted 13 lines
package/hackrf/hackrf.mk new file +13
-0+HACKRF_LICENSE_FILES = COPYING +HACKRF_DEPENDENCIES = host-pkgconf libusb fftw +HACKRF_INSTALL_STAGING = YES +HACKRF_SUBDIR = host +HACKRF_SUPPORTS_IN_SOURCE_BUILD = NO + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=ON +else +HACKRF_CONF_OPTS += -DINSTALL_UDEV_RULES=OFF +endif + +$(eval $(cmake-package))Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v2 1/1 package/hackrf: new package
In reply to Yann E. MORINHello,
Quoted 5 lines · Yann E. MORIN
package/Config.in | 1 + ...01-host-tools-use-pkg-cnfig-to-find-fftwf.patch | 45 ++++++++++++++++++++++ package/hackrf/Config.in | 17 ++++++++ package/hackrf/hackrf.mk | 22 +++++++++++ 4 files changed, 85 insertions(+)
Update to the DEVELOPERS file is missing.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v2 1/1 package/hackrf: new package
Thomas, All,
On 2017-11-26 17:50 +0100, Thomas Petazzoni spake thusly:
Quoted 8 lines · Yann E. MORIN
Quoted 5 lines
package/Config.in | 1 + ...01-host-tools-use-pkg-cnfig-to-find-fftwf.patch | 45 ++++++++++++++++++++++ package/hackrf/Config.in | 17 ++++++++ package/hackrf/hackrf.mk | 22 +++++++++++ 4 files changed, 85 insertions(+)Update to the DEVELOPERS file is missing.
Fixed, thanks! :-)
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'