mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
5605e4db17
commit
a97d032c7b
1 changed files with 11 additions and 2 deletions
|
@ -1680,9 +1680,18 @@ PicoBlaze; and Zilog Z80 families, plus many of their variants.")
|
||||||
(("debugger/mcs51" line)
|
(("debugger/mcs51" line)
|
||||||
(string-append line "\n"
|
(string-append line "\n"
|
||||||
"TARGETS += sdcc-misc\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
|
(inputs
|
||||||
(list readline))
|
(list readline ucsim))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bison boost flex python-2 texinfo zlib))
|
(list bison boost flex python-2 texinfo zlib))
|
||||||
(home-page "https://sdcc.sourceforge.net/")
|
(home-page "https://sdcc.sourceforge.net/")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue