svn commit: trunk/buildroot/toolchain/external-toolchain
Author: jacmet
Date: 2008-06-16 05:22:45 -0700 (Mon, 16 Jun 2008) New Revision: 22378
Log:
toolchain: more sensible uclibc defaults for external toolchain
Modified:
trunk/buildroot/toolchain/external-toolchain/Config.in
Changeset:
Modified: trunk/buildroot/toolchain/external-toolchain/Config.in
===================================================================
buildroot/toolchain/external-toolchain/Config.in +4 -4
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_LIB_C string "The core C library from the external toolchain" - default "libc.so.6" + default "libc.so.0" help Specify the core C shared library found in the external toolchain. This is required in addition to any other
@@ -14,7 +14,7 @@ config BR2_TOOLCHAIN_EXTERNAL_LIBS string "Libraries to copy from the external toolchain" - default "" + default "ld-uClibc.so.0 libcrypt.so.0 libdl.so.0 libgcc_s.so libm.so.0 libnsl.so.0 libpthread.so.0 libresolv.so.0 librt.so.0 libutil.so.0" help A space separated list of the shared libraries to be copied from the external toolchain into the root filesystem. Only
@@ -34,13 +34,13 @@ config BR2_TOOLCHAIN_EXTERNAL_PATH string "External toolchain path" - default "" + default "/path/to/staging_dir/usr" help Path to where the external toolchain is installed. config BR2_TOOLCHAIN_EXTERNAL_PREFIX string "External toolchain prefix" - default "" + default "$(ARCH)-linux" help This the the external toolchain prefix. For example: armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
Quoted 6 lines · jacmet at uclibc.org
Author: jacmet
Date: 2008-06-16 05:22:45 -0700 (Mon, 16 Jun 2008) New Revision: 22378Log:
toolchain: more sensible uclibc defaults for external toolchain
Note that the external toolchain always defaulted to use a glibc-based toolchain. Steven should be notified on such a change since (IIRC) it was him who added the external-toolchain thing..
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 6 lines
Quoted 6 lines
Author: jacmet
Date: 2008-06-16 05:22:45 -0700 (Mon, 16 Jun 2008) New Revision: 22378Log:
toolchain: more sensible uclibc defaults for external toolchain
Bernhard> Note that the external toolchain always defaulted to use a Bernhard> glibc-based toolchain. Steven should be notified on such a Bernhard> change since (IIRC) it was him who added the Bernhard> external-toolchain thing..
He afaiks reads this list as well, and it's just defaults, so no big deal. BR2_TOOLCHAIN_EXTERNAL_LIBS, BR2_TOOLCHAIN_EXTERNAL_PATH and BR2_TOOLCHAIN_EXTERNAL_PREFIX weren't set to anything before, so glibc users have to configure it anyway.
We might as well default to something that is right away usable for buildroot users.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 16 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 6 lines
Quoted 6 lines
Author: jacmet
Date: 2008-06-16 05:22:45 -0700 (Mon, 16 Jun 2008) New Revision: 22378Log:
toolchain: more sensible uclibc defaults for external toolchainBernhard> Note that the external toolchain always defaulted to use a Bernhard> glibc-based toolchain. Steven should be notified on such a Bernhard> change since (IIRC) it was him who added the Bernhard> external-toolchain thing..
Quoted 4 lines
He afaiks reads this list as well, and it's just defaults, so no big deal.
BR2_TOOLCHAIN_EXTERNAL_LIBS,BR2_TOOLCHAIN_EXTERNAL_PATHandBR2_TOOLCHAIN_EXTERNAL_PREFIXweren't set to anything before, so glibc users have to configure it anyway.
It would be nice if you would list example values in the help-text for a few libc's then (i did not look if you already do this).
Quoted 3 lines
We might as well default to something that is right away usable for buildroot users.
.. which would be everything but external toolchain, yes ;)
buildroot/toolchain/external-toolchain/Config.in line 39
Quoted 6 lines · jacmet at uclibc.org
config
BR2_TOOLCHAIN_EXTERNAL_PATHbuildroot/toolchain/external-toolchain/Config.in +1
-1string "External toolchain path" - default "" + default "/path/to/staging_dir/usr" help Path to where the external toolchain is installed.
I've set this to "$(BR2_STAGING_DIR)/usr" here, which might be a good default?
buildroot/toolchain/external-toolchain/Config.in line 46
Quoted 7 lines
config
BR2_TOOLCHAIN_EXTERNAL_PREFIXbuildroot/toolchain/external-toolchain/Config.in +1
-1string "External toolchain prefix" - default "" + default "$(ARCH)-linux" help This the the external toolchain prefix. For example: armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
Probably not a useful default, given that all the examples have -gnu etc after them? Mine is armeb-linux-uclibcgnu here; again you can probably construct something like "$(ARCH)-$(BR2_GNU_TARGET_SUFFIX)".
thanks
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Quoted 6 lines · jacmet at uclibc.org
Quoted 6 lines
config
BR2_TOOLCHAIN_EXTERNAL_PATH
string "External toolchain path"buildroot/toolchain/external-toolchain/Config.in +1
-1- default "" + default "/path/to/staging_dir/usr"help
Path to where the external toolchain is installed.
Hamish> I've set this to "$(BR2_STAGING_DIR)/usr" here, which might Hamish> be a good default?
You think so? I wouldn't expect having buildroot install package stuff together with the (potentially read only) external toolchain would be a common setup.
Quoted 7 lines
Quoted 7 lines
config
BR2_TOOLCHAIN_EXTERNAL_PREFIX
string "External toolchain prefix"(quoted diff) +1
-1- default "" + default "$(ARCH)-linux"help
This the the external toolchain prefix. For example:
armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
Hamish> Probably not a useful default, given that all the examples Hamish> have -gnu etc after them? Mine is armeb-linux-uclibcgnu here; Hamish> again you can probably construct something like Hamish> "$(ARCH)-$(BR2_GNU_TARGET_SUFFIX)".
Don't you have an armeb-linux symlink? For the stuff I compile (arm, i386, ppc) there's symlinks from the arm-linux-uclibc-<whatever> to arm-linux-<whatever>.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 11 lines · Peter Korsgaard
Quoted 6 lines · jacmet at uclibc.org
Quoted 6 lines
config
BR2_TOOLCHAIN_EXTERNAL_PATH
string "External toolchain path"buildroot/toolchain/external-toolchain/Config.in +1
-1- default "" + default "/path/to/staging_dir/usr"help
Path to where the external toolchain is installed.Hamish> I've set this to "$(BR2_STAGING_DIR)/usr" here, which might Hamish> be a good default?
Quoted 3 lines
You think so? I wouldn't expect having buildroot install package stuff together with the (potentially read only) external toolchain would be a common setup.
Well I've got one board ("tools", in local/tools/tools.config) to build the toolchain which I then use as external toolchain to build several other boards (all armeb-linux-uclibcgnu). So my toolchain lives in the staging directory in the same tree.
This makes for a nice path-independent setup too.. other developers at my company can check out the tree and build everything (including the toolchain first) into any path they like.
So if this isn't a common approach then maybe it isn't a good default after all.
Quoted 3 lines
Don't you have an armeb-linux symlink? For the stuff I compile (arm, i386, ppc) there's symlinks from the arm-linux-uclibc-<whatever> to arm-linux-<whatever>.
Probably, I'll have to check tomorrow.
thanks
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Hamish> I've set this to "$(BR2_STAGING_DIR)/usr" here, which might Hamish> be a good default?
Quoted 4 lines
Quoted 4 lines
You think so? I wouldn't expect having buildroot install package stuff together with the (potentially read only) external toolchain would be a common setup.
Hamish> Well I've got one board ("tools", in
Hamish> local/tools/tools.config) to build the toolchain which I then Hamish> use as external toolchain to build several other boards (all Hamish> armeb-linux-uclibcgnu). So my toolchain lives in the staging Hamish> directory in the same tree.
So they all put libraries / headers in the same staging_dir? Doesn't that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it in staging_dir even though it isn't going to be there at runtime).
The same with the packages offering different versions.
I think a more common setup would be to install the toolchain somewhere common (/opt/<whatever>) and then have multiple boards using the same toolchain/c library but potentially different set of packages(-versions) and their own staging_dir.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 24 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Hamish> I've set this to "$(BR2_STAGING_DIR)/usr" here, which might Hamish> be a good default?
Quoted 4 lines
Quoted 4 lines
You think so? I wouldn't expect having buildroot install package stuff together with the (potentially read only) external toolchain would be a common setup.
Hamish> Well I've got one board ("tools", in
Hamish>local/tools/tools.config) to build the toolchain which I then Hamish> use as external toolchain to build several other boards (all Hamish> armeb-linux-uclibcgnu). So my toolchain lives in the staging Hamish> directory in the same tree.So they all put libraries / headers in the same
staging_dir? Doesn't that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it instaging_direven though it isn't going to be there at runtime).
Quoted 6 lines
The same with the packages offering different versions.
I think a more common setup would be to install the toolchain somewhere common (/opt/<whatever>) and then have multiple boards using the same toolchain/c library but potentially different set of packages(-versions) and their own
staging_dir.
If i understand correctly what you are talking about then this is exactly the purpose of that PROJECT thing, fwiw.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 7 lines
Quoted 7 lines
So they all put libraries / headers in the same
staging_dir? Doesn't that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it instaging_direven though it isn't going to be there at runtime).
Quoted 6 lines
Quoted 6 lines
The same with the packages offering different versions.
I think a more common setup would be to install the toolchain somewhere common (/opt/<whatever>) and then have multiple boards using the same toolchain/c library but potentially different set of packages(-versions) and their own
staging_dir.
Bernhard> If i understand correctly what you are talking about then this is Bernhard> exactly the purpose of that PROJECT thing, fwiw.
Me? No, the project stuff is (afaik atleast) just about compiling the configurable packages under project_build_* instead of build_*, so you can reuse a single working directory / staging_dir for multiple projects. It has the same drawbacks as what I listed above.
It does sound pretty much what Hamish is doing though.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 18 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 7 lines
Quoted 7 lines
So they all put libraries / headers in the same
staging_dir? Doesn't that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it instaging_direven though it isn't going to be there at runtime).Quoted 6 lines
Quoted 6 lines
The same with the packages offering different versions.
I think a more common setup would be to install the toolchain somewhere common (/opt/<whatever>) and then have multiple boards using the same toolchain/c library but potentially different set of packages(-versions) and their own
staging_dir.
Quoted 4 lines
Bernhard> If i understand correctly what you are talking about then this is Bernhard> exactly the purpose of that PROJECT thing, fwiw.
Me?
no, Hamish.
Quoted 6 lines
No, the project stuff is (afaik atleast) just about compiling the
configurable packages under project_build_* instead of build_*, so you can reuse a single working directory /staging_dirfor multiple projects. It has the same drawbacks as what I listed above.It does sound pretty much what Hamish is doing though.
Exactly.
Quoted 7 lines · Peter Korsgaard
Hamish> Well I've got one board ("tools", in
Hamish>local/tools/tools.config) to build the toolchain which I then Hamish> use as external toolchain to build several other boards (all Hamish> armeb-linux-uclibcgnu). So my toolchain lives in the staging Hamish> directory in the same tree.So they all put libraries / headers in the same
staging_dir? Doesn't
Yes.
Quoted 5 lines
that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it in
staging_direven though it isn't going to be there at runtime).
Good point. So far all my boards are very similar so this hasn't been a problem, but that won't always be the case.
IMHO this is a flaw of the project support - everything should be built into a project-specific directory. Currently only the kernel and busybox are built in project_build_$arch.
How would everyone react to a patch which redefines BUILD_DIR to match PROJECT_BUILD_DIR, ie each project would have project_build_$arch/$project/staging_dir etc?
I think Ulf commented in the past that he doesn't want to waste the time spent compiling each package for each board separately, but that seems to be the only way to do it correctly.
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
[Buildroot] svncommit: trunk/buildroot/toolchain/external-toolchain
Quoted 20 lines · Hamish Moffatt
Quoted 7 lines · Peter Korsgaard
Hamish> Well I've got one board ("tools", in
Hamish>local/tools/tools.config) to build the toolchain which I then Hamish> use as external toolchain to build several other boards (all Hamish> armeb-linux-uclibcgnu). So my toolchain lives in the staging Hamish> directory in the same tree.So they all put libraries / headers in the same
staging_dir? Doesn'tYes.
Quoted 5 lines
that give problems with packages detecting optional stuff at compile time that might not be available for a specific variant (E.G. one variant has expat, and another doesn't - Some configure script checks for expat and finds it in
staging_direven though it isn't going to be there at runtime).Good point. So far all my boards are very similar so this hasn't been a problem, but that won't always be the case.
Quoted 7 lines
IMHO this is a flaw of the project support - everything should be built into a project-specific directory. Currently only the kernel and busybox are built in project_build_$arch.
How would everyone react to a patch which redefines
BUILD_DIRto matchPROJECT_BUILD_DIR, ie each project would have project_build_$arch/$project/staging_dir etc?
No, then you might as well use several buildroot trees.
Quoted 5 lines
I think Ulf commented in the past that he doesn't want to waste the time spent compiling each package for each board separately, but that seems to be the only way to do it correctly.
You have to be aware of the limitations, that's for sure. There are a number of packages which can only be built one way and they can reside in build_<arch>, packages which have different options needs to be built in project_build_<arch>
Quoted 1 line
Hamish
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT90 AVR Applications Group: mailto:avr at atmel.com AT91 ARM Applications Group: mailto:at91support at atmel.com
AVR32 Applications Group mailto:avr32 at atmel.com
http://www.avrfreaks.net/; http://avr32linux.org/
http://www.at91.com/ ; http://www.linux4sam.org/
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Hamish" == Hamish Moffatt <[email protected]> writes:
Hi,
Hamish> How would everyone react to a patch which redefines BUILD_DIR Hamish> to match PROJECT_BUILD_DIR, ie each project would have Hamish> project_build_$arch/$project/staging_dir etc?
Hamish> I think Ulf commented in the past that he doesn't want to Hamish> waste the time spent compiling each package for each board Hamish> separately, but that seems to be the only way to do it Hamish> correctly.
Maybe there's a solution in between. Put packages that really can only be built one way under build_, and all other packages under project_build, and then have STAGING_DIR under project_build as well (with some logic to copy/symlink in the toolchain stuff). Then each variant could use different versions / configurations of the packages, and we would still only compile the stuff under build_ once (per version).
Signature · 1 line
Bye, Peter Korsgaard
Quoted 6 lines · Hamish Moffatt
Quoted 3 lines · Peter Korsgaard
Don't you have an armeb-linux symlink? For the stuff I compile (arm, i386, ppc) there's symlinks from the arm-linux-uclibc-<whatever> to arm-linux-<whatever>.
Probably, I'll have to check tomorrow.
Indeed I do have an armeb-linux symlink.
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>