diff options
| author | Mahammed Sadik Shaik <s-sadik@ti.com> | 2026-03-12 00:35:37 +0530 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2026-03-12 10:25:58 -0500 |
| commit | 8eaa5cace42e97a423953d4aaaa625dcc00e6749 (patch) | |
| tree | edf984a2f635cd81ce127720dc3938a54e58af81 /meta-ti-extras | |
| parent | dbedef732f7028ed26271c984fdef3fdc9a7995a (diff) | |
| download | meta-ti-8eaa5cace42e97a423953d4aaaa625dcc00e6749.tar.gz | |
ti-jailhouse: Fix buildpaths QA warning and cleanup
Add -ffile-prefix-map flags to KCFLAGS to remove build path
references from kernel module compilation, ensuring reproducible
builds and preventing absolute path leakage in binaries.
inherit module-base kernel-module-split for building kernel modules
move V=1 into EXTRA_OEMAKE and remove overriding do_compile()
This resolves buildpaths QA warnings during packaging.
Signed-off-by: Mahammed Sadik Shaik <s-sadik@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-extras')
| -rw-r--r-- | meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc b/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc index e8374201..33d1b69b 100644 --- a/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc +++ b/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc | |||
| @@ -47,7 +47,7 @@ B = "${S}" | |||
| 47 | 47 | ||
| 48 | DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native" | 48 | DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native" |
| 49 | 49 | ||
| 50 | inherit module python3native bash-completion deploy setuptools3 | 50 | inherit module-base kernel-module-split python3native bash-completion deploy |
| 51 | 51 | ||
| 52 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 52 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 53 | COMPATIBLE_MACHINE = "(ti-soc)" | 53 | COMPATIBLE_MACHINE = "(ti-soc)" |
| @@ -66,22 +66,28 @@ JH_SYSCONFIG_CELL:am62lxx ?= "k3-am62l3-evm.cell" | |||
| 66 | JH_SYSCONFIG_CELL:j7 ?= "k3-j721e-evm.cell" | 66 | JH_SYSCONFIG_CELL:j7 ?= "k3-j721e-evm.cell" |
| 67 | JH_SYSCONFIG_CELL:j7200-evm ?= "k3-j7200-evm.cell" | 67 | JH_SYSCONFIG_CELL:j7200-evm ?= "k3-j7200-evm.cell" |
| 68 | 68 | ||
| 69 | do_configure() { | 69 | EXTRA_OEMAKE = "\ |
| 70 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; | 70 | V=1 \ |
| 71 | then | 71 | ARCH=${JH_ARCH} \ |
| 72 | cp ${STAGING_DIR_HOST}/${CELLCONF_DIR}/*.c ${S}/configs/ | 72 | CROSS_COMPILE=${TARGET_PREFIX} \ |
| 73 | fi | 73 | CC="${CC}" \ |
| 74 | } | 74 | KDIR=${STAGING_KERNEL_BUILDDIR} \ |
| 75 | KCFLAGS='-ffile-prefix-map=${STAGING_KERNEL_BUILDDIR}/= \ | ||
| 76 | -ffile-prefix-map=${STAGING_KERNEL_DIR}/=' \ | ||
| 77 | " | ||
| 75 | 78 | ||
| 76 | USER_SPACE_CFLAGS = '${CFLAGS} -DLIBEXECDIR=\\\"${libexecdir}\\\" \ | 79 | USER_SPACE_CFLAGS = "\ |
| 77 | -DJAILHOUSE_VERSION=\\\"$JAILHOUSE_VERSION\\\" \ | 80 | ${CFLAGS} \ |
| 78 | -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \ | 81 | -DLIBEXECDIR=\\\"${libexecdir}\\\" \ |
| 79 | -I../driver' | 82 | -DJAILHOUSE_VERSION=\\\"$JAILHOUSE_VERSION\\\" \ |
| 83 | -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \ | ||
| 84 | -I../driver \ | ||
| 85 | " | ||
| 80 | 86 | ||
| 81 | TOOLS_SRC_DIR = "${S}/tools" | 87 | TOOLS_SRC_DIR = "${S}/tools" |
| 82 | 88 | ||
| 83 | EXTRA_OEMAKE = "ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" KDIR=${STAGING_KERNEL_BUILDDIR}" | 89 | do_configure() { |
| 84 | 90 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; then | |
| 85 | do_compile() { | 91 | cp ${STAGING_DIR_HOST}/${CELLCONF_DIR}/*.c ${S}/configs/ |
| 86 | oe_runmake V=1 | 92 | fi |
| 87 | } | 93 | } |
