summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 09:33:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 09:33:39 +0100
commit760ab75be6b794fdcd0b1717439fcea605db9e0b (patch)
treec82820801553a75ea5fa52040f4ebce5a0f7c8d0
parent3b7111b30dbd9a4cdd141b594164da18c15ae970 (diff)
downloadopenembedded-core-760ab75be6b794fdcd0b1717439fcea605db9e0b.tar.gz
openembedded-core-760ab75be6b794fdcd0b1717439fcea605db9e0b.tar.bz2
openembedded-core-760ab75be6b794fdcd0b1717439fcea605db9e0b.zip
recipe_sanity: Drop now unused FILESDIR
FILESDIR is long dead and unreferenced pretty much anywhere now, drop these sanity references too. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/recipe_sanity.bbclass17
1 files changed, 0 insertions, 17 deletions
diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass
index 3b00b0e521..7fa4a849ea 100644
--- a/meta/classes/recipe_sanity.bbclass
+++ b/meta/classes/recipe_sanity.bbclass
@@ -70,22 +70,6 @@ def can_delete_FILESPATH(cfgdata, d):
return False
return expected != unexpanded
-def can_delete_FILESDIR(cfgdata, d):
- expected = cfgdata.get("FILESDIR")
- #expected = "${@bb.utils.which(d.getVar('FILESPATH'), '.')}"
- unexpanded = d.getVar("FILESDIR", False)
- if unexpanded is None:
- return False
-
- expanded = os.path.normpath(d.getVar("FILESDIR"))
- filespath = d.getVar("FILESPATH").split(":")
- filespath = [os.path.normpath(f) for f in filespath if os.path.exists(f)]
-
- return unexpanded != expected and \
- os.path.exists(expanded) and \
- (expanded in filespath or
- expanded == d.expand(expected))
-
def can_delete_others(p, cfgdata, d):
for k in ["S", "PV", "PN", "DESCRIPTION", "DEPENDS",
"SECTION", "PACKAGES", "EXTRA_OECONF", "EXTRA_OEMAKE"]:
@@ -112,7 +96,6 @@ python do_recipe_sanity () {
p = "%s %s %s" % (d.getVar("PN"), d.getVar("PV"), d.getVar("PR"))
sanitychecks = [
- (can_delete_FILESDIR, "candidate for removal of FILESDIR"),
(can_delete_FILESPATH, "candidate for removal of FILESPATH"),
#(can_use_autotools_base, "candidate for use of autotools_base"),
(incorrect_nonempty_PACKAGES, "native or cross recipe with non-empty PACKAGES"),