From 7c1b438d4012ee43c5378b8b73a30e557aa60075 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 20 Feb 2009 17:23:36 +0100 Subject: base.bbclass, bitbake.conf: add support for BP/BPN variables (backported from trunk) commit 94c895aad5ad286f172b04bc33ba670220d5eba8 Author: Richard Purdie 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 --- meta/conf/bitbake.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meta/conf/bitbake.conf') diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index c8f4b8dfe2..dc3352bf54 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -135,6 +135,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" @@ -217,7 +224,7 @@ STAMP = "${TMPDIR}/stamps/${PF}" WORKDIR = "${TMPDIR}/work/${PF}" T = "${WORKDIR}/temp" D = "${WORKDIR}/image" -S = "${WORKDIR}/${P}" +S = "${WORKDIR}/${BP}" B = "${S}" STAGING_DIR = "${TMPDIR}/staging" -- cgit v1.2.3-54-g00ecf