[Buildroot] arch support

Ulf Samuelsson ulf.samuelsson at atmel.com
Thu Jan 15 22:01:48 UTC 2009


...
> 
> I use a script like this:
> 
> cat ~/bin/br-build-arch                                             ~
> #!/bin/sh
> 
> [ -e Config.in ] || { echo Must be in buildroot dir >&2; exit 1; }
> 
> unset GREP_OPTIONS
> rm -f .config
> make menuconfig
> 
> ARCH=$(grep BR2_ARCH= .config|cut -f2 -d\")
> 
> # use download dir, gcc 4.3.2 and kernel headers 2.6.28
> sed -i  -e 's~BR2_DL_DIR=.*$~BR2_DL_DIR="/var/lib/downloads"~' \
>  -e 's~^.*BR2_GCC_VERSION_4_2_4.*$~# BR2_GCC_VERSION_4_2_4 is not set~' \
>  -e 's~^.*BR2_GCC_VERSION_4_3_2.*$~BR2_GCC_VERSION_4_3_2=y~' \
>  -e 's~^.*BR2_KERNEL_HEADERS_2_6_27.*~# BR2_KERNEL_HEADERS_2_6_27 is not set~' \
>  -e 's~^.*BR2_KERNEL_HEADERS_2_6_28.*~BR2_KERNEL_HEADERS_2_6_28=y~' \
>  .config
> yes ''|make oldconfig
> make O=/tmp/br/$ARCH 2>&1 | tee /tmp/br/$ARCH.log
> 
> 
> Where /var/lib/downloads is my local download dir.
> 

export BUILDROOT_DL_DIR=/var/lib/downloads

in .bashrc will work as well 
and you do not mess up your .config if you want to provide it
to others.

BR
Ulf Samuelsson





More information about the buildroot mailing list