]> code.ossystems Code Review - openembedded-core.git/commit
module: build hostprogs for each module
authorDarren Hart <dvhart@linux.intel.com>
Tue, 1 Mar 2011 22:17:55 +0000 (14:17 -0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 4 Mar 2011 19:37:08 +0000 (11:37 -0800)
commite807fc977770cb64a217768672c18437ea8f3057
tree4a3b7b268bdfc7e093356aba0df03caa7a595811
parentaa60f178d9f6b4ebdf03bbfcf2b46e94bf4e78d3
module: build hostprogs for each module

This fixes [BUGID #241]

The kernel hostprogs are built for the host architecture. They should not be
deployed to the target, and they should not be included in an sstate package
which might get reused on a host of a different architecture.

As we don't build many out-of-tree modules, this patch takes the approach of
building the hostprogs as part of the module compile process with a
do_compile_prepend() routine in module.bbclass.

We don't have to clean the hostprogs as modules depend on the kernel being
populate_staging, so its done with the staging directory by the time we run.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Gary Thomas <gary@mlbassoc.com>
meta/classes/module.bbclass