build-baremetal and build-crosstool-ng: make -A work, move arch check to common

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent d79771aa21
commit 4d5ae213e0
3 changed files with 31 additions and 27 deletions

View File

@@ -10,10 +10,11 @@ class Main(common.BuildCliFunction):
super().__init__(
description='''\
Build crosstool-NG with Newlib for bare metal compilation
''')
''',
supported_archs=common.consts['crosstool_ng_supported_archs']
)
def build(self):
self.assert_crosstool_ng_supports_arch(self.env['arch'])
build_dir = self.get_build_dir()
defconfig_dest = os.path.join(self.env['crosstool_ng_util_dir'], 'defconfig')
os.makedirs(self.env['crosstool_ng_util_dir'], exist_ok=True)