* [PATCH v5 1/1] configure.ac: configurable tooldir install path
@ 2024-01-11 18:30 Neal Frager
2024-01-22 9:31 ` Frager, Neal
2024-01-23 8:53 ` Corinna Vinschen
0 siblings, 2 replies; 4+ messages in thread
From: Neal Frager @ 2024-01-11 18:30 UTC (permalink / raw)
To: newlib; +Cc: cjwfirmware, jjohnstn, thomas.petazzoni, vapier, Neal Frager
This patch is required to fix how the newlib headers are installed
when using a sysroot install directory.
The cross compiler expects headers to be in
.../host/usr/arm-none-eabi/sysroot/usr/include/newlib.h
by default newlib installed the headers into
.../host/usr/arm-none-eabi/sysroot/usr/arm-none-eabi/include/newlib.h
${exec_prefix} provides the .../host/usr/arm-none-eabi/sysroot path
${target_noncanonical} provides an extra arm-none-eabi/ that must be removed.
With this patch, users can specify the tooldir path that is needed.
Signed-off-by: Neal Frager <neal.frager@amd.com>
Co-developed-by: Chris Wardman <cjwfirmware@vxmdesign.com>
---
V1->V2:
- migrated patch to configure.ac
- changed option name to --with-tooldir=PATH
V2->V3:
- removed quotes around ${with_tooldir}
V3->V4:
- migrated case to AS_CASE
- migrated AC_MSG_WARN to AC_MSG_ERROR
V4->V5:
- remove unnecessary with_tooldir clear when erroring out
---
configure.ac | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index f1bb72100..0badf1d30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2599,7 +2599,15 @@ esac
# Some systems (e.g., one of the i386-aix systems the gas testers are
# using) don't handle "\$" correctly, so don't use it here.
-tooldir='${exec_prefix}'/${target_noncanonical}
+AC_ARG_WITH([tooldir],
+ [AS_HELP_STRING([--with-tooldir=PATH],
+ [use given path to install target tools after build])],
+ [AS_CASE([x"$withval"],
+ [x/*],,
+ [AC_MSG_ERROR([argument to --with-tooldir must be an absolute path])])
+ ],
+ [with_tooldir='${exec_prefix}'/${target_noncanonical}])
+tooldir=${with_tooldir}
build_tooldir=${tooldir}
# Create a .gdbinit file which runs the one in srcdir
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH v5 1/1] configure.ac: configurable tooldir install path
2024-01-11 18:30 [PATCH v5 1/1] configure.ac: configurable tooldir install path Neal Frager
@ 2024-01-22 9:31 ` Frager, Neal
2024-01-22 13:12 ` Mike Frysinger
2024-01-23 8:53 ` Corinna Vinschen
1 sibling, 1 reply; 4+ messages in thread
From: Frager, Neal @ 2024-01-22 9:31 UTC (permalink / raw)
To: newlib, vapier, jjohnstn; +Cc: cjwfirmware, thomas.petazzoni
Hello Mike, Jeff,
Just a friendly reminder regarding this patch. Have you had
a chance to review v5 yet?
Thank you for your support.
Best regards,
Neal Frager
AMD
> ---
> configure.ac | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index f1bb72100..0badf1d30 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2599,7 +2599,15 @@ esac
>
> # Some systems (e.g., one of the i386-aix systems the gas testers are
> # using) don't handle "\$" correctly, so don't use it here.
> -tooldir='${exec_prefix}'/${target_noncanonical}
> +AC_ARG_WITH([tooldir],
> + [AS_HELP_STRING([--with-tooldir=PATH],
> + [use given path to install target tools after build])],
> + [AS_CASE([x"$withval"],
> + [x/*],,
> + [AC_MSG_ERROR([argument to --with-tooldir must be an absolute path])])
> + ],
> + [with_tooldir='${exec_prefix}'/${target_noncanonical}])
> +tooldir=${with_tooldir}
> build_tooldir=${tooldir}
>
> # Create a .gdbinit file which runs the one in srcdir
> --
> 2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v5 1/1] configure.ac: configurable tooldir install path
2024-01-22 9:31 ` Frager, Neal
@ 2024-01-22 13:12 ` Mike Frysinger
0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2024-01-22 13:12 UTC (permalink / raw)
To: Frager, Neal; +Cc: newlib, jjohnstn, cjwfirmware, thomas.petazzoni
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
On 22 Jan 2024 09:31, Frager, Neal wrote:
> Just a friendly reminder regarding this patch. Have you had
> a chance to review v5 yet?
seems OK to me, although i don't use tooldir.
up to Jeff or Corinna at this point.
-mike
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v5 1/1] configure.ac: configurable tooldir install path
2024-01-11 18:30 [PATCH v5 1/1] configure.ac: configurable tooldir install path Neal Frager
2024-01-22 9:31 ` Frager, Neal
@ 2024-01-23 8:53 ` Corinna Vinschen
1 sibling, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2024-01-23 8:53 UTC (permalink / raw)
To: Neal Frager; +Cc: newlib, cjwfirmware, jjohnstn, thomas.petazzoni, vapier
On Jan 11 18:30, Neal Frager wrote:
> This patch is required to fix how the newlib headers are installed
> when using a sysroot install directory.
>
> The cross compiler expects headers to be in
> .../host/usr/arm-none-eabi/sysroot/usr/include/newlib.h
> by default newlib installed the headers into
> .../host/usr/arm-none-eabi/sysroot/usr/arm-none-eabi/include/newlib.h
>
> ${exec_prefix} provides the .../host/usr/arm-none-eabi/sysroot path
> ${target_noncanonical} provides an extra arm-none-eabi/ that must be removed.
>
> With this patch, users can specify the tooldir path that is needed.
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> Co-developed-by: Chris Wardman <cjwfirmware@vxmdesign.com>
> ---
> V1->V2:
> - migrated patch to configure.ac
> - changed option name to --with-tooldir=PATH
> V2->V3:
> - removed quotes around ${with_tooldir}
> V3->V4:
> - migrated case to AS_CASE
> - migrated AC_MSG_WARN to AC_MSG_ERROR
> V4->V5:
> - remove unnecessary with_tooldir clear when erroring out
> ---
> configure.ac | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index f1bb72100..0badf1d30 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2599,7 +2599,15 @@ esac
>
> # Some systems (e.g., one of the i386-aix systems the gas testers are
> # using) don't handle "\$" correctly, so don't use it here.
> -tooldir='${exec_prefix}'/${target_noncanonical}
> +AC_ARG_WITH([tooldir],
> + [AS_HELP_STRING([--with-tooldir=PATH],
> + [use given path to install target tools after build])],
> + [AS_CASE([x"$withval"],
> + [x/*],,
> + [AC_MSG_ERROR([argument to --with-tooldir must be an absolute path])])
> + ],
> + [with_tooldir='${exec_prefix}'/${target_noncanonical}])
> +tooldir=${with_tooldir}
> build_tooldir=${tooldir}
>
> # Create a .gdbinit file which runs the one in srcdir
> --
> 2.25.1
Pushed.
Thanks,
Corinna
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-23 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 18:30 [PATCH v5 1/1] configure.ac: configurable tooldir install path Neal Frager
2024-01-22 9:31 ` Frager, Neal
2024-01-22 13:12 ` Mike Frysinger
2024-01-23 8:53 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).