diff options
author | Simon South <simon@simonsouth.net> | 2023-09-28 16:14:47 -0400 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-09-30 10:32:01 +0100 |
commit | a97d032c7bceac4422a10c7788745fcd34ed8d65 (patch) | |
tree | 0899d6691b6e7f3ffb6960773f5072021e813102 | |
parent | 5605e4db17d6a9fd786b1d390c88d541e54b5fd7 (diff) | |
download | guix-a97d032c7bceac4422a10c7788745fcd34ed8d65.tar.gz guix-a97d032c7bceac4422a10c7788745fcd34ed8d65.zip |
gnu: sdcc: Embed absolute reference to μCsim.
* gnu/packages/embedded.scm (sdcc)[arguments]<#:phases>: Add
"embed-absolute-ucsim-reference" phase.
[inputs]: Add ucsim.
Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r-- | gnu/packages/embedded.scm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 630f2b37e0..9202aaf5b6 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -1680,9 +1680,18 @@ PicoBlaze; and Zilog Z80 families, plus many of their variants.") (("debugger/mcs51" line) (string-append line "\n" "TARGETS += sdcc-misc\n" - "PKGS += $(SDCC_MISC)")))))))) + "PKGS += $(SDCC_MISC)"))))) + (add-after 'patch-makefiles 'embed-absolute-ucsim-reference + (lambda _ + ;; Embed in the debugger an absolute reference to the MCS-51 + ;; simulator from Guix's μCsim package to ensure it is always + ;; available. + (substitute* "debugger/mcs51/sdcdb.c" + (("s51") + (string-append #$(this-package-input "ucsim") + "/bin/s51")))))))) (inputs - (list readline)) + (list readline ucsim)) (native-inputs (list bison boost flex python-2 texinfo zlib)) (home-page "https://sdcc.sourceforge.net/") |