[fedora-arm] Cross-compiler settings for rpmbuild

Kedar Sovani kedars at marvell.com
Mon May 3 08:20:31 UTC 2010


msalter had tried to build these within koji.

Here is the link: 
http://people.redhat.com/msalter/crossbuild/

I think you need to install the cross-rpm-config and patches to
yum/mock.


Kedar.

On Sat, 2010-05-01 at 00:51 -0700, Shakthi Kannan wrote:
> Hi,
> 
> The hardware device I use for testing is armv4, while the pre-built
> rootfs is armv5. I have a custom toolchain which I would like to use
> to build the packages from .src.rpm. How can I achieve that with the
> rpmbuild process? I don't have an option of building on the target
> hardware.
> 
> 1. If I would like to cross-compile, what should be the BuildArch?
> 
> 2. Where can I set the cross-compiler settings, for example:
> 
> %__cc            /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-gcc
> %__cpp          /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-g++
> %__cxx           /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-g++
> %__ld             /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-ld
> %__nm           /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-nm
> %__objcopy   /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-objcopy
> %__objdump  /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-objdump
> %__ranlib       /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-ranlib
> %__strip         /usr/local/arm/3.4.3/bin/arm-none-linux-gnueabi-strip
> 
> I see that /usr/lib/rpm has lot of configuration files and settings,
> and /usr/lib/rpm/platform is for native builds?
> 
> Appreciate any inputs in this regard,
> 
> Thanks!
> 
> SK
> 




More information about the arm mailing list