summary refs log tree commit diff
path: root/gnu/packages/embedded.scm
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2021-05-14 22:54:47 +0200
committerJelle Licht <jlicht@fsfe.org>2021-05-14 22:58:18 +0200
commite4beaa7c8a71f4fdfe1948a3d96e5214407b7e49 (patch)
treee72997767d526a50a917403278fae54b7b81497c /gnu/packages/embedded.scm
parent4261c15a96e1441fd40fc64c04409de9c8b2204c (diff)
downloadguix-e4beaa7c8a71f4fdfe1948a3d96e5214407b7e49.tar.gz
gnu: sdcc: Build sdcdb debugger.
* gnu/packages/embedded.scm (sdcc)[arguments]<phases>: Add sdcc-misc target.
Diffstat (limited to 'gnu/packages/embedded.scm')
-rw-r--r--gnu/packages/embedded.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 73342ae97a..901afba29b 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -1547,6 +1547,12 @@ and Zilog Z80 families, plus many of their variants.")
            (lambda _
              (substitute* (find-files "." "(\\.mk$|\\.in$)")
                (("/bin/sh") (which "sh")))
+             ;; --disable-ucsim disables sdcc-misc, patch it back in.
+             (substitute* "Makefile.in"
+               (("debugger/mcs51" line)
+                (string-append line  "\n"
+                               "TARGETS += sdcc-misc\n"
+                               "PKGS += $(SDCC_MISC)")))
              #t)))))
     (home-page "http://sdcc.sourceforge.net")
     (synopsis "C compiler suite for 8-bit microcontrollers")