mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-13 18:36:14 -05:00
4902c3ecc6
* gnu/packages/firmware.scm: New file. * gnu/packages/patches/ath9k-htc-firmware-objcopy.patch: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add 'firmware.scm'. (dist_patch_DATA): Add the patch.
14 lines
538 B
Diff
14 lines
538 B
Diff
The firmware is cross-compiled, but the build system ends up using
|
|
'objcopy' instead of 'xtensa-elf-objcopy' by default. Force it to
|
|
use the right one.
|
|
|
|
--- source/target_firmware/configure 2014-10-28 20:57:26.834436561 +0100
|
|
+++ source/target_firmware/configure 2014-10-28 20:57:29.666436530 +0100
|
|
@@ -11,6 +11,7 @@ mkdir -p build
|
|
cat > "$TOOLCHAIN_FILE" <<EOF
|
|
INCLUDE(CMakeForceCompiler)
|
|
|
|
+SET(CMAKE_OBJCOPY xtensa-elf-objcopy)
|
|
SET(CMAKE_SYSTEM_PROCESSOR xtensa)
|
|
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN}/$TARGET)
|
|
SET(CMAKE_STRIP :)
|