mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: axoloti-runtime: Simplify build.
* gnu/packages/axoloti.scm (axoloti-runtime)[arguments]: Remove unnecessary environment variable assignments in custom 'build phase. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
5c9954490c
commit
bb4f47a7f6
1 changed files with 1 additions and 12 deletions
|
@ -147,18 +147,7 @@ (define-public axoloti-runtime
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(replace 'build
|
(replace 'build
|
||||||
;; Build Axoloti firmware with cross-compiler
|
;; Build Axoloti firmware with cross-compiler
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((toolchain (assoc-ref inputs "cross-toolchain"))
|
|
||||||
(headers (string-append
|
|
||||||
toolchain
|
|
||||||
"/arm-none-eabi/include:"
|
|
||||||
toolchain
|
|
||||||
"/arm-none-eabi/include/arm-none-eabi/armv7e-m")))
|
|
||||||
(setenv "CROSS_CPATH" headers)
|
|
||||||
(setenv "CROSS_CPLUS_INCLUDE_PATH" headers)
|
|
||||||
(setenv "CROSS_LIBRARY_PATH"
|
|
||||||
(string-append toolchain
|
|
||||||
"/arm-none-eabi/lib")))
|
|
||||||
(with-directory-excursion "platform_linux"
|
(with-directory-excursion "platform_linux"
|
||||||
(invoke "sh" "compile_firmware.sh"))))
|
(invoke "sh" "compile_firmware.sh"))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
|
|
Loading…
Reference in a new issue