summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware/remove-wget.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-firmware/remove-wget.patch')
-rw-r--r--libre/linux-libre-firmware/remove-wget.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/linux-libre-firmware/remove-wget.patch b/libre/linux-libre-firmware/remove-wget.patch
index 30c9e8a7d..59142b786 100644
--- a/libre/linux-libre-firmware/remove-wget.patch
+++ b/libre/linux-libre-firmware/remove-wget.patch
@@ -29409,6 +29409,38 @@ index e2d4639..4d0de5c 100755
TOOLCHAIN_FILE="$PWD/build/toolchain.cmake"
+diff --git a/src/carl9170fw/extra/sh-elf-linux.cmake b/src/carl9170fw/extra/sh-elf-linux.cmake
+index 3fdf98c..36e3b63 100644
+--- a/src/carl9170fw/extra/sh-elf-linux.cmake
++++ b/src/carl9170fw/extra/sh-elf-linux.cmake
+@@ -3,19 +3,19 @@ set(CMAKE_SYSTEM_PROCESSOR "sh2")
+
+ set_property(DIRECTORY PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
+
+-set(CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}/toolchain/inst/)
++set(CMAKE_FIND_ROOT_PATH /)
+
+ set(CMAKE_C_FLAGS "-m2 -ml -Os -ffreestanding -nostartfiles")
+ set(CMAKE_C_LINK_FLAGS "-Wl,-static,-EL,-x,--gc-sections")
+ set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
+
+-set(OBJCOPY ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-objcopy)
+-set(CMAKE_C_COMPILER "${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-gcc")
+-set(CMAKE_AR ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-ar)
+-set(CMAKE_ASM_COMPILER ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-as)
+-set(CMAKE_ASM-ATT_COMPILER ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-as)
+-set(CMAKE_LINKER ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-ld)
+-set(CMAKE_C_LINK_EXECUTABLE "${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-gcc <OBJECTS> ${CMAKE_C_FLAGS} <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -o <TARGET>")
++set(OBJCOPY /bin/sh-elf-objcopy)
++set(CMAKE_C_COMPILER "/bin/sh-elf-gcc")
++set(CMAKE_AR /bin/sh-elf-ar)
++set(CMAKE_ASM_COMPILER /bin/sh-elf-as)
++set(CMAKE_ASM-ATT_COMPILER /bin/sh-elf-as)
++set(CMAKE_LINKER /bin/sh-elf-ld)
++set(CMAKE_C_LINK_EXECUTABLE "/bin/sh-elf-gcc <OBJECTS> ${CMAKE_C_FLAGS} <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -o <TARGET>")
+
+ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
diff --git a/src/carl9170fw/toolchain/Makefile a/src/carl9170fw/toolchain/Makefile
deleted file mode 100644
index 3ee93a9..0000000