pcp: use HOSTTOOLS_DIR variable instead of TMPDIR/hosttools

This is a bit cleaner, and means a few less places that would need
updating in case the TMPDIR bitbake variable gets renamed at some
point in the future:

https://lore.kernel.org/openembedded-core/6aba349f497903351a0cd8d06708e94119bd5d05.camel@pbarker.dev/

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Rasmus Villemoes 2026-03-24 13:55:18 +01:00 committed by Khem Raj
parent a835cf9a2a
commit 7880b21891
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ export PCP_BIN_DIR = "${D}/usr/bin"
B = "${S}"
do_configure:prepend() {
export SED=${TMPDIR}/hosttools/sed
export AR=${TMPDIR}/hosttools/ar
export SED=${HOSTTOOLS_DIR}/sed
export AR=${HOSTTOOLS_DIR}/ar
# export PYTHON=python3
rm -rf ${S}/include/pcp/configsz.h
@ -25,7 +25,7 @@ do_compile:prepend() {
-e "s,#undef PM_SIZEOF_TIME_T,,g" \
${S}/src/include/pcp/config.h.in
export AR=${TMPDIR}/hosttools/ar
export AR=${HOSTTOOLS_DIR}/ar
# export PYTHON=python3
}

View File

@ -61,7 +61,7 @@ do_configure:prepend () {
cp ${UNPACKDIR}/config.linux ${B}
rm -rf ${S}/include/pcp/configsz.h
rm -rf ${S}/include/pcp/platformsz.h
export SED=${TMPDIR}/hosttools/sed
export SED=${HOSTTOOLS_DIR}/sed
export PYTHON=python3
}