diff options
| -rw-r--r-- | meta/classes/base.bbclass | 3 | ||||
| -rw-r--r-- | meta/classes/insane.bbclass | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index fe803f1836..e5417897d0 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -152,9 +152,6 @@ python base_do_unpack() { | |||
| 152 | fetcher.unpack(rootdir) | 152 | fetcher.unpack(rootdir) |
| 153 | except bb.fetch2.BBFetchException as e: | 153 | except bb.fetch2.BBFetchException as e: |
| 154 | raise bb.build.FuncFailed(e) | 154 | raise bb.build.FuncFailed(e) |
| 155 | |||
| 156 | if not os.path.exists(s_dir): | ||
| 157 | 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)) | ||
| 158 | } | 155 | } |
| 159 | 156 | ||
| 160 | def pkgarch_mapping(d): | 157 | def pkgarch_mapping(d): |
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 4537eec891..fc3d5fffde 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
| @@ -1140,6 +1140,15 @@ Missing inherit gettext?""" % (gt, config)) | |||
| 1140 | except subprocess.CalledProcessError: | 1140 | except subprocess.CalledProcessError: |
| 1141 | pass | 1141 | pass |
| 1142 | } | 1142 | } |
| 1143 | |||
| 1144 | python do_qa_unpack() { | ||
| 1145 | bb.note("Checking has ${S} been created") | ||
| 1146 | |||
| 1147 | s_dir = d.getVar('S', True) | ||
| 1148 | if not os.path.exists(s_dir): | ||
| 1149 | 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)) | ||
| 1150 | } | ||
| 1151 | |||
| 1143 | # The Staging Func, to check all staging | 1152 | # The Staging Func, to check all staging |
| 1144 | #addtask qa_staging after do_populate_sysroot before do_build | 1153 | #addtask qa_staging after do_populate_sysroot before do_build |
| 1145 | do_populate_sysroot[postfuncs] += "do_qa_staging " | 1154 | do_populate_sysroot[postfuncs] += "do_qa_staging " |
| @@ -1149,6 +1158,9 @@ do_populate_sysroot[postfuncs] += "do_qa_staging " | |||
| 1149 | #addtask qa_configure after do_configure before do_compile | 1158 | #addtask qa_configure after do_configure before do_compile |
| 1150 | do_configure[postfuncs] += "do_qa_configure " | 1159 | do_configure[postfuncs] += "do_qa_configure " |
| 1151 | 1160 | ||
| 1161 | # Check does S exist. | ||
| 1162 | do_unpack[postfuncs] += "do_qa_unpack" | ||
| 1163 | |||
| 1152 | python () { | 1164 | python () { |
| 1153 | tests = d.getVar('ALL_QA', True).split() | 1165 | tests = d.getVar('ALL_QA', True).split() |
| 1154 | if "desktop" in tests: | 1166 | if "desktop" in tests: |
