From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Tue, 23 Dec 2008 11:25:42 +0100 Subject: [Buildroot] svn commit: trunk/buildroot/toolchain: export-toolchain uClibc In-Reply-To: <20081221171134.7BAB176ABE@busybox.osuosl.org> (ulf@uclibc.org's message of "Sun\, 21 Dec 2008 17\:11\:34 +0000 \(UTC\)") References: <20081221171134.7BAB176ABE@busybox.osuosl.org> Message-ID: <87fxkf6vdl.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "ulf" == ulf writes: ulf> Author: ulf ulf> Date: 2008-12-21 17:11:33 +0000 (Sun, 21 Dec 2008) ulf> New Revision: 24480 ulf> Log: ulf> Allow creating a script for external use of Buildroot toolchain ulf> Added: ulf> trunk/buildroot/toolchain/export-toolchain/ ulf> trunk/buildroot/toolchain/export-toolchain/Config.in ulf> trunk/buildroot/toolchain/export-toolchain/Makefile.in That seems very specific - What's wrong with the currently documented way of adding build_$ARCH/staging_dir/usr/bin to the path? Where's the documentation of this thing? ulf> Modified: ulf> trunk/buildroot/toolchain/Config.in ulf> trunk/buildroot/toolchain/Makefile.in ulf> trunk/buildroot/toolchain/uClibc/Config.in ulf> +++ trunk/buildroot/toolchain/Makefile.in 2008-12-21 17:11:33 UTC (rev 24480) ulf> @@ -47,3 +47,5 @@ ulf> # gcc has a bunch of needed stuff.... ulf> include toolchain/gcc/Makefile.in ulf> +include toolchain/export-toolchain/Makefile.in ulf> + This seems to break the build as the dependencies target isn't executed before the other toolchain stuff - I've disabled it in r24519. ulf> +config BR2_EXPORT_TOOLCHAIN ulf> + bool "Create script exporting toolchain to home directory" ulf> + default n ulf> + help ulf> + This will generate a batchfile which, if run ulf> + will add the Buildroot toolchain to the user PATH ulf> + The file is called "$(ARCH)-uclibc-gcc-$(GCC_VERSION).sh" ulf> + Batchfile? shell script? I take it that you need to source the file for the changes to take effect? ulf> +~/$(GCC_SCRIPT): cross_compiler I'm not sure ~ in make targets are a good idea. -- Bye, Peter Korsgaard