Handle multi-config kernel builds with separate namespaces to allow installing
them side by side safely.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Thanks to Robert P. J. Day, MODULE_IMAGE_BASE_NAME was added to oe-core - only
~3.5 years after it got into Classic-OE and with a typo of MODULE_*, not plural
MODULES_*, so match it here and set conditionally.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
The function get_kernelversion uses generated header files to extract the
version number. But those files are not available until do_compile, and
do_compileconfigs is injected before that, hence the version becomes None
and breaks in several places.
Introduce a new task do_preparekernel that calls "make prepare" in the
kernel tree to generate all the necessary files. It's also safer to call
do_configure early on.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
BitBake's fetch2 unpack() seems to be picky about multi-kernel's
file://configs/* and defaults to only looking into machine-specific
location. This fixes the issue, as tested by building these platforms:
beaglebone, am335x-evm and am180x-evm.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>