Cross-compiler settings for rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux