Skip to content

Instantly share code, notes, and snippets.

View eblot's full-sized avatar

Emmanuel Blot eblot

  • France, Provence
View GitHub Profile
@eblot
eblot / buildroot_alpine_host.patch
Created September 13, 2019 11:55
Patch to enable buildroot build from Alpine Linux
diff --git a/board/beaglebone/hotspot_buildroot.config b/board/beaglebone/hotspot_buildroot.config
index 0c48f190de..56a7fa82c0 100644
--- a/board/beaglebone/hotspot_buildroot.config
+++ b/board/beaglebone/hotspot_buildroot.config
@@ -11,6 +11,7 @@ BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
+BR2_HOST_GCC_AT_LEAST_8=y
@eblot
eblot / python3.patch
Created August 19, 2019 16:51
libiio: Force Python3 bindings
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index 4ba6aca..74bf610 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 2.8.7)
project(libiio-py NONE)
-include(FindPythonInterp)
+include(FindPython3)
@eblot
eblot / cc.patch
Created August 14, 2019 16:09
Ugly workaround to prevent Homebrew from stripping `-g` option from the compiler command line
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc
index f50dde444..486f9016e 100755
--- a/Library/Homebrew/shims/super/cc
+++ b/Library/Homebrew/shims/super/cc
@@ -171,7 +171,7 @@ class Cmd
args = []
case arg
- when /^-g\d?$/, /^-gstabs\d+/, "-gstabs+", /^-ggdb\d?/,
+ when /^-gstabs\d+/, "-gstabs+", /^-ggdb\d?/,
@eblot
eblot / python.rb.patch
Created August 14, 2019 16:06
Build Homebrew's Python3 intepreter with debug symbols
diff --git a/Formula/python.rb b/Formula/python.rb
index 0d799476..6b1b2ad0 100644
--- a/Formula/python.rb
+++ b/Formula/python.rb
@@ -113,10 +113,13 @@ class Python < Formula
system "./configure", *args
system "make"
+ system "xcrun dsymutil Python.framework/Versions/#{xy}/Python"
@eblot
eblot / gr-osmosdr-clang.patch
Created March 26, 2019 16:35
Fix gr-osmosdr build issue with clang
diff --git a/lib/rtl_tcp/rtl_tcp_source_c.cc b/lib/rtl_tcp/rtl_tcp_source_c.cc
index ecdeee0..71f28ac 100644
--- a/lib/rtl_tcp/rtl_tcp_source_c.cc
+++ b/lib/rtl_tcp/rtl_tcp_source_c.cc
@@ -296,20 +296,18 @@ rtl_tcp_source_c::rtl_tcp_source_c(const std::string &args) :
set_gain_mode(false); /* enable manual gain mode by default */
// set direct sampling
- struct command cmd;
-
@eblot
eblot / newlib-arm-eabi-3.1.0-linux.patch
Created March 22, 2019 08:48
Newlib 3.1.0 patch for ARM EABI bare-metal, Docker-compliant version
diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in
index e1bad17..86cfef1 100644
--- a/libgloss/arm/Makefile.in
+++ b/libgloss/arm/Makefile.in
@@ -35,10 +35,6 @@ MULTICLEAN = true
MULTI_FLAGS_FOR_TARGET = MULTI_DEFAULT_FLAGS
MULTI_DEFAULT_FLAGS = -DSEMIHOST_V2
-MULTIDIRS += semihv2m
-MULTIDIR_semihv2m_FLAGS = $(MULTI_DEFAULT_FLAGS) -DSEMIHOST_V2_MIXED_MODE
diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in
index e1bad17..86cfef1 100644
--- a/libgloss/arm/Makefile.in
+++ b/libgloss/arm/Makefile.in
@@ -35,10 +35,6 @@ MULTICLEAN = true
MULTI_FLAGS_FOR_TARGET = MULTI_DEFAULT_FLAGS
MULTI_DEFAULT_FLAGS = -DSEMIHOST_V2
-MULTIDIRS += semihv2m
-MULTIDIR_semihv2m_FLAGS = $(MULTI_DEFAULT_FLAGS) -DSEMIHOST_V2_MIXED_MODE
@eblot
eblot / newlib-arm-eabi-3.1.0.patch
Last active October 21, 2023 07:25
Newlib 3.1.0 patch for ARM EABI bare-metal
diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in
index e1bad17..c70d760 100644
--- a/libgloss/arm/Makefile.in
+++ b/libgloss/arm/Makefile.in
@@ -109,7 +109,7 @@ INCLUDES += `if [ -d ${objroot}/newlib ]; then echo -I$(srcroot)/newlib/libc/mac
# build a test program for each target board. Just trying to get
# it to link is a good test, so we ignore all the errors for now.
#
-all: ${CRT0} ${LINUX_CRT0} ${LINUX_BSP} ${REDBOOT_CRT0} ${REDBOOT_OBJS} ${RDPMON_CRT0} ${RDPMON_BSP} ${RDIMON_CRT0} ${RDIMON_BSP}
+all: ${CRT0} # ${LINUX_CRT0} ${LINUX_BSP} ${REDBOOT_CRT0} ${REDBOOT_OBJS} ${RDPMON_CRT0} ${RDPMON_BSP} ${RDIMON_CRT0} ${RDIMON_BSP}
@eblot
eblot / lld_armv6m_thunk_support.diff
Last active January 22, 2019 10:08
Add support for long thunk on ARMv6m, i.e. Cortex-M0 & Cortex-M0+
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp
index 693dba6..bd0eb77 100644
--- a/ELF/Driver.cpp
+++ b/ELF/Driver.cpp
@@ -1485,9 +1485,6 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) {
if (Config->ARMJ1J2BranchEncoding == false)
warn("lld uses extended branch encoding, no object with architecture "
"supporting feature detected.");
- if (Config->ARMHasMovtMovw == false)
- warn("lld may use movt/movw, no object with architecture supporting "
@eblot
eblot / spuce.patch
Created August 13, 2018 14:40
Fix spuce build
$ diff -u a/spuce.rb b/spuce.rb
--- a/spuce.rb 2018-08-13 15:19:16.000000000 +0200
+++ b/spuce.rb 2018-08-13 16:33:28.000000000 +0200
@@ -5,16 +5,17 @@
url "https://github.com/audiofilter/spuce/archive/0.4.3.tar.gz"
version "0.4.3"
sha256 "5688e107b57640ba0485790d64eb16bff855f54f6fa5b2fdab568ee91f6dc687"
+
depends_on "cmake" => :build
+ depends_on "qt5"