[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/26: commencement: make-mesboot0: Support ARM.
From: |
guix-commits |
Subject: |
14/26: commencement: make-mesboot0: Support ARM. |
Date: |
Mon, 28 Dec 2020 13:58:10 -0500 (EST) |
janneke pushed a commit to branch wip-arm-bootstrap
in repository guix.
commit c4e277cbaedc1274f01f3cf30eea739b9bcb4ea7
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Dec 20 09:52:51 2020 +0100
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.
---
gnu/packages/commencement.scm | 110 ++++++++++++++++++++++--------------------
1 file changed, 58 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index af455c7..26e4d93 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -617,58 +617,64 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(define gnu-make-mesboot0
;; The initial make
- (package
- (inherit gnu-make)
- (name "make-mesboot0")
- (version "3.80")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/make/make-" version ".tar.gz"))
- (sha256
- (base32
- "1pb7fb7fqf9wz9najm85qdma1xhxzf1rhj5gwrlzdsz2zm0hpcv4"))))
- (supported-systems '("i686-linux" "x86_64-linux"))
- (inputs '())
- (propagated-inputs '())
- (native-inputs `(("tcc" ,tcc-boot0)
- ,@(%boot-gash-inputs)))
- (arguments
- `(#:implicit-inputs? #f
- #:guile ,%bootstrap-guile
- #:configure-flags '("CC=tcc"
- "CPP=tcc -E"
- "LD=tcc"
- "--build=i686-unknown-linux-gnu"
- "--host=i686-unknown-linux-gnu"
- "--disable-nls")
- #:modules ((guix build gnu-build-system)
- (guix build utils)
- (srfi srfi-1))
- #:strip-binaries? #f ; no strip yet
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'scripted-patch
- (lambda _
- (substitute* "build.sh.in"
- (("@LIBOBJS@") "getloadavg.o")
- (("@REMOTE@") "stub"))
- #t))
- (add-after 'configure 'configure-fixup
- (lambda _
- (substitute* "make.h"
- (("^extern long int lseek.*" all) (string-append "// " all)))
- #t))
- (replace 'build
- (lambda _
- (invoke "sh" "./build.sh")))
- (replace 'check ; proper check needs awk
- (lambda _
- (invoke "./make" "--version")))
- (replace 'install
- (lambda _
- (let* ((out (assoc-ref %outputs "out"))
- (bin (string-append out "/bin")))
- (install-file "make" bin)))))))))
+ (let ((triplet (match (%current-system)
+ ((or "armhf-linux" "aarch64-linux")
+ "arm-linux")
+ ((or "i686-linux" "x86_64-linux")
+ "i686-linux-gnu"))))
+ (package
+ (inherit gnu-make)
+ (name "make-mesboot0")
+ (version "3.80")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/make/make-" version
".tar.gz"))
+ (sha256
+ (base32
+ "1pb7fb7fqf9wz9najm85qdma1xhxzf1rhj5gwrlzdsz2zm0hpcv4"))))
+ (supported-systems '("armhf-linux" "aarch64-linux"
+ "i686-linux" "x86_64-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("tcc" ,tcc-boot0)
+ ,@(%boot-gash-inputs)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:configure-flags (list "CC=tcc"
+ "CPP=tcc -E"
+ "LD=tcc"
+ (string-append "--build=" ,triplet)
+ (string-append "--host=" ,triplet)
+ "--disable-nls")
+ #:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (srfi srfi-1))
+ #:strip-binaries? #f ; no strip yet
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'scripted-patch
+ (lambda _
+ (substitute* "build.sh.in"
+ (("@LIBOBJS@") "getloadavg.o")
+ (("@REMOTE@") "stub"))
+ #t))
+ (add-after 'configure 'configure-fixup
+ (lambda _
+ (substitute* "make.h"
+ (("^extern long int lseek.*" all) (string-append "// " all)))
+ #t))
+ (replace 'build
+ (lambda _
+ (invoke "sh" "./build.sh")))
+ (replace 'check ; proper check needs awk
+ (lambda _
+ (invoke "./make" "--version")))
+ (replace 'install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (install-file "make" bin))))))))))
(define (%boot-tcc0-inputs)
`(("make" ,gnu-make-mesboot0)
- 03/26: gnu: mes: Update to nyacc-1.00.2., (continued)
- 03/26: gnu: mes: Update to nyacc-1.00.2., guix-commits, 2020/12/28
- 04/26: DRAFT gnu: Add mes-next., guix-commits, 2020/12/28
- 08/26: DRAFT bootstrap: %bootstrap-mes: Support ARM., guix-commits, 2020/12/28
- 09/26: commencement: gash-boot: Build fix for ARM., guix-commits, 2020/12/28
- 10/26: DRAFT commencement: bootstrap-mes-rewired: Support ARM., guix-commits, 2020/12/28
- 11/26: DRAFT commencement: mes-boot: Support ARM., guix-commits, 2020/12/28
- 12/26: commencement: tcc-boot0: Support ARM, update to 0.9.26-1136-g0fbeb2dd., guix-commits, 2020/12/28
- 07/26: DRAFT bootstrap: %bootstrap-mescc-tools: Support ARM., guix-commits, 2020/12/28
- 06/26: DRAFT bootstrap: mes-minimal: Support ARM, update to mes-0.22-118., guix-commits, 2020/12/28
- 13/26: commencement: gzip-mesboot: Support ARM., guix-commits, 2020/12/28
- 14/26: commencement: make-mesboot0: Support ARM.,
guix-commits <=
- 16/26: commencement: bash-mesboot0: Support ARM., guix-commits, 2020/12/28
- 18/26: commencement: diffutils-mesboot: Support ARM., guix-commits, 2020/12/28
- 22/26: commencement: gcc-core-mesboot0: Support ARM., guix-commits, 2020/12/28
- 23/26: commencement: mesboot-headers: Support ARM., guix-commits, 2020/12/28
- 19/26: commencement: patch-mesboot: Support ARM., guix-commits, 2020/12/28
- 15/26: commencement: bzip2-mesboot: Support ARM., guix-commits, 2020/12/28
- 17/26: commencement: tcc-boot: Support ARM., guix-commits, 2020/12/28
- 20/26: commencement: sed-mesboot0: Support ARM., guix-commits, 2020/12/28
- 21/26: commencement: binutils-mesboot0: Support ARM., guix-commits, 2020/12/28
- 24/26: commencement: gawk-mesboot: Support ARM., guix-commits, 2020/12/28