From 8c714143f4487c07515056be1da696cd73052e0a Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Thu, 25 Jan 2024 14:29:24 +0000 Subject: jailhouse-imx: fix bitbake tasks overrides Overriding do_configure will skip: setup_target_config setuptools3_do_configure Using prepend in do_install will result in the call of python3 pip directly inside of oe_runmake instead of using the functions [1] resulting in install the python stuff to a wrong target path which includes the HOME directory of the user who runs bitbake. [1] setup_target_config setuptools3_do_install python_pep517_do_install Signed-off-by: Jose Quaresma --- recipes-extended/jailhouse/jailhouse-imx_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-extended/jailhouse/jailhouse-imx_git.bb b/recipes-extended/jailhouse/jailhouse-imx_git.bb index 7eba3a439..f275274d2 100644 --- a/recipes-extended/jailhouse/jailhouse-imx_git.bb +++ b/recipes-extended/jailhouse/jailhouse-imx_git.bb @@ -41,7 +41,7 @@ INMATES_DIR ?= "${JH_DATADIR}/inmates" TUNE_CCARGS:remove:mx93-nxp-bsp = "-mcpu=cortex-a55" -do_configure() { +do_configure:prepend() { if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; then cp "${STAGING_DIR_HOST}/${CELLCONF_DIR}/"*.c ${S}/configs/${ARCH}/ @@ -55,7 +55,7 @@ do_compile:prepend() { KDIR=${STAGING_KERNEL_BUILDDIR} } -do_install:prepend() { +do_install:append() { oe_runmake \ PYTHON=python3 \ V=1 \ -- cgit v1.2.3-54-g00ecf