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
Hi again,
--- On Sat, May 1, 2010 at 1:21 PM, Shakthi Kannan shakthimaan@gmail.com wrote: | 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++ | ... | --
I found these useful posts about using mock for Fedora ARM:
http://blog.chris.tylers.info/index.php?/archives/227-Mock-config-for-ARM-bu...
http://zenit.senecac.on.ca/wiki/index.php/Fedora_ARM_Secondary_Architecture/...
Instead of a remote repo, I am interested in having a local copy of the repo, and building each package from the .src.rpm with the cross-compiler. If mock can be used for the same, is there a place where the cross-build macros can be defined?
Thanks,
SK
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.
If I would like to cross-compile, what should be the BuildArch?
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