summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index ad2618963d..1899a0dcd8 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -359,7 +359,7 @@ def create_recipe(args):
359 if args.binary: 359 if args.binary:
360 # Assume the archive contains the directory structure verbatim 360 # Assume the archive contains the directory structure verbatim
361 # so we need to extract to a subdirectory 361 # so we need to extract to a subdirectory
362 fetchuri += ';subdir=%s' % os.path.splitext(os.path.basename(urlparse.urlsplit(fetchuri).path))[0] 362 fetchuri += ';subdir=${BP}'
363 srcuri = fetchuri 363 srcuri = fetchuri
364 rev_re = re.compile(';rev=([^;]+)') 364 rev_re = re.compile(';rev=([^;]+)')
365 res = rev_re.search(srcuri) 365 res = rev_re.search(srcuri)
@@ -566,7 +566,9 @@ def create_recipe(args):
566 lines_before.append('SRCREV = "%s"' % srcrev) 566 lines_before.append('SRCREV = "%s"' % srcrev)
567 lines_before.append('') 567 lines_before.append('')
568 568
569 if srcsubdir: 569 if srcsubdir and not args.binary:
570 # (for binary packages we explicitly specify subdir= when fetching to
571 # match the default value of S, so we don't need to set it in that case)
570 lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir) 572 lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir)
571 lines_before.append('') 573 lines_before.append('')
572 574