summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index d51e73eaf4..9f3065fdc7 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1000,9 +1000,8 @@ def package_qa_check_expanded_d(path,name,d,elf,messages):
1000 for pak in packages: 1000 for pak in packages:
1001 # Go through all variables and check if expanded D is found, warn the user accordingly 1001 # Go through all variables and check if expanded D is found, warn the user accordingly
1002 for var in 'FILES','pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm': 1002 for var in 'FILES','pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
1003 bbvar = d.getVar(var + "_" + pak, False) 1003 bbvar = d.getVar(var + "_" + pak, True)
1004 if bbvar: 1004 if bbvar:
1005 # Bitbake expands ${D} within bbvar during the previous step, so we check for its expanded value
1006 if expanded_d in bbvar: 1005 if expanded_d in bbvar:
1007 if var == 'FILES': 1006 if var == 'FILES':
1008 package_qa_add_message(messages, "expanded-d", "FILES in %s recipe should not contain the ${D} variable as it references the local build directory not the target filesystem, best solution is to remove the ${D} reference" % pak) 1007 package_qa_add_message(messages, "expanded-d", "FILES in %s recipe should not contain the ${D} variable as it references the local build directory not the target filesystem, best solution is to remove the ${D} reference" % pak)