Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 1 | From 64d4a8a9b59ed79bc78658d7edf1bdd9bc4f084d Mon Sep 17 00:00:00 2001 |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 2 | From: Imre Kis <imre.kis@arm.com> |
| 3 | Date: Tue, 19 Oct 2021 11:48:10 +0200 |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 4 | Subject: [PATCH 1/1] Allow aarch64-linux-gcc to compile bare metal lib |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 5 | |
| 6 | Newlib build system determines the target (i.e. Linux, BSD, bare metal, |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 7 | etc.) according to the toolchain triplet. This patch changes the |
| 8 | configure script to treat the aarch64-linux-gnu and the |
| 9 | aarch64-linux-musl triplets as bare-metal compilers. |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 10 | |
| 11 | Signed-off-by: Imre Kis <imre.kis@arm.com> |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 12 | Signed-off-by: Gyorgy Szing <gyorgy.szing@arm.com> |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 13 | --- |
| 14 | configure | 2 +- |
| 15 | libgloss/aarch64/configure | 2 +- |
| 16 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 17 | |
| 18 | diff --git a/configure b/configure |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 19 | index 5db52701..1eb71a80 100755 |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 20 | --- a/configure |
| 21 | +++ b/configure |
| 22 | @@ -3659,7 +3659,7 @@ case "${target}" in |
| 23 | *-*-freebsd*) |
| 24 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 25 | ;; |
| 26 | - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 27 | + *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 28 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 29 | ;; |
| 30 | *-*-lynxos*) |
| 31 | diff --git a/libgloss/aarch64/configure b/libgloss/aarch64/configure |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 32 | index b45256f3..25c9d5f7 100755 |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 33 | --- a/libgloss/aarch64/configure |
| 34 | +++ b/libgloss/aarch64/configure |
| 35 | @@ -2521,7 +2521,7 @@ test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 36 | |
| 37 | |
| 38 | case "${target}" in |
| 39 | - *-*-elf) |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 40 | + *-*-elf | *-linux-gnu | *-linux-musl) |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 41 | objtype=elf- |
| 42 | ;; |
| 43 | esac |
| 44 | -- |
Gyorgy Szing | 8fad9bc | 2021-12-12 03:56:41 +0100 | [diff] [blame] | 45 | 2.17.1 |
Imre Kis | dd15411 | 2021-10-08 11:21:14 +0200 | [diff] [blame] | 46 | |