diff options
author | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2021-12-20 09:52:51 +0100 |
---|---|---|
committer | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2022-10-18 23:00:13 +0200 |
commit | a49dd5b0ba2aeaa1032dd2a43e74fd2fb108928c (patch) | |
tree | 48d4d7d4867e2d7321e87386128e7353f3ba5d12 /gnu/packages/patches | |
parent | ab5334e4c6dc0f8c1674771d9e99b5bfe5dd04a1 (diff) | |
download | guix-a49dd5b0ba2aeaa1032dd2a43e74fd2fb108928c.tar.gz |
gnu: commencement: make-mesboot0: Support ARM.
* gnu/packages/commencement.scm (gnu-make-mesboot0)[supported-systems]: Add armhf-linux, aarch64-linux. [arguments]: Cater for armhf-linux, aarch64-linux.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/gcc-boot-2.95.3-arm.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/patches/gcc-boot-2.95.3-arm.patch b/gnu/packages/patches/gcc-boot-2.95.3-arm.patch new file mode 100644 index 0000000000..73a059ef7f --- /dev/null +++ b/gnu/packages/patches/gcc-boot-2.95.3-arm.patch @@ -0,0 +1,31 @@ +This patch enables building gcc-2.95.3 on armhf-linux using TCC and +Mes C Library. + + * Add include/asm/unist.h linux header. + * Disable libgcc2.c float and long long functions. + +Upstream status: Not presented upstream. + +--- gcc-2.95.3/include/asm/unistd.h.orig 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-2.95.3/include/asm/unistd.h 2020-12-23 07:49:44.156673879 +0100 +@@ -0,0 +1,9 @@ ++#ifndef __ASM_UNISTD_H ++#define __ASM_UNISTD_H ++ ++#if __arm__ ++#define __NR_getpid 0x14 ++#define __NR_kill 0x25 ++#endif ++ ++#endif // __ASM_UNISTD_H +--- gcc-2.95.3/gcc/Makefile.in.orig 2020-12-23 08:31:57.733501802 +0100 ++++ gcc-2.95.3/gcc/Makefile.in 2020-12-23 08:31:49.985371208 +0100 +@@ -1260,7 +1260,7 @@ + -(cd tmpcopy; chmod +w * > /dev/null 2>&1) + (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2)) + (cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext)) +- rm -rf libgcc2.a tmpcopy ++ rm -rf tmpcopy + if $(RANLIB_TEST_FOR_TARGET) ; then \ + $(RANLIB_FOR_TARGET) tmplibgcc.a; \ + else true; fi |