Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Cross-compiling out-of-tree kernel modules and user-space apps
@ 2017-05-03  9:15 Mason
  2017-05-03  9:35 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Mason @ 2017-05-03  9:15 UTC (permalink / raw)
  To: buildroot

Hello,

I use buildroot to generate kernel + rootfs image for an ARM
platform, typically cross-compiled with the Linaro toolchain.

I also have a large body of software in a separate repo
(outside of the BR tree) with its own build system.
This repo includes kernel modules, user-space libraries
and apps, which need to be cross-compiled and built on
top of the rootfs generated by BR.

Therefore, I would need to pass some information from BR
to the separate build system, such as

- ARCH
- CROSS_COMPILE
- location of the cross-toolchain, to add to the PATH
- location of the sysroot

What is the best way to do this?

I tried a post-image script, but I didn't see ARCH or
CROSS_COMPILE in the env or as arguments.

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-03 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-03  9:15 [Buildroot] Cross-compiling out-of-tree kernel modules and user-space apps Mason
2017-05-03  9:35 ` Thomas Petazzoni
2017-05-03  9:48   ` Mason
2017-05-03 12:23     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox