mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-16 22:38:04 +00:00
multi-kernel: fix get_kernelversion returns None for do_compileconfigs
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>
This commit is contained in:
@@ -16,6 +16,14 @@ SRC_URI += " \
|
||||
file://configs "
|
||||
|
||||
MULTI_CONFIG_BASE_SUFFIX = "multi-config-"
|
||||
MODULES_IMAGE_BASE_NAME = "modules-${PV}-${PR}-${MACHINE}"
|
||||
|
||||
do_preparekernel () {
|
||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
|
||||
oe_runmake prepare CC="${KERNEL_CC}" LD="${KERNEL_LD}"
|
||||
}
|
||||
|
||||
addtask preparekernel after do_configure before do_compile
|
||||
|
||||
do_compileconfigs () {
|
||||
|
||||
@@ -100,5 +108,4 @@ do_deploy_append () {
|
||||
}
|
||||
|
||||
do_compileconfigs[depends] += "u-boot-mkimage-native:do_populate_sysroot virtual/${TARGET_PREFIX}gcc:do_populate_sysroot virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX}:do_populate_sysroot"
|
||||
addtask compileconfigs after do_patch before do_configure
|
||||
|
||||
addtask compileconfigs after do_preparekernel before do_compile
|
||||
|
||||
Reference in New Issue
Block a user