This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Add --with-sdkdir flag for controlling target library installation location
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Jonathan Roelofs <jonathan at codesourcery dot com>
- Cc: newlib at sourceware dot org
- Date: Thu, 29 Jan 2015 18:03:13 -0500 (EST)
- Subject: Re: [PATCH] Add --with-sdkdir flag for controlling target library installation location
- Authentication-results: sourceware.org; auth=none
- References: <54BDA970 dot 9050404 at codesourcery dot com> <379773571 dot 848135 dot 1422310265400 dot JavaMail dot zimbra at redhat dot com> <54CA6CDF dot 1020302 at codesourcery dot com>
Oh well, that idea was just off the top of my head.
I guess you will have to post what problem you are specifically attempting to solve to gcc-list or
binutils-list and continue the discussion there. They can determine the best way to solve it with minimal disruption of
the configuration files.
Looking at your diagrams below, I'm not sure why you can't just use a link to solve your problem outside of the build, but
I don't know the whole story and perhaps you have already considered it.
-- Jeff J.
----- Original Message -----
From: "Jonathan Roelofs" <jonathan@codesourcery.com>
To: "Jeff Johnston" <jjohnstn@redhat.com>
Cc: newlib@sourceware.org
Sent: Thursday, January 29, 2015 12:24:47 PM
Subject: Re: [PATCH] Add --with-sdkdir flag for controlling target library installation location
On 1/26/15 3:11 PM, Jeff Johnston wrote:
> This is a global change that applies a change to all target libraries (i.e. not just newlib) since the top-level
> configure.ac needs to be kept in sync with other projects that share it (binutils/gcc). You need to propose any such
> change to all the lists (binutils and gcc).
Ok.
>
> That said, I think the change could definitely be cleaner. For example, you could make the option:
> --with-target-noncanonical which would be easier for others to understand. Then, you could either override
> the target_noncanonical value or not in one place (as opposed to changing everything to use sdk_dir).
There's a subtle difference here between what I'm calling the 'sdk_dir'
and what 'target_noncanonical' means. It is also important to note that
I'm not replacing *all* uses of 'target_noncanonical' with 'sdk_dir'.
Several of the uses of 'target_noncanonical' that are not replaced in
this patch assume that it is structured like a target triple, which is
not necessarily true of an 'sdk_dir'. For example, I would like to
specify something like: `configure --target arm-none-eabi
--with-sdkdir=SDKs/baremetal_arm`, and end up with $prefix containing this:
.
âââ SDKs
â âââ baremetal_arm
â âââ include
â â âââ ...
â âââ lib
â âââ ...
âââ share
âââ info
âââ ...
Whereas it currently looks like this:
.
âââ arm-none-eabi
â âââ include
â â âââ ...
â âââ lib
â âââ ...
âââ share
âââ info
âââ ...
With that in mind, is there a better way I should be structuring my patch?
Cheers,
Jon
>
> -- Jeff J.
>
> ----- Original Message -----
> From: "Jonathan Roelofs" <jonathan@codesourcery.com>
> To: newlib@sourceware.org
> Sent: Monday, January 19, 2015 8:03:44 PM
> Subject: [PATCH] Add --with-sdkdir flag for controlling target library installation location
>
> The backstory is that I'd like to be able to have newlib install target
> libraries in a directory other than the one named after the target
> triple, so I can customize the layout of my toolchain's sysroots.
>
> 2015-01-19 Jonathan Roelofs <jonathan@codesourcery.com>
>
> * configure.ac: Add new flag: --with-sdkdir=.
> * configure: Regenerate.
>
--
Jon Roelofs
jonathan@codesourcery.com
CodeSourcery / Mentor Embedded