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
--
Shakthi Kannan
http://www.shakthimaan.com