summaryrefslogtreecommitdiffstats
path: root/package/hackrf/0001-Don-t-require-a-C-compiler.patch
diff options
context:
space:
mode:
authorJason Pruitt <jrspruitt@gmail.com>2018-03-31 22:57:58 +0200
committerPeter Korsgaard <peter@korsgaard.com>2018-04-01 14:38:35 +0200
commit29b7cc88f401dcc69a085be5af067851f896da58 (patch)
tree57bab1a181e0658161dca176dd72bbf33e2bbcb3 /package/hackrf/0001-Don-t-require-a-C-compiler.patch
parent25cc88079459beba0827e95733f54ecad0bf995c (diff)
downloadbuildroot-29b7cc88f401dcc69a085be5af067851f896da58.tar.gz
buildroot-29b7cc88f401dcc69a085be5af067851f896da58.zip
hackrf: new package
This patch adds hackrf/host tools for HackRF, a low cost, open source Software Defined Radio platform. Sources of host tools are available on GitHub here: https://github.com/mossmann/hackrf/tree/master/host Signed-off-by: Jason Pruitt <jrspruitt@gmail.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> [Arnout: - Rename package to hackrf to match upstream name; - Reorder dependencies and remove empty line (check-package); - Use only sha256 hash; - Add hash for license file; - Bump to 2018.01.1; - Use uploaded tarball rather than github-generated one; - Fix dependencies of comment (|| instead of &&) - Add UDEV_RULES_GROUP=plugdev in case the build host doesn't have this group; - Add patch fixing build without C++ compiler. ] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/hackrf/0001-Don-t-require-a-C-compiler.patch')
-rw-r--r--package/hackrf/0001-Don-t-require-a-C-compiler.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/hackrf/0001-Don-t-require-a-C-compiler.patch b/package/hackrf/0001-Don-t-require-a-C-compiler.patch
new file mode 100644
index 0000000000..3369dca670
--- /dev/null
+++ b/package/hackrf/0001-Don-t-require-a-C-compiler.patch
@@ -0,0 +1,37 @@
+From 8b0a8b2be8cf2e4a76c03d3bcdf99bff5025ba22 Mon Sep 17 00:00:00 2001
+From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
+Date: Sat, 31 Mar 2018 22:50:37 +0200
+Subject: [PATCH] Don't require a C++ compiler
+
+By default, CMake assumes that the project is using both C and C++. By
+explicitly passing 'C' as argument of the project() macro, we tell CMake
+that only C is used, which prevents CMake from erroring out if a C++
+compiler doesn't exist.
+
+Upstream status: https://github.com/mossmann/hackrf/pull/469
+
+This patch differs from upstream because:
+- project name upstream has been changed into HackRF;
+- in Buildroot, we are only interested in host, not firmware.
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ host/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
+index 874163f..d9cbe31 100644
+--- a/host/CMakeLists.txt
++++ b/host/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ #top dir cmake project for libhackrf + tools
+
+ cmake_minimum_required(VERSION 2.8)
+-project (hackrf_all)
++project (hackrf_all C)
+
+ add_subdirectory(libhackrf)
+ add_subdirectory(hackrf-tools)
+--
+2.16.3
+
OpenPOWER on IntegriCloud