aboutsummaryrefslogtreecommitdiffstats
path: root/classes/packagedata.bbclass
blob: bf051feea80c89f08420a541a5706d1d39ea84b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
python read_subpackage_metadata () {
	import oe.packagedata

	data = oe.packagedata.read_pkgdata(bb.data.getVar('PN', d, 1), d)

	for key in data.keys():
		bb.data.setVar(key, data[key], d)

	for pkg in bb.data.getVar('PACKAGES', d, 1).split():
		sdata = oe.packagedata.read_subpkgdata(pkg, d)
		for key in sdata.keys():
			bb.data.setVar(key, sdata[key], d)
}
enssh-upgrade-to-7.4p1'>dengke/openssh-upgrade-to-7.4p1 OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/contrib/bbdev.sh
blob: 33a78531e1ac31a8fae3da25b553ff9490888a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is a shell function to be sourced into your shell or placed in your .profile,
# which makes setting things up for BitBake a bit easier.
#
# The author disclaims copyright to the contents of this file and places it in the
# public domain.

bbdev () {
	local BBDIR PKGDIR BUILDDIR
	if test x"$1" = "x--help"; then echo >&2 "syntax: bbdev [bbdir [pkgdir [builddir]]]"; return 1; fi
	if test x"$1" = x; then BBDIR=`pwd`; else BBDIR=$1; fi
	if test x"$2" = x; then PKGDIR=`pwd`; else PKGDIR=$2; fi
	if test x"$3" = x; then BUILDDIR=`pwd`; else BUILDDIR=$3; fi

	BBDIR=`readlink -f $BBDIR`
	PKGDIR=`readlink -f $PKGDIR`
	BUILDDIR=`readlink -f $BUILDDIR`
	if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
		echo >&2 "syntax: bbdev [bbdir [pkgdir [builddir]]]"
		return 1
	fi
	
	PATH=$BBDIR/bin:$PATH
	BBPATH=$BBDIR
	if test x"$BBDIR" != x"$PKGDIR"; then
		BBPATH=$PKGDIR:$BBPATH
	fi
	if test x"$PKGDIR" != x"$BUILDDIR"; then
		BBPATH=$BUILDDIR:$BBPATH
	fi
	export BBPATH
}