summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/recipe_sanity.bbclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass
index c3bd0d2a4c..bf378eafc1 100644
--- a/meta/classes/recipe_sanity.bbclass
+++ b/meta/classes/recipe_sanity.bbclass
@@ -13,7 +13,7 @@ def bad_runtime_vars(cfgdata, d):
13 __note("%s should be %s_${PN}" % (var, var), d) 13 __note("%s should be %s_${PN}" % (var, var), d)
14 14
15__recipe_sanity_reqvars = "DESCRIPTION" 15__recipe_sanity_reqvars = "DESCRIPTION"
16__recipe_sanity_reqdiffvars = "LICENSE" 16__recipe_sanity_reqdiffvars = ""
17def req_vars(cfgdata, d): 17def req_vars(cfgdata, d):
18 for var in d.getVar("__recipe_sanity_reqvars", True).split(): 18 for var in d.getVar("__recipe_sanity_reqvars", True).split():
19 if not d.getVar(var, 0): 19 if not d.getVar(var, 0):
@@ -23,11 +23,6 @@ def req_vars(cfgdata, d):
23 val = d.getVar(var, 0) 23 val = d.getVar(var, 0)
24 cfgval = cfgdata.get(var) 24 cfgval = cfgdata.get(var)
25 25
26 # Hardcoding is bad, but I'm lazy. We don't care about license being
27 # unset if the recipe has no sources!
28 if var == "LICENSE" and d.getVar("SRC_URI", True) == cfgdata.get("SRC_URI"):
29 continue
30
31 if not val: 26 if not val:
32 __note("%s should be set" % var, d) 27 __note("%s should be set" % var, d)
33 elif val == cfgval: 28 elif val == cfgval:
@@ -93,7 +88,7 @@ def can_remove_FILESDIR(cfgdata, d):
93 expanded == d.expand(expected)) 88 expanded == d.expand(expected))
94 89
95def can_remove_others(p, cfgdata, d): 90def can_remove_others(p, cfgdata, d):
96 for k in ["S", "PV", "PN", "DESCRIPTION", "LICENSE", "DEPENDS", 91 for k in ["S", "PV", "PN", "DESCRIPTION", "DEPENDS",
97 "SECTION", "PACKAGES", "EXTRA_OECONF", "EXTRA_OEMAKE"]: 92 "SECTION", "PACKAGES", "EXTRA_OECONF", "EXTRA_OEMAKE"]:
98 #for k in cfgdata: 93 #for k in cfgdata:
99 unexpanded = d.getVar(k, 0) 94 unexpanded = d.getVar(k, 0)