[uClibc] Install toolchain from buildroot

Thomas Petazzoni thomas.petazzoni at enix.org
Mon Dec 6 10:26:56 UTC 2004


Hello,

Here again. If nobody's interested in this patch or in integrating this 
patch into buildroot, I'll give up updating it to the most recent CVS.

Thomas

Thomas Petazzoni a écrit :
> Hello,
> 
> Volmat Alain a écrit :
> 
>> At the end of the "make" procress a root image is
>> available
>> but is there a simple way to "install" the toolchain which
>> get compiled during the buildroot compilation process ?
> 
> 
> The included patch adds an option to the configuration system, that 
> allows to install the generated toolchain in a given directory. If the 
> option is left empty, then the toolchain will normally be generated in 
> build_ARCH/staging_dir.
> 
> Feel free to apply to CVS and/or send comments.
> 
> Thomas
> 
> 
> ------------------------------------------------------------------------
> 
> ? buildroot-custom-staging-dir.patch
> Index: Config.in
> ===================================================================
> RCS file: /var/cvs/buildroot/Config.in,v
> retrieving revision 1.5
> diff -u -r1.5 Config.in
> --- Config.in	15 Oct 2004 07:11:54 -0000	1.5
> +++ Config.in	24 Nov 2004 15:46:25 -0000
> @@ -66,6 +66,10 @@
>  	bool
>  	default n
>  
> +config BR2_STAGING_DIR
> +	string "Toolchain destination directory"
> +	default ""
> +
>  source "toolchain/Config.in"
>  
>  source "package/Config.in"
> Index: package/Makefile.in
> ===================================================================
> RCS file: /var/cvs/buildroot/package/Makefile.in,v
> retrieving revision 1.3
> diff -u -r1.3 Makefile.in
> --- package/Makefile.in	27 Oct 2004 18:09:13 -0000	1.3
> +++ package/Makefile.in	24 Nov 2004 15:46:25 -0000
> @@ -15,7 +15,13 @@
>  #PATCH_DIR=$(BASE_DIR)/sources/patches
>  BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
>  TARGET_DIR:=$(BUILD_DIR)/root
> -STAGING_DIR=$(BUILD_DIR)/staging_dir
> +
> +ifeq ($(BR2_STAGING_DIR),)
> +  STAGING_DIR=$(BUILD_DIR)/staging_dir
> +else
> +  STAGING_DIR=$(BR2_STAGING_DIR)
> +endif
> +
>  TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
>  TARGET_PATH=$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
>  IMAGE:=$(BASE_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc


-- 
PETAZZONI Thomas - thomas.petazzoni at enix.org
http://thomas.enix.org - Jabber: thomas.petazzoni at jabber.dk
http://kos.enix.org, http://sos.enix.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20041206/e3948515/attachment.pgp 


More information about the uClibc mailing list