mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 03:47:03 +00:00
base.bbclass, bitbake.conf: add support for BP/BPN variables (backported from trunk)
commit 94c895aad5
Author: Richard Purdie <rpurdie@linux.intel.com>
Date: Fri Jan 2 10:15:45 2009 +0000
bitbake.conf: Create BPN variable containing the pruned version of
PN with various suffixes removed and use this for S and FILESPATH.
This uses naming from OE but with improved code
This commit is contained in:
@@ -144,6 +144,13 @@ EXTENDPEVER = "${@['','${PE\x7d:'][bb.data.getVar('PE',d,1) > 0]}"
|
||||
DEBPV = "${EXTENDPEVER}${PV}-${PR}"
|
||||
P = "${PN}-${PV}"
|
||||
|
||||
# Base package name
|
||||
# Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial"
|
||||
# otherwise it is the same as PN and P
|
||||
SPECIAL_PKGSUFFIX = "-native -cross-sdk -cross -sdk -initial -intermediate"
|
||||
BPN = "${@base_prune_suffix(bb.data.getVar('PN', d, True), bb.data.getVar('SPECIAL_PKGSUFFIX', d, True).split(), d)}"
|
||||
BP = "${BPN}-${PV}"
|
||||
|
||||
# Package info.
|
||||
|
||||
SECTION = "base"
|
||||
@@ -232,7 +239,7 @@ STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PF}"
|
||||
WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PF}"
|
||||
T = "${WORKDIR}/temp"
|
||||
D = "${WORKDIR}/image"
|
||||
S = "${WORKDIR}/${P}"
|
||||
S = "${WORKDIR}/${BP}"
|
||||
B = "${S}"
|
||||
|
||||
STAGING_DIR = "${TMPDIR}/staging"
|
||||
|
||||
Reference in New Issue
Block a user