1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-07 13:40:36 +02:00
Commit Graph

209 Commits

Author SHA1 Message Date
Nicolas Graves
266d84d922 guix: build-system: Set pypi-uri in pyproject, drop python module.
After this commit, when both modules are imported:

- if pyproject is imported before, the warning is 'pypi-uri' is
deprecated, use '(@ (guix build-system pyproject) pypi-uri)' instead

- if python is imported before, the warning is `pypi-uri' imported from
both (guix build-system python) and (guix build-system pyproject)

This seems convenient enough to warn for deprecation in the short term,
while avoiding any breaking changes.

* guix/build-system/pyproject.scm (pypi-uri): Move the procedure from
(guix build-system python) here.

* guix/build-system/python (pypi-uri): Drop definition, import it
from (guix build-system pyproject) and deprecate it.

* gnu/packages/openldap.scm: Reorder modules to get the right warning.

* gnu/packages/pypy.scm: Likewise.

* gnu/packages/*.scm : Drop module (guix build-system python).

* tests/import/pypi.scm: Likewise.

Merges: https://codeberg.org/guix/guix/pulls/7448
Change-Id: Ib42f53bc545052eb7918a25afe9db6d5fc2cb834
Reviewed-by: Nguyễn Gia Phong <cnx@loang.net>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-04-04 22:42:07 +01:00
Nicolas Graves
9f23012d15 gnu: mbed-tools: Drop phases.
* gnu/packages/embedded.scm (mbed-tools)[arguments]<#:phases>: Drop
them, they are not required anymore.

Change-Id: I470d9ecae2e86defcb144f8c759fd7db819f44f0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-04-04 22:41:53 +01:00
Efraim Flashner
9b96db81be gnu: python-cmsis-pack-manager: Fix build.
* gnu/packages/embedded.scm (python-cmsis-pack-manager)[arguments]: In
the prepare-cargo-build-system phase, add prepare-rust-crates phase from
cargo-build-system.

Change-Id: Id9cfe39f0210c976dbcfc93ca1c27601e0435b15
2026-03-30 19:22:26 +03:00
Ludovic Courtès
1ae20f03f4 gnu: Reference the inherited inputs values.
This commit was made by running this command:

  sed -e's/modify-inputs (package-\([a-z-]*\)inputs [a-zA-Z0-9-]\+)/modify-inputs \1inputs/g' -i gnu/packages/*.scm

… and then reverting individual hunks where the change would trigger unbound
variable warnings or other issues (such as ‘native-inputs’ is bound in the
body of the ‘inputs’ field, but it refers to the ‘native-inputs’ thunk defined
just above).

Change-Id: I6d94819f2809313fa1fbefc61897502ee7d66fab
2026-03-20 13:27:16 +01:00
Ludovic Courtès
2a50c9598b gnu: Reference the inherited ‘arguments’ value.
This commit was made by running this command:

  sed -e's/substitute-keyword-arguments (package-arguments [a-zA-Z0-9-]\+)/substitute-keyword-arguments arguments/g' -i gnu/packages/*.scm

… and then:

  1. reverting changes from ‘gnu/packages/rust.scm’ and
     ‘gnu/packages/java.scm’ since they would incur derivation changes and/or
     breakage;
  2. reverting the change for ‘gcc-final’ in ‘gnu/packages/commencement.scm’;
  3. reverting the change for ‘onnx-optimizer’, ‘openquest’, and ‘certbot’,
     which use ‘substitute-keyword-arguments’ for arguments that are not
     inherited (and thus ‘arguments’ would be unbound);
  4. reverting the change for ‘insight-toolkit-legacy’ and ‘wine64-staging’
     which make bogus assumptions about inherited arguments.

Change-Id: I122a7cf517b6b63cae38944b5d33ade4b1f5a89c
2026-03-20 13:27:15 +01:00
Andreas Enge
890d423379 gnu: Remove fc-host-tools.
* gnu/packages/embedded.scm (fc-host-tools): Delete variable.

Fixes: guix/guix#6545
Change-Id: Ie0400ab0a33b0f92a37e20e6de68276fa9c9eda7
2026-03-18 18:35:30 +01:00
Artyom V. Poptsov
9c737a8ff0 gnu: ebusd: Update to 26.1.
* gnu/packages/embedded.scm (ebusd): Update to 26.1.  Use GEXPs.
[arguments]<#:phases>: Set the proper path to the installed configuration in
the "patch" phase.  Update the ebusd configuration installation path in
"install-config" phase.
[native-inputs]: Update "config" input: use the latest commit from the
upstream as the upstream has migrated from the old CSV configuration format to
TypeSpec format.  Change the installation file name to "ebusd-configuration".

Change-Id: I61b18bfe812511c41ea11829db2034ae68bab058
2026-03-07 10:00:22 +03:00
Ricardo Wurmus
ea3532393a gnu: propeller-load: Patch to include header file.
* gnu/packages/embedded.scm (propeller-load)[arguments]: Add phase
'patch-for-readlink.

Change-Id: Iac1645fdfb6174d8af51eb32027b366e925345f9
2026-03-04 09:52:22 +01:00
Ricardo Wurmus
129ff35366 gnu: make-propeller-gcc-4: Build with GCC 5.
* gnu/packages/patches/gcc-4.6-gnu-inline.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.
* gnu/packages/embedded.scm (make-propeller-gcc-4)[source]: Remove patch.
[arguments]: Remove 'pre-x86-configure phase.
[native-inputs]: Replace gcc-4.9 with gcc-5.

Change-Id: Ifb4b00952edc9053e7496ffe33f8beacd34e11ca
2026-03-04 09:52:22 +01:00
Ricardo Wurmus
995e7c800b gnu: make-propeller-binutils: Fix syntax error.
* gnu/packages/embedded.scm (make-propeller-binutils)[arguments]: Simplify by
only using SUBSTITUTE-KEYWORD-ARGUMENTS.

Fixes <https://codeberg.org/guix/guix/issues/6533>.

Change-Id: If955af9d4c10790b767dc9e18b80ea718f33e859
2026-03-04 09:52:21 +01:00
Sharlatan Hellseher
5f3cd42859 gnu: Deprecate swig and swig-next in vafor of swig-4.0 and swig-4.4.
This is a following up change after discussion in
<https://codeberg.org/guix/guix/pulls/3701#issuecomment-11048648>.

* gnu/packages/swig.scm (swig-4.0, swig-4.4): New variables.
(swig, swig-next): Deprecate swig and swig-next in vafor of swig-4.0 and
swig-4.4.

* gnu/packages/accessibility.scm (libbraille)
* gnu/packages/apparmor.scm (libapparmor)
* gnu/packages/bioinformatics.scm (htseq, imp, libsbml)
* gnu/packages/bootloaders.scm (dtc, u-boot)
* gnu/packages/disk.scm (volume-key)
* gnu/packages/dns.scm (ldns, unbound)
* gnu/packages/electronics.scm (opensta, trilinos-serial-xyce, uhdm)
* gnu/packages/embedded.scm (python-libmpsse)
* gnu/packages/engineering.scm (freecad, kicad, meep, mpb)
* gnu/packages/fabric-management.scm (ibutils)
* gnu/packages/game-development.scm (python-pybox2d)
* gnu/packages/games.scm (kiki)
* gnu/packages/geo.scm (saga)
* gnu/packages/gnome.scm (libratbag)
* gnu/packages/gnucash.scm (gnucash)
* gnu/packages/gnupg.scm (python-gpg)
* gnu/packages/graphviz.scm (graphviz)
* gnu/packages/guile-xyz.scm (guile-xapian)
* gnu/packages/image.scm (mypaint)
* gnu/packages/instrumentation.scm (babeltrace, lttng-tools)
* gnu/packages/kodi.scm (kodi)
* gnu/packages/libftdi.scm (libftdi)
* gnu/packages/linux.scm (libnl)
* gnu/packages/llvm.scm (lldb)
* gnu/packages/machine-learning.scm (openmm, tensorflow-lite)
* gnu/packages/maths.scm (nlopt)
* gnu/packages/ncurses.scm (stfl)
* gnu/packages/oneapi.scm (python-onetbb)
* gnu/packages/pretty-print.scm (highlight)
* gnu/packages/python-crypto.scm (python-m2crypto)
* gnu/packages/python-graphics.scm (python-pivy)
* gnu/packages/radio.scm (hamlib, soapysdr)
* gnu/packages/security-token.scm (python-pyscard, python-yubikey-manager)
* gnu/packages/selinux.scm (libselinux, libsemanage, python-setools)
* gnu/packages/speech.scm (pocketsphinx)
* gnu/packages/statistics.scm (python-openturns, r-spams)
* gnu/packages/tbb.scm (python-tbb)
* gnu/packages/version-control.scm (subversion)
* gnu/packages/video.scm (libopenshot, mlt, obs)
[native-inputs]: Remove swig; add swig-4.0.

* gnu/packages/geo.scm (gdal)
* gnu/packages/graph.scm (python-faiss)
[inputs]: Remove swig; add swig-4.0.

* gnu/packages/games.scm (fifengine): Update to 0.4.2.
[inputs]: Remove swig; add swig-4.0.
[native-inputs]: Likewise.

* gnu/packages/image-processing.scm (insight-toolkit, simpleitk)
* gnu/packages/pdf.scm (mupdf, python-pymupdf)
[native-inputs]: Remove swig-next; add swig-4.4.

Change-Id: I544bef0a0b1a81004596fad9f116610ef5cb52ae
2026-02-27 14:07:00 +00:00
Sören Tempel
f947cdecc3 gnu: ebusd: Make the build reproducible.
* gnu/packages/embedded.scm (ebusd)[arguments]<#:phases>{set-version}: New
phase.

Fixes: guix/guix#6638
Change-Id: I5bc7b0448b6eb8a18db86c3813a619f9f63737e0
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
2026-02-24 23:05:05 +01:00
Dariqq
3e9338b923 gnu: Use (target-32bit?) to test for 32bit targets.
* gnu/packages/*.scm: Replace usage of target-64bit? when actually testing for
32bit targets.
* guix/utils.scm (target-hurd32?). Same.

Change-Id: If3ed2b82a1229b72b07fafc694eedc14080e5a04
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #5710
2026-02-20 22:34:56 +01:00
David Arroyo
4164e516aa gnu: stlink: Update to 1.8.0-0.6a6718b.
* gnu/packages/embedded.scm (stlink): Update to 1.8.0-0.6a6718b.

Change-Id: Ief53570c716e9a3d400bd44b7386440cf973dac9
Signed-off-by: Andreas Enge <andreas@enge.fr>
2026-02-06 11:47:43 +01:00
Nicolas Graves
6681b4894d gnu: stcgal: Switch to pyproject.
* gnu/packages/embedded.scm (stcgal):
[source]: Improve style.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-pytest, python-setuptools.

Change-Id: I586a3c56b23572d2552e3779afda4447c708a63b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-12-31 17:11:48 +00:00
Reza Housseini
305d8c4489 gnu: Add python-cmsis-pack-manager.
* gnu/packages/embedded.scm (python-cmsis-pack-manager): New variable.
* gnu/packages/rust-crates.scm (rust-cc-1.2.21, rust-quinn-0.11.6,
rust-quinn-proto-0.11.9, rust-quinn-udp-0.5.10, rust-reqwest-0.12.12,
rust-rustls-webpki-0.103.2, rust-schannel-0.1.23,
rust-windows-registry-0.2.0): New variables.
(cargo-inputs): Register python-cmsis-pack-manager.

Change-Id: I88e012f064f8eb659e32e9cd0870ae4fc6f2dafb
Reviewed-by: bdunahu <bdunahu@operationnull.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-12-04 21:44:28 +00:00
Greg Hogan
1aebfc74f1 gnu: boost: Update to 1.89.0.
* gnu/packages/boost.scm (boost-for-source-highlight): Rename this ...
(boost-1.83): ... to this.
(boost-numpy): Inherit from boost-1.83.
* gnu/packages/pretty-print.scm (source-highlight): Update accordingly.

* gnu/packages/boost.scm (boost): Update to 1.89.0.
[source]: Remove patches.

* gnu/packages/boost.scm (mdds)
[propagated-inputs]: Replace boost with boost-1.83.

* gnu/packages/astronomy.scm (aoflagger),
* gnu/packages/embedded.scm (cc-tool),
* gnu/packages/games.scm (0ad, vcmi),
* gnu/packages/image.scm (gpick),
* gnu/packages/maths.scm (highfive),
* gnu/packages/plotutils.scm (asymptote)
[native-inputs]: Replace boost with boost-1.83.

* gnu/packages/audio.scm (guitarix, supercollider),
* gnu/packages/bioconductor.scm (r-mzr),
* gnu/packages/bioinformatics.scm (ataqv, bless, express, isolator,
metabat, r-velocytom, rsem, sailfish, salmon),
* gnu/packages/bittorrent.scm (libtorrent-rasterbar),
* gnu/packages/code.scm (sourcetrail),
* gnu/packages/compression.scm (innoextract),
* gnu/packages/cpp.scm (lager),
* gnu/packages/crypto.scm (cryfs),
* gnu/packages/electronics.scm (nextpnr, prjpeppercorn, prjtrellis,
pulseview),
* gnu/packages/emulators.scm (mupen64plus-video-glide64mk2),
* gnu/packages/engineering.scm (cadabra2, freecad, libigl,
openscad, prusa-slicer),
* gnu/packages/file-systems.scm (snapper),
* gnu/packages/finance.scm (ledger),
* gnu/packages/game-development.scm (dds),
* gnu/packages/games.scm (colobot, fifengine, knightsgame, leela-zero,
pokerth, supertux, wesnoth, wesnoth-server),
* gnu/packages/geo.scm (gplates),
* gnu/packages/gnucash.scm (gnucash),
* gnu/packages/graph.scm (python-graph-tool),
* gnu/packages/graphics.scma (openshadinglanguage),
* gnu/packages/i2p.scm (i2pd),
* gnu/packages/image-viewers.scm (luminance-hdr),
* gnu/packages/kde-graphics.scm (krita),
* gnu/packages/mail.scm (astroid),
* gnu/packages/medical.scm (orthanc, orthanc-mysql,
orthanc-postgresql),
* gnu/packages/messaging.scm (libphonenumber),
* gnu/packages/mpd.scm (ncmpcpp),
* gnu/packages/networking.scm (kismet),
* gnu/packages/opencog.scm (cogutil),
* gnu/packages/photo.scm (hugin),
* gnu/packages/poedit.scm (poedit),
* gnu/packages/radio.scm (gnuradio),
* gnu/packages/rdf.scm (lucene++),
* gnu/packages/serialization.scm (avro-cpp),
* gnu/packages/simulation.scm (fenics-dolfin),
* gnu/packages/version-control.scm (gource),
* gnu/packages/video.scm (aegisub, mkvtoolnix),
* gnu/packages/web.scm (websocketpp)
[inputs]: Replace boost with boost-1.83.

* gnu/packages/libreoffice.scm (libcmis): Update to 0.6.2-00a85bf6.
(librevenge): Update to 0.0.5.
[arguments]<#:configure-flags>: Remove reference to boost system
component for which the compatibility stub has been removed.
* gnu/packages/serialization.scm (msgpack-cxx): Update to 7.0.0.

Change-Id: I247f3eaecde3de3fe227586b840f0312b4797ee1
2025-11-28 12:26:24 +00:00
Sharlatan Hellseher
2b2889137f gnu: mbed-tools: Update to 7.59.0.
* gnu/packages/embedded.scm (mbed-tools): Update to 7.59.0.
[build-system]: Switch to pyproejct-build-system.
[arguments] <phases>: Remove 'relax-requirements; add 'fix-pytest-config;
use default 'check.
[propagated-inputs]: Remove python-pdoc3.
[native-inputs]: Remove python-pytest-cov; add python-setuptools and
python-setuptools-scm.

Change-Id: I277b573ae5983f1a48b657bdbbfba311600d82cf
2025-11-26 21:22:05 +00:00
Sharlatan Hellseher
7c28753d9e gnu: python-psptool: Update to 3.1.
* gnu/packages/embedded.scm (python-psptool): Update to 3.1.
[source]: Switch to git-fetch.
<snippet>: Drop it as no longer required.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend>: Use 'unittest.
[native-inputs]: Add python-psptrace-bootstrap and python-setuptools.

Change-Id: Iadf37adc484d2b19db710e0110343e965b5e2e08
2025-11-26 21:22:05 +00:00
Sharlatan Hellseher
27cf3437aa gnu: Add python-psptrace.
* gnu/packages/embedded.scm (python-psptrace, python-psptrace-bootstrap):
New variables.

Change-Id: Ie36a997170c7623790b3fabe4c786513031959c2
2025-11-26 21:22:05 +00:00
Nicolas Graves
6c2b35bfe1 gnu: west: Update to 1.5.0.
* gnu/packages/embedded.scm (west): Update to 1.5.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Ignore failing test.
<#:phases>: Add phase 'configure-tests.
[native-inputs]: Add git-minimal, python-pytest, python-setuptools.
[description]: Improve style.

Change-Id: I325826783313d62f9fa33b5e017d7990ad9527bd
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-11-11 16:02:05 +00:00
Hilton Chain
d2007a49b6 gnu: Remove make-gcc-vc4.
Follow-up to binutils-vc4 removal in 738d971d7e.

* gnu/packages/embedded.scm (make-gcc-vc4): Delete procedure.

Change-Id: If674fbcf3814d646d4a875418b97a7301d51a041
2025-09-24 15:48:11 +08:00
Andreas Enge
738d971d7e gnu: Remove binutils-vc4.
* gnu/packages/embedded.scm (binutils-vc4): Delete variable.

Fixes: guix/guix#2103
Change-Id: I126622cfd2688ffb6d1f74169dbd53dfdb155082
2025-09-19 21:46:19 +02:00
Maxim Cournoyer
10482f731e Reapply "Update Maxim's email address."
This reverts commit a7db92d9b3, this time with
the more careful command, to avoid a world rebuild:

grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \
  --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com |
  xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18 13:44:12 +09:00
Maxim Cournoyer
a7db92d9b3 Revert "Update Maxim's email address."
This reverts commit d0d87a744d. Oops! This
caused a world rebuild.

Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18 12:07:31 +09:00
Maxim Cournoyer
d0d87a744d Update Maxim's email address.
The change was automated via:

  git grep -l maxim.cournoyer@gmail.com |
    xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

* .mailmap: New entry.

Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169
2025-09-18 08:05:19 +09:00
Efraim Flashner
d32153f736 gnu: gcc-4.7: Break out into its own package.
* gnu/packages/gcc.scm (gcc-4.7): Rename to gcc-base.
(gcc-4.7): New package, inherit from gcc-base.
[source]: Add snippet to fix building with newer glibc.
[arguments]: Add phase to adjust the C++ include path when not
cross-building.
[supported-systems]: Update supported systems.
(gcc-4.8, gcc-4.9, gcc-6): Inherit from gcc-base.
(base-gcc)[supported-systems]: Remove field.
* gnu/packages/embedded.scm (make-propeller-gcc-4): Inherit from
gcc-base.

Change-Id: I843049420e2afcf1ea342e87eaa9ac46576e4307
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Junker
df105b8b8e gnu: Add cc-tool.
* gnu/packages/embedded.scm (cc-tool): New variable.

Change-Id: Ie97b404f3fa68b340d6633b55d7a6bbea04b292f
Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-06-02 16:56:49 +02:00
Danny Milosavljevic
f6363db186 gnu: ebusd: Update to 25.1.
* gnu/packages/embedded.scm (ebusd): Update to 25.1.
[arguments]<#:phases>[patch]: Make it find the local configs.

Change-Id: Id862e3139b9590846eac0c8f4bbc156ef84b15d6
2025-05-11 11:31:22 +02:00
Ricardo Wurmus
cccc6b8b19 gnu: Add GCC arm-none-eabi toolchain 9-2020-q2-update.
* gnu/packages/embedded.scm: (make-gcc-arm-none-eabi-9-2020-q2-update,
make-newlib-arm-none-eabi-9-2020-q2-update,
make-newlib-nano-arm-none-eabi-9-2020-q2-update,
make-arm-none-eabi-toolchain-9-2020-q2-update): New procedures.

Change-Id: Iffb1554bbf38382dadaac7ad8059330f37a54a5c
2025-03-03 14:30:36 +01:00
Rutherther via Guix-patches via
98908e0777 gnu: gdb: Fix build of target-specific versions.
Since recently there has been a change to gdb package that introduced
configure-flags, three gdb packages broke, since they assumed there are no
configure-flags in gdb.  That means they produced the same gdb as gdb-14.

This patche fixes that by ensuring configure-flags are appended to original package.

* gnu/packages/embedded.scm (make-gdb-arm-none-eabi)[arguments]: Append
configure-flags to original flags.
* gnu/packages/gdb.scm (gdb-multiarch)[arguments]: Likewise.
* gnu/packages/gdb.scm (avr-gdb)[arguments]: Likewise.

Signed-off-by: Janneke Nieuwenhuizen <janneke@gnu.org>

Change-Id: Ia8748b86dc72197bd4eef307d091b6af44fc5611
2024-12-11 20:49:03 +01:00
Artyom V. Poptsov
2e223bc57c gnu: stlink: Use GEXPs.
* gnu/packages/embedded.scm (stlink): Use GEXPs.

Change-Id: I26e2649f29c1e742f848f3efc5a10c218bb5bb28
2024-11-23 08:49:06 +03:00
Artyom V. Poptsov
90c7d77833 gnu: stlink: Update to 1.8.0.
* gnu/packages/embedded.scm (stlink): Update to 1.8.0.

Change-Id: I51a3c664c4035ec542fa82753dc8e6aa8a8c0256
2024-11-23 08:48:55 +03:00
Rutherther
979003c0f0 gnu: arm-none-eabi toolchain 12.3.rel1
Introduces arm-none-eabi 12.3.rel1 toolchain

The arguments for this toolchain are taken mostly out of here
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads/12-3-rel1

* gnu/packages/patches/newlib-getentropy.patch: Add a patch.
* gnu/local.mk: Register it.
* gnu/packages/embedded.scm (make-gcc-arm-none-eabi-12.3.rel1): Add variable.
* gnu/packages/embedded.scm (make-newlib-arm-none-eabi-12.3.rel1): Add variable.
* gnu/packages/embedded.scm (make-newlib-nano-arm-none-eabi-12.3.rel1): Add variable.
* gnu/packages/embedded.scm (make-arm-none-eabi-toolchain-12.3.rel1): Add variable.
* gnu/packages/embedded.scm (make-arm-none-eabi-toolchain-nano-12.3.rel1): Add variable.

Change-Id: If4220c6bc7b1def240cbb9d5d245758f7c51a8a0
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-12 19:23:34 +02:00
Rutherther
c9aae9300a gnu: newlib arm-none-eabi-7-2018-q2-update: Add proper newlib-nano variant.
The nano variant for was not nano. It was just a copy of the original
one with different name. This meant there were no _nano.a files present
at all, and the flags were the same, not producing a smaller library.

* gnu/packages/embedded.scm (make-base-newlib-arm-none-eabi-7-2018-q2-update):
Rename variable from make-newlib-arm-none-eabi-7-2018-q2-update.
* gnu/packages/embedded.scm (make-newlib-nano-arm-none-eabi-7-2018-q2-update):
Add variable.
* gnu/packages/embedded.scm (make-newlib-arm-none-eabi-7-2018-q2-update):
Inherit from make-base-newlib-arm-none-eabi-7-2018-q2-update.

Change-Id: I01517ed860dfb2b6a9c7e912fd724832f5a0500a
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-12 19:23:34 +02:00
Rutherther
9dabdd9e50 gnu: make-libstdc++-arm-none-eabi: add nano variant
The arm-none-eabi nano toolchain had same libstdc++ as the non-nano variant.
The libstdc++ should be compiled with -fno-exceptions to make a nano
toolchain.

Additionally, since the "_nano.a" variants were not present, it was impossible
to compile C++ programs with libstdc++ using --specs=nano.specs,
since libstdc++_nano.a was not found.

The `--with-target-subdir="."` flag is a preparation for gcc-12 introduction
since the libstdc++ doesn't build without that, failing on GCC_NO_EXECUTABLES
error in configure stage. I have not been able to find out another workaround.

* gnu/packages/embedded.scm (make-libstdc++-arm-none-eabi):
[arguments]<#:make-flags>: Add CFLAGS and CXXFLAGS.
[arguments]<#:configure-flags>: Add --with-target-subdir.
* gnu/packages/embedded.scm (make-libstdc++-nano-arm-none-eabi): Add variable.

Change-Id: I06a507fef07352a4ec80d84e4d97065343fc2295
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-12 19:23:33 +02:00
Rutherther
3f09b05d8d gnu: make-libstdc++-arm-none-eabi: output libstdc++ to arm-none-eabi.
The libstdc++ made for arm-none-eabi puts the contents
into "lib" folder, but that's unexpected when the resulting
toolchain is a cross toolchain.
The folder should be "arm-none-eabi/lib", that's the path
added to CROSS_C_LIBRARY_PATH

* gnu/packages/embedded.scm (make-libstdc++-arm-none-eabi):
[arguments]<#:configure-flags>: Point --libdir to arm-none-eabi/lib.
[arguments]<#:strip-directories>: Set to arm-none-eabi/lib.

Change-Id: Ia8b867a1c6ebeedeae9564e0a6a1e0401b35bd5b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-12 19:23:33 +02:00
Rutherther
ce8872fe9d gnu: make-gcc-arm-none-eabi: reorder C++ native search paths
This fixes native-search-paths of arm-none-eabi toolchains
The toolchains CROSS_CPLUS_INCLUDE_PATH had C include directory
first, and the C++ as second. Since <cstdlib> does #include_next <stdlib.h>,
the toolchains could not build anything using <cstdlib>. The C include
has to come later than C++ one. This is already fixed in xgcc search-path.

* gnu/packages/embedded.scm (make-gcc-arm-none-eabi-4.9,
make-gcc-arm-none-eabi-7-2018-q2-update): [native-search-paths]: Put C include
path as last.

Change-Id: Ib7e36e57e510ac87960375cad40ff0b9e749101c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-12 19:23:29 +02:00
Ludovic Courtès
77ee97628a gnu: binutils: Use gexps.
This is the result of applying ‘guix style -S arguments’ and making
small adjustments.

* gnu/packages/base.scm (binutils)[arguments]: Use gexps.
(binutils-2.33, binutils-gold): Likewise.
* gnu/packages/commencement.scm (binutils-mesboot0, binutils-mesboot1)
(binutils-boot0, binutils-final): Likewise.
* gnu/packages/cross-base.scm (cross-binutils*): Adjust accordingly.
* gnu/packages/embedded.scm (make-propeller-binutils): Use gexps.
* gnu/packages/make-bootstrap.scm (%binutils-static): Use gexps.

Change-Id: I59cbe29760784b09e6d4e80beca9153cb9b495a7
2024-08-31 10:44:23 +02:00
Ricardo Wurmus
d93e93e897 gnu: propeller-load: Disable parallel building.
* gnu/packages/embedded.scm (propeller-load)[arguments]: Use G-expression;
disable parallel building; remove trailing #T from build phase.

Change-Id: I3341b8537b09c2e8310f830ed4d7d6725838a147
2024-02-19 14:09:45 +01:00
Simon South
95f3db6910 gnu: sdcc: Update to 4.4.0.
* gnu/packages/embedded.scm (sdcc): Update to 4.4.0.
* gnu/packages/patches/sdcc-disable-non-free-code.patch: Update to match new
version.

Change-Id: Ie35c590a7f3004bc9f081d99b7ce019ac66cf3c0
Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2024-02-16 08:16:53 +01:00
宋文武
176440c056 gnu: ucsim: Update to 0.8.2.
* gnu/packages/embedded.scm (ucsim): Update to 0.8.2.

Change-Id: Id1a18ef918b28b75311a01f512a3bbfdb545cd41
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2023-11-26 14:49:00 +01:00
Maxim Cournoyer
a1ce7487d3 gnu: embedded: Do not use a prefix on the (gnu packages base) module.
This can in some cases hide the real error with errors such as:

  error: base:which: unbound variable

* gnu/packages/embedded.scm (openocd) [native-inputs]: Replace base:which with
which.
(binutils-vc4): Likewise.
(python-libmpsse): Likewise.
2023-10-10 00:06:13 -04:00
Simon South
ee5de9cdf2 gnu: sdcc: Update to 4.3.0.
* gnu/packages/embedded.scm (sdcc): Update to 4.3.0.
* gnu/packages/patches/sdcc-disable-non-free-code.patch: Update to match new
version.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2023-09-30 10:32:01 +01:00
Simon South
a97d032c7b 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>
2023-09-30 10:32:01 +01:00
Simon South
5605e4db17 gnu: sdcc: Adjust format.
* gnu/packages/embedded.scm (sdcc): Move arguments above inputs; punctuate
comments consistently.
[arguments]<#:configure-flags>: Move comment regarding GPUTILS to associated
flags; add comment for "--disable-ucsim".
[home-page]: Add trailing slash to URL.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2023-09-30 10:32:01 +01:00
Simon South
76c4ecc2dd gnu: sdcc: Update package style.
* gnu/packages/embedded.scm (sdcc)[source]<snippet>: Use gexp; drop
trailing #t.
[arguments]: Use gexps.
<#:phases>: Drop trailing #t from phase.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2023-09-30 10:32:01 +01:00
Simon South
843978bc4f gnu: ucsim: Update to 0.8.0.
* gnu/packages/embedded.scm (ucsim): Update to 0.8.0.
[source]: Update source URI.
[description]: Update.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-09-28 11:44:09 +02:00
Simon South
06b4aa57b7 gnu: ucsim: Move documentation to "doc" output.
* gnu/packages/embedded.scm (ucsim)[arguments]<#:phases>: Expand
"patch-makefiles" phase to set correct documentation-installation path.
[outputs]: Add with "out", "doc".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-09-28 11:44:09 +02:00
Simon South
9698a23f52 gnu: ucsim: Disable tests.
* gnu/packages/embedded.scm (ucsim)[arguments]: Add #:tests?.
[native-inputs]: Remove sdcc unconditionally.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-09-28 11:44:09 +02:00