mirror of
https://codeberg.org/guix/guix.git
synced 2026-04-28 06:34:05 +00:00
Compare commits
25 Commits
update-sbc
...
wip-arm-bo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
721c51ceb3 | ||
|
|
3c8170f65f | ||
|
|
f927cc48e1 | ||
|
|
9d40ec0fcd | ||
|
|
83842db321 | ||
|
|
cc625c9b1e | ||
|
|
7d21e9a8c4 | ||
|
|
a524b98c67 | ||
|
|
062185b678 | ||
|
|
5e05e0f56f | ||
|
|
3b84bafcf7 | ||
|
|
ebef32e07b | ||
|
|
a49dd5b0ba | ||
|
|
ab5334e4c6 | ||
|
|
8963701e2f | ||
|
|
6c65906c9a | ||
|
|
ba4fb0c975 | ||
|
|
2c6136b6e3 | ||
|
|
579e3712b0 | ||
|
|
ed906c84c7 | ||
|
|
4984e737b7 | ||
|
|
257ca91787 | ||
|
|
f9293be58e | ||
|
|
a7e7f29090 | ||
|
|
83ddbe0477 |
@@ -11,7 +11,7 @@
|
||||
# Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
||||
# Copyright © 2016, 2017, 2018, 2019 Alex Vong <alexvong1995@gmail.com>
|
||||
# Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||
# Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
# Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
# Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||
# Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
@@ -1089,6 +1089,7 @@ dist_patch_DATA = \
|
||||
%D%/packages/patches/gcc-arm-link-spec-fix.patch \
|
||||
%D%/packages/patches/gcc-asan-missing-include.patch \
|
||||
%D%/packages/patches/gcc-boot-2.95.3.patch \
|
||||
%D%/packages/patches/gcc-boot-2.95.3-arm.patch \
|
||||
%D%/packages/patches/gcc-boot-4.6.4.patch \
|
||||
%D%/packages/patches/gcc-cross-environment-variables.patch \
|
||||
%D%/packages/patches/gcc-cross-gxx-include-dir.patch \
|
||||
@@ -1157,6 +1158,7 @@ dist_patch_DATA = \
|
||||
%D%/packages/patches/glibc-allow-kernel-2.6.32.patch \
|
||||
%D%/packages/patches/glibc-boot-2.16.0.patch \
|
||||
%D%/packages/patches/glibc-boot-2.2.5.patch \
|
||||
%D%/packages/patches/glibc-bootstrap-arm-2.2.5.patch \
|
||||
%D%/packages/patches/glibc-bootstrap-system-2.2.5.patch \
|
||||
%D%/packages/patches/glibc-bootstrap-system-2.16.0.patch \
|
||||
%D%/packages/patches/glibc-bootstrap-system.patch \
|
||||
|
||||
@@ -661,12 +661,23 @@ $out/bin/guile --version~%"
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (map (cute string-append <>
|
||||
"/i686-linux/20190815/"
|
||||
"linux-libre-headers-stripped-4.14.67-i686-linux.tar.xz")
|
||||
(match system
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
(string-append
|
||||
"/armhf-linux/20201219/"
|
||||
"linux-libre-headers-stripped-5.4.20-armhf-linux.tar.xz"))
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
(string-append
|
||||
"/i686-linux/20190815/"
|
||||
"linux-libre-headers-stripped-4.14.67-i686-linux.tar.xz"))))
|
||||
%bootstrap-base-urls))
|
||||
(sha256
|
||||
(base32
|
||||
"0sm2z9x4wk45bh6qfs94p0w1d6hsy6dqx9sw38qsqbvxwa1qzk8s"))))
|
||||
(match system
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
"0d010sp3n2q6cc3ppcgrxrdlgkgr3vlv3x76wz14gc3xfhnnm2x5")
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
"0sm2z9x4wk45bh6qfs94p0w1d6hsy6dqx9sw38qsqbvxwa1qzk8s"))))))
|
||||
#f ; no program to test
|
||||
"Bootstrap linux-libre-headers"))
|
||||
|
||||
@@ -968,17 +979,25 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (map
|
||||
(cute string-append <>
|
||||
"/i686-linux/20190815/"
|
||||
"mescc-tools-static-stripped-0.5.2-i686-linux.tar.xz")
|
||||
(cut string-append <> (%current-system) "/"
|
||||
(match (%current-system)
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
"20221016/mescc-tools-static-stripped-1.4.0-armhf-linux.tar.xz")
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
"20190815/mescc-tools-static-stripped-0.5.2-i686-linux.tar.xz")))
|
||||
%bootstrap-base-urls))
|
||||
(sha256
|
||||
(base32
|
||||
"0c3kklgghzh4q2dbpl6asb74cimp7hp6jscdwqwmzxbapgcl6582")))))))
|
||||
(match (%current-system)
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
"0ldpxi17c6bgxi8sp84k0f49q0s4xn2nbg89qav594slhq3px9lv")
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
"0c3kklgghzh4q2dbpl6asb74cimp7hp6jscdwqwmzxbapgcl6582")))))))))
|
||||
(synopsis "Bootstrap binaries of MesCC Tools")
|
||||
(description synopsis)
|
||||
(home-page #f)
|
||||
(supported-systems '("i686-linux" "x86_64-linux"))
|
||||
(supported-systems '("armhf-linux" "aarch64-linux"
|
||||
"i686-linux" "x86_64-linux"))
|
||||
(license gpl3+)))
|
||||
|
||||
(define %bootstrap-mes
|
||||
@@ -1017,14 +1036,22 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (map
|
||||
(cute string-append <>
|
||||
"/i686-linux/20190815/"
|
||||
"mes-minimal-stripped-0.19-i686-linux.tar.xz")
|
||||
(cute string-append <> (%current-system) "/"
|
||||
(match (%current-system)
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
"20201217/mes-minimal-stripped-0.22-115-gdacaed9fe-armhf-linux.tar.xz")
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
"20190815/mes-minimal-stripped-0.19-i686-linux.tar.xz")))
|
||||
%bootstrap-base-urls))
|
||||
(sha256
|
||||
(base32
|
||||
"1q4xjpx6nbn44kxnilpgl12bhpmwy2bblzwszc2ci7xkf400jcpv")))))))
|
||||
(supported-systems '("i686-linux" "x86_64-linux"))
|
||||
(match (%current-system)
|
||||
((or "armhf-linux" "aarch64-linux")
|
||||
"0daz658r9psmqxjkayvr8ymql6h4gf11gwdd4k3mdv7czc5ak399")
|
||||
((or "i686-linux" "x86_64-linux")
|
||||
"1q4xjpx6nbn44kxnilpgl12bhpmwy2bblzwszc2ci7xkf400jcpv")))))))))
|
||||
(supported-systems '("armhf-linux" "aarch64-linux"
|
||||
"i686-linux" "x86_64-linux"))
|
||||
(synopsis "Bootstrap binaries of Mes")
|
||||
(description synopsis)
|
||||
(home-page #f)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -598,10 +598,13 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||
(inherit mescc-tools)
|
||||
(name "mescc-tools-static")
|
||||
(arguments
|
||||
`(#:system "i686-linux"
|
||||
`(#:system ,(match (%current-system)
|
||||
((or "i686-linux" "x86_64-linux") "i686-linux")
|
||||
((or "armhf-linux" "aarch64-linux") "armhf-linux"))
|
||||
,@(substitute-keyword-arguments (package-arguments mescc-tools)
|
||||
((#:make-flags flags)
|
||||
`(cons "CC=gcc -static" ,flags)))))))
|
||||
'(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||
"CC=gcc -static")))))))
|
||||
|
||||
;; ... next remove store references.
|
||||
(define %mescc-tools-static-stripped
|
||||
@@ -636,7 +639,9 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||
(name "mes-minimal")
|
||||
(native-inputs (list guile-3.0))
|
||||
(arguments
|
||||
`(#:system "i686-linux"
|
||||
`(#:system ,(match (%current-system)
|
||||
((or "i686-linux" "x86_64-linux") "i686-linux")
|
||||
((or "armhf-linux" "aarch64-linux") "armhf-linux"))
|
||||
#:strip-binaries? #f
|
||||
#:configure-flags '("--mes")
|
||||
#:phases
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2017, 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
;;; Copyright © 2017, 2018, 2019, 2020, 2021, 2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
|
||||
@@ -167,14 +167,14 @@ parsers to allow execution with Guile as extension languages.")))
|
||||
(define-public mes
|
||||
(package
|
||||
(name "mes")
|
||||
(version "0.23")
|
||||
(version "0.23.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://gnu/mes/"
|
||||
"mes-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0mnryfkl0dwbr5gxp16j5s95gw7z1vm1fqa1pxabp0aiar1hw53s"))))
|
||||
"0hbnqgjiajs8wq03dkvr9aswrzk8kl98dm6245xhlgqis8d2yhqd"))))
|
||||
(supported-systems '("armhf-linux" "i686-linux" "x86_64-linux"))
|
||||
(propagated-inputs (list mescc-tools nyacc-1.00.2))
|
||||
(native-inputs
|
||||
|
||||
31
gnu/packages/patches/gcc-boot-2.95.3-arm.patch
Normal file
31
gnu/packages/patches/gcc-boot-2.95.3-arm.patch
Normal file
@@ -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
|
||||
1287
gnu/packages/patches/glibc-bootstrap-arm-2.2.5.patch
Normal file
1287
gnu/packages/patches/glibc-bootstrap-arm-2.2.5.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user