From 9d3074609a3fb0712e0102dbbb4d7bdabb58d142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 28 Oct 2014 22:24:46 +0100 Subject: [PATCH] gnu: Add Xtensa bare-bones cross-compiler. * gnu/packages/cross-base.scm (xgcc-xtensa): New variable. * gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add case for "xtensa-elf". --- gnu/packages/bootstrap.scm | 5 +++++ gnu/packages/cross-base.scm | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index 315e8cf21e..e617093fb3 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm @@ -156,6 +156,11 @@ check whether everything is alright." (cond ((string=? system "x86_64-linux") "/lib/ld-linux-x86-64.so.2") ((string=? system "i686-linux") "/lib/ld-linux.so.2") ((string=? system "mips64el-linux") "/lib/ld.so.1") + + ;; XXX: This one is used bare-bones, without a libc, so add a case + ;; here just so we can keep going. + ((string=? system "xtensa-elf") "no-ld.so") + (else (error "dynamic linker name not known for this system" system)))) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 0a0272cf74..a91952daca 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -293,6 +293,10 @@ XBINUTILS and the cross tool chain." (cross-binutils triplet) (cross-libc triplet)))) +(define-public xgcc-xtensa + ;; Bare-bones Xtensa cross-compiler, used to build the Atheros firmware. + (cross-gcc "xtensa-elf")) + ;; (define-public xgcc-armel ;; (let ((triplet "armel-linux-gnueabi")) ;; (cross-gcc triplet