gnu: sdcc: Build sdcdb debugger.

* gnu/packages/embedded.scm (sdcc)[arguments]<phases>: Add sdcc-misc target.
This commit is contained in:
Jelle Licht 2021-05-14 22:54:47 +02:00
parent 4261c15a96
commit e4beaa7c8a
No known key found for this signature in database
GPG key ID: DA4597F947B41025

View file

@ -1547,6 +1547,12 @@ (define-public sdcc
(lambda _ (lambda _
(substitute* (find-files "." "(\\.mk$|\\.in$)") (substitute* (find-files "." "(\\.mk$|\\.in$)")
(("/bin/sh") (which "sh"))) (("/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))))) #t)))))
(home-page "http://sdcc.sourceforge.net") (home-page "http://sdcc.sourceforge.net")
(synopsis "C compiler suite for 8-bit microcontrollers") (synopsis "C compiler suite for 8-bit microcontrollers")