[arch-commits] Commit in arm-none-eabi-newlib/repos (3 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Nov 4 22:49:24 UTC 2014
Date: Tuesday, November 4, 2014 @ 23:49:24
Author: anatolik
Revision: 121891
archrelease: copy trunk to community-testing-any
Added:
arm-none-eabi-newlib/repos/community-testing-any/
arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 121890, arm-none-eabi-newlib/trunk/PKGBUILD)
arm-none-eabi-newlib/repos/community-testing-any/fix_libgloss_compile.patch
(from rev 121890, arm-none-eabi-newlib/trunk/fix_libgloss_compile.patch)
----------------------------+
PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++
fix_libgloss_compile.patch | 31 +++++++++++++++++++++
2 files changed, 94 insertions(+)
Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 121890, arm-none-eabi-newlib/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2014-11-04 22:49:24 UTC (rev 121891)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.1.0
+pkgrel=1
+pkgdesc='A C standard library implementation intended for use on embedded systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc git)
+options=(!emptydirs !strip staticlibs !buildflags)
+# newlib 2.1.0 does not have newlib-nano integrated yet. Let's use the latest HEAD until 2.1.1 release.
+source=(git://sourceware.org/git/newlib.git#commit=9b9f839addfe16ab0fd11f09a30a28139bfae6d5)
+sha1sums=('SKIP')
+
+build() {
+ export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+
+ rm -rf build-{newlib,nano}
+ mkdir build-{newlib,nano}
+
+ cd "$srcdir"/build-newlib
+ ../newlib/configure \
+ --target=$_target \
+ --prefix=/usr \
+ --disable-newlib-supplied-syscalls \
+ --disable-nls \
+ --enable-newlib-io-long-long\
+ --enable-newlib-register-fini
+ make
+
+ cd "$srcdir"/build-nano
+ ../newlib/configure \
+ --target=$_target \
+ --prefix=/usr \
+ --disable-newlib-supplied-syscalls \
+ --disable-nls \
+ --enable-newlib-reent-small \
+ --disable-newlib-fvwrite-in-streamio \
+ --disable-newlib-fseek-optimization \
+ --disable-newlib-wide-orient \
+ --enable-newlib-nano-malloc \
+ --disable-newlib-unbuf-stream-opt \
+ --enable-lite-exit \
+ --enable-newlib-global-atexit
+ make
+}
+
+package() {
+ cd "$srcdir"/build-nano
+ make DESTDIR="$pkgdir" install -j1
+ find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a '{}' \;
+
+ cd "$srcdir"/build-newlib
+ make DESTDIR="$pkgdir" install -j1
+
+ rm "$pkgdir"/usr/share/info/*.info
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname/
+ install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ "$srcdir"/newlib/COPYING*
+}
Copied: arm-none-eabi-newlib/repos/community-testing-any/fix_libgloss_compile.patch (from rev 121890, arm-none-eabi-newlib/trunk/fix_libgloss_compile.patch)
===================================================================
--- community-testing-any/fix_libgloss_compile.patch (rev 0)
+++ community-testing-any/fix_libgloss_compile.patch 2014-11-04 22:49:24 UTC (rev 121891)
@@ -0,0 +1,31 @@
+From: Agustin Henze <tin at debian.org>
+Date: Fri, 3 Jan 2014 11:29:55 -0300
+Subject: [PATCH] Fix wrong path to libgloss/config/default.mh
+
+---
+ libgloss/arm/cpu-init/Makefile.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libgloss/arm/cpu-init/Makefile.in b/libgloss/arm/cpu-init/Makefile.in
+index 547c58d..d63149f 100644
+--- a/libgloss/arm/cpu-init/Makefile.in
++++ b/libgloss/arm/cpu-init/Makefile.in
+@@ -18,6 +18,7 @@ libdir = @libdir@
+ tooldir = $(exec_prefix)/$(target_alias)
+
+ objtype = @objtype@
++host_makefile_frag = $(srcdir)/../../config/default.mh
+
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -80,7 +81,7 @@ info:
+ install-info:
+ clean-info:
+
+-Makefile: Makefile.in ../config.status @host_makefile_frag_path@
++Makefile: Makefile.in ../config.status ${host_makefile_frag_path}
+ $(SHELL) ../config.status --file cpu-init/Makefile
+
+ ../config.status: ../configure
+--
+1.8.5.2
More information about the arch-commits
mailing list