summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-11-06 15:32:47 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-11-09 09:57:54 +0100
commitd2de36ecdd59686d1ecca3d1d9096412665e5010 (patch)
treec8c59a657bb25cafbfc73a92bcc563029f29283a /recipes-bsp
parentc7319728813a89df24066e6c0817dcc56c413fb4 (diff)
downloadmeta-phytec-d2de36ecdd59686d1ecca3d1d9096412665e5010.tar.bz2
meta-phytec-d2de36ecdd59686d1ecca3d1d9096412665e5010.zip
sgx: Use tune_features_check class
This affects all recipes dealing with the sgx binary blobs. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb16
1 files changed, 3 insertions, 13 deletions
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb
index 79a0286..a13a1e1 100644
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb
+++ b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb
@@ -8,7 +8,9 @@ require ../../recipes-ti/includes/ti-eula-unpack.inc
SGXPV = "5_01_01_02"
IMGPV = "1.10.2359475"
-inherit module
+inherit module tune_features_check
+
+REQUIRED_TUNE_FEATURES = "armv7a callconvention-hard"
MACHINE_KERNEL_PR_append = "b"
PR = "${MACHINE_KERNEL_PR}"
@@ -18,18 +20,6 @@ BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
MD5SUM_HARDFP = "94bcb31ea7eb50df1dfa4037055b638e"
SHA256SUM_HARDFP = "54641222cdb49b03f996cbd6412de227198d9e084f5647d706bbf4217e8cdb07"
-# For now we only have hardfp version
-python __anonymous() {
- tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
- if not tunes:
- return
- pkgn = bb.data.getVar("PN", d, 1)
- pkgv = bb.data.getVar("PV", d, 1)
- if "callconvention-hard" not in tunes:
- bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
- raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
-}
-
BINFILE := "${BINFILE_HARDFP}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"