summaryrefslogtreecommitdiff
path: root/recipes-toolchain
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-03-11 16:39:54 +1100
committerMatthew Waters <matthew@centricular.com>2020-03-25 12:40:58 +1100
commit4ddfdf2157d8ef49fb8f6272063cca706624dbcc (patch)
tree5bedf39973f1d2e9eecbc578ba6bde8c4a70d2c2 /recipes-toolchain
parent8ccf80cf82b97ad9a2e45b15a9fbd1a57aca3dcd (diff)
replace some usage of shell.call with shell.new_call
Diffstat (limited to 'recipes-toolchain')
-rw-r--r--recipes-toolchain/binutils.recipe4
-rw-r--r--recipes-toolchain/mingw-w64-headers.recipe3
-rw-r--r--recipes-toolchain/mpc.recipe6
3 files changed, 6 insertions, 7 deletions
diff --git a/recipes-toolchain/binutils.recipe b/recipes-toolchain/binutils.recipe
index 4484904a..2a3e047d 100644
--- a/recipes-toolchain/binutils.recipe
+++ b/recipes-toolchain/binutils.recipe
@@ -68,7 +68,7 @@ class Recipe(recipe.Recipe):
async def configure(self):
for d in ['bfd', 'opcodes', 'gas', 'binutils', 'gprof', 'ld']:
- shell.call('autoreconf -ivf', os.path.join(self.build_dir, d))
+ shell.new_call(['autoreconf', '-ivf'], os.path.join(self.build_dir, d))
await super().configure()
def post_install(self):
@@ -83,5 +83,5 @@ class Recipe(recipe.Recipe):
strings = os.path.join(bindir, 'strings')
if os.path.exists(strings):
os.remove(strings)
- shell.call('ln -s %s-strings strings' % self.target, bindir)
+ shell.symlink('%s-strings' % self.target, 'strings', bindir)
super().post_install()
diff --git a/recipes-toolchain/mingw-w64-headers.recipe b/recipes-toolchain/mingw-w64-headers.recipe
index c3906853..a80904ad 100644
--- a/recipes-toolchain/mingw-w64-headers.recipe
+++ b/recipes-toolchain/mingw-w64-headers.recipe
@@ -25,6 +25,5 @@ class Recipe(recipe.Recipe):
def post_install(self):
if not os.path.exists(os.path.join(self._sysroot, 'mingw')):
- shell.call('ln -s usr/%(host)s mingw' \
- % {'host': self.host}, self._sysroot)
+ shell.symlink('usr/%(host)s' % {'host': self.host}, 'mingw', self._sysroot)
super().post_install()
diff --git a/recipes-toolchain/mpc.recipe b/recipes-toolchain/mpc.recipe
index 3cabc488..f47b2e03 100644
--- a/recipes-toolchain/mpc.recipe
+++ b/recipes-toolchain/mpc.recipe
@@ -11,7 +11,7 @@ class Recipe(recipe.Recipe):
deps = ['mpfr']
async def configure(self):
- shell.call('chmod +w config.guess', self.build_dir)
- shell.call('chmod +w config.sub', self.build_dir)
- shell.call('chmod +w ltmain.sh', self.build_dir)
+ shell.new_call(['chmod', '+w', 'config.guess'], self.build_dir)
+ shell.new_call(['chmod', '+w', 'config.sub'], self.build_dir)
+ shell.new_call(['chmod', '+w', 'ltmain.sh'], self.build_dir)
await super(Recipe, self).configure()