summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-29 11:19:22 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-29 12:12:26 +0100
commit97dec8410b071660937fa1f30827a2926c21cca2 (patch)
treee5a6b134ce025bebed4dc32f32fbd11dcd3f8e25 /meta
parentdd28a9c516017cf34c88d491875a61dfaf502d4c (diff)
downloadpoky-97dec8410b071660937fa1f30827a2926c21cca2.tar.gz
sstate.bbclass: Update to use SSTATE variables everywhere and remove the now unneeded complicated paths from the sstate files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass7
-rw-r--r--meta/classes/sstate.bbclass20
-rw-r--r--meta/conf/abi_version.conf2
-rw-r--r--meta/conf/bitbake.conf2
-rw-r--r--meta/conf/local.conf.sample6
5 files changed, 19 insertions, 18 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 15faa7e431..ef1020b215 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -189,8 +189,13 @@ def check_sanity(e):
189 189
190 f = file(abifile, "w") 190 f = file(abifile, "w")
191 f.write(current_abi) 191 f.write(current_abi)
192 elif abi == "5" and current_abi != "5": 192 elif abi == "4":
193 messages = messages + "Staging layout has changed. The cross directory has been deprecated and cross packages are now built under the native sysroot.\nThis requires a rebuild.\n" 193 messages = messages + "Staging layout has changed. The cross directory has been deprecated and cross packages are now built under the native sysroot.\nThis requires a rebuild.\n"
194 elif abi == "5" and current_abi == "6":
195 bb.note("Converting staging layout from version 5 to layout version 6")
196 os.system(bb.data.expand("mv ${TMPDIR}/pstagelogs ${TMPDIR}/sstate-control", e.data))
197 f = file(abifile, "w")
198 f.write(current_abi)
194 elif (abi != current_abi): 199 elif (abi != current_abi):
195 # Code to convert from one ABI to another could go here if possible. 200 # Code to convert from one ABI to another could go here if possible.
196 messages = messages + "Error, TMPDIR has changed ABI (%s to %s) and you need to either rebuild, revert or adjust it at your own risk.\n" % (abi, current_abi) 201 messages = messages + "Error, TMPDIR has changed ABI (%s to %s) and you need to either rebuild, revert or adjust it at your own risk.\n" % (abi, current_abi)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d4e9965369..d405aaa752 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1,15 +1,11 @@
1SSTATE_MANIFESTS = "${TMPDIR}/pstagelogs" 1SSTATE_VERSION = "1"
2SSTATE_MANFILEPREFIX = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-${PN}"
3 2
3SSTATE_MANIFESTS = "${TMPDIR}/sstate-control"
4SSTATE_MANFILEPREFIX = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-${PN}"
4 5
5SSTATE_PKGARCH = "${BASE_PACKAGE_ARCH}" 6SSTATE_PKGARCH = "${BASE_PACKAGE_ARCH}"
6SSTATE_PKGVERSION = "${PV}-${PR}" 7SSTATE_PKGNAME = "sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}"
7SSTATE_PKGPN = "${@bb.data.expand('staging-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}', d).replace('_', '-')}" 8SSTATE_PKG = "${SSTATE_DIR}/${SSTATE_PKGNAME}"
8
9SSTATE_PKGNAME = "${SSTATE_PKGPN}_${SSTATE_PKGVERSION}_${SSTATE_PKGARCH}"
10SSTATE_EXTRAPATH ?= ""
11SSTATE_PKGPATH = "${DISTRO}/${OELAYOUT_ABI}${SSTATE_EXTRAPATH}"
12SSTATE_PKG = "${PSTAGE_DIR}2/${SSTATE_PKGPATH}/${SSTATE_PKGNAME}"
13 9
14SSTATE_SCAN_CMD ?= "find ${SSTATE_BUILDDIR} \( -name "*.la" -o -name "*-config" \) -type f" 10SSTATE_SCAN_CMD ?= "find ${SSTATE_BUILDDIR} \( -name "*.la" -o -name "*-config" \) -type f"
15 11
@@ -249,11 +245,11 @@ def pstaging_fetch(sstatepkg, d):
249 import bb.fetch 245 import bb.fetch
250 246
251 # only try and fetch if the user has configured a mirror 247 # only try and fetch if the user has configured a mirror
252 if bb.data.getVar('PSTAGE_MIRROR', d) != "": 248 if bb.data.getVar('SSTATE_MIRROR', d) != "":
253 # Copy the data object and override DL_DIR and SRC_URI 249 # Copy the data object and override DL_DIR and SRC_URI
254 pd = d.createCopy() 250 pd = d.createCopy()
255 dldir = bb.data.expand("${PSTAGE_DIR}/${SSTATE_PKGPATH}", pd) 251 dldir = bb.data.expand("${SSTATE_DIR}", pd)
256 mirror = bb.data.expand("${PSTAGE_MIRROR}/${SSTATE_PKGPATH}/", pd) 252 mirror = bb.data.expand("${SSTATE_MIRROR}/", pd)
257 srcuri = mirror + os.path.basename(sstatepkg) 253 srcuri = mirror + os.path.basename(sstatepkg)
258 bb.data.setVar('DL_DIR', dldir, pd) 254 bb.data.setVar('DL_DIR', dldir, pd)
259 bb.data.setVar('SRC_URI', srcuri, pd) 255 bb.data.setVar('SRC_URI', srcuri, pd)
diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
index e679aaa9c3..3920766a47 100644
--- a/meta/conf/abi_version.conf
+++ b/meta/conf/abi_version.conf
@@ -4,4 +4,4 @@
4# that breaks the format and have been previously discussed on the mailing list 4# that breaks the format and have been previously discussed on the mailing list
5# with general agreement from the core team. 5# with general agreement from the core team.
6# 6#
7OELAYOUT_ABI = "5" 7OELAYOUT_ABI = "6"
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e2c160685c..c2a2119678 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -650,7 +650,7 @@ require conf/abi_version.conf
650################################################################## 650##################################################################
651 651
652DL_DIR ?= "${TOPDIR}/downloads" 652DL_DIR ?= "${TOPDIR}/downloads"
653PSTAGE_DIR ?= "${TOPDIR}/pstage" 653SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
654IMAGE_FSTYPES ?= "tar.gz" 654IMAGE_FSTYPES ?= "tar.gz"
655PCMCIA_MANAGER ?= "pcmcia-cs" 655PCMCIA_MANAGER ?= "pcmcia-cs"
656DEFAULT_TASK_PROVIDER ?= "task-base" 656DEFAULT_TASK_PROVIDER ?= "task-base"
diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
index 8ccdd138cb..fa5e3f183f 100644
--- a/meta/conf/local.conf.sample
+++ b/meta/conf/local.conf.sample
@@ -5,8 +5,8 @@ CONF_VERSION = "1"
5# location, default it ${TOPDIR}/downloads 5# location, default it ${TOPDIR}/downloads
6#DL_DIR ?= "${TOPDIR}/downloads" 6#DL_DIR ?= "${TOPDIR}/downloads"
7# Uncomment and change to cache Poky's built staging output in an alternative 7# Uncomment and change to cache Poky's built staging output in an alternative
8# location, default ${TOPDIR}/pstage 8# location, default ${TOPDIR}/sstate-cache
9#PSTAGE_DIR ?= "${TOPDIR}/pstage" 9#SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
10 10
11# Uncomment and set to allow bitbake to execute multiple tasks at once. 11# Uncomment and set to allow bitbake to execute multiple tasks at once.
12# For a quadcore, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would 12# For a quadcore, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
@@ -142,7 +142,7 @@ ENABLE_BINARY_LOCALE_GENERATION = "1"
142 142
143# Poky can try and fetch packaged-staging packages from a http, https or ftp 143# Poky can try and fetch packaged-staging packages from a http, https or ftp
144# mirror. Set this variable to the root of a pstage directory on a server. 144# mirror. Set this variable to the root of a pstage directory on a server.
145#PSTAGE_MIRROR ?= "http://someserver.tld/share/pstage" 145#SSTATE_MIRROR ?= "http://someserver.tld/share/pstage"
146 146
147# Set IMAGETEST to qemu if you want to build testcases and start 147# Set IMAGETEST to qemu if you want to build testcases and start
148# testing in qemu after do_rootfs. 148# testing in qemu after do_rootfs.