aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-07-21 20:29:27 +0100
committerKoen Kooi <koen.kooi@linaro.org>2017-03-17 09:44:50 +0100
commit2cfdad876c066d70a44d1102b98f471f3a2a035c (patch)
tree6f179d06562f782beda77c9ff7b68163a236a6c2
parentafe67c79acb9209c8e69457c7ab0dfb72409e5c1 (diff)
insane: only check ${S} exists if we had sources to fetch
Only check that ${S} actually exists if there was something in ${SRC_URI} to fetch, the argument being that if SRC_URI is empty the the recipe won't be using ${S} at all. In general recipes that have no sources can remove the unpack task, but expecting all recipes to do this relatively advanced operation isn't realistic. Change-Id: Ib39dadaf77a20a4e1bd9cc02718f3f88b4b118f1 Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta-ilp32/classes/insane.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta-ilp32/classes/insane.bbclass b/meta-ilp32/classes/insane.bbclass
index bd1b9c2c..866707c2 100644
--- a/meta-ilp32/classes/insane.bbclass
+++ b/meta-ilp32/classes/insane.bbclass
@@ -1259,10 +1259,9 @@ Missing inherit gettext?""" % (gt, config))
}
python do_qa_unpack() {
- bb.note("Checking has ${S} been created")
-
+ src_uri = d.getVar('SRC_URI', True)
s_dir = d.getVar('S', True)
- if not os.path.exists(s_dir):
+ if src_uri and not os.path.exists(s_dir):
bb.warn('%s: the directory %s (%s) pointed to by the S variable doesn\'t exist - please set S within the recipe to point to where the source has been unpacked to' % (d.getVar('PN', True), d.getVar('S', False), s_dir))
}