[yocto] Newbie questions on cross-building packages for PPC

Philip Prindeville philipp_subx at redfish-solutions.com
Sat Feb 23 13:14:18 PST 2019


Hi.

I’ve worked on a lot of embedded projects involving cross-building (like AstLinux and OpenWrt), but I’m new to Yocto so please bear with the noob questions.

I’d like to build packages (mostly RPM’s, plus a Linux kernel or three) on an x86_64 (AMD64) Linux (CentOS 7.6) platform, but for e500v2 and 85xxDP PPC targets.

What do I need to do to set up a toolchain and environment to be able to do that?

Ideally, I’d also like to set up an RPM target so I could use “rpmbuild --target e500v2-unknown-linux” (or whatever) and it would use the correct compiler, linker, archiver, sysheaders, etc.

Advice on both of these, or just pointers to instructions on how to set it all up, would be great.

For instance, do I need one compiler only that can handle multiple processor variants via the --march= flag, or is this not the right way to go?  And similarly, since the linker can rewrite code (shortening branch offsets, peep-hole optimization, unreachable code removal, etc.) do I need different linker versions for the 2 PPC variants?

Thanks,

-Philip



More information about the yocto mailing list