mirror of
https://github.com/cahirwpz/amigaos-cross-toolchain
synced 2025-11-23 20:21:21 +00:00
Some minor fixes wrt. Cygwin.
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Build development cross toolchain for m68k-elf target.
|
# Build development cross toolchain for m68k-elf target.
|
||||||
|
|
||||||
|
from fnmatch import fnmatch
|
||||||
from os import environ
|
from os import environ
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
@ -128,12 +129,8 @@ def clean():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
if not sys.version_info[:2] == (2, 7):
|
||||||
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
panic('I need Python 2.7 to run!')
|
||||||
help='perform action')
|
|
||||||
parser.add_argument('--prefix', type=str, default=None,
|
|
||||||
help='installation directory')
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
if not (platform.system() in ['Darwin', 'Linux'] or
|
if not (platform.system() in ['Darwin', 'Linux'] or
|
||||||
fnmatch(platform.system(), 'CYGWIN*')):
|
fnmatch(platform.system(), 'CYGWIN*')):
|
||||||
@ -142,6 +139,13 @@ if __name__ == "__main__":
|
|||||||
if platform.machine() not in ['i686', 'x86_64']:
|
if platform.machine() not in ['i686', 'x86_64']:
|
||||||
panic('Build on %s architecture not supported!', platform.machine())
|
panic('Build on %s architecture not supported!', platform.machine())
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
||||||
|
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
||||||
|
help='perform action')
|
||||||
|
parser.add_argument('--prefix', type=str, default=None,
|
||||||
|
help='installation directory')
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
setvar(top=path.abspath('.'))
|
setvar(top=path.abspath('.'))
|
||||||
|
|
||||||
setvar(gmp='gmp-5.1.3',
|
setvar(gmp='gmp-5.1.3',
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Build cross toolchain for AmigaOS <= 3.9 / M68k target.
|
# Build cross toolchain for AmigaOS <= 3.9 / M68k target.
|
||||||
|
|
||||||
|
from fnmatch import fnmatch
|
||||||
from logging import info
|
from logging import info
|
||||||
from os import environ
|
from os import environ
|
||||||
import argparse
|
import argparse
|
||||||
@ -200,7 +201,6 @@ def make():
|
|||||||
find_executable('patch')
|
find_executable('patch')
|
||||||
find_executable('make')
|
find_executable('make')
|
||||||
find_executable('git')
|
find_executable('git')
|
||||||
find_executable('svn')
|
|
||||||
|
|
||||||
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
||||||
path.join('{host}', 'bin'),
|
path.join('{host}', 'bin'),
|
||||||
@ -372,6 +372,16 @@ def clean():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
||||||
|
|
||||||
|
if not sys.version_info[:2] == (2, 7):
|
||||||
|
panic('I need Python 2.7 to run!')
|
||||||
|
|
||||||
|
if not (platform.system() in ['Darwin', 'Linux'] or
|
||||||
|
fnmatch(platform.system(), 'CYGWIN*')):
|
||||||
|
panic('Build on %s not supported!', platform.system())
|
||||||
|
|
||||||
|
if platform.machine() not in ['i686', 'x86_64']:
|
||||||
|
panic('Build on %s architecture not supported!', platform.machine())
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
||||||
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
||||||
help='perform action')
|
help='perform action')
|
||||||
@ -383,13 +393,6 @@ if __name__ == "__main__":
|
|||||||
help='installation directory')
|
help='installation directory')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not (platform.system() in ['Darwin', 'Linux'] or
|
|
||||||
fnmatch(platform.system(), 'CYGWIN*')):
|
|
||||||
panic('Build on %s not supported!', platform.system())
|
|
||||||
|
|
||||||
if platform.machine() not in ['i686', 'x86_64']:
|
|
||||||
panic('Build on %s architecture not supported!', platform.machine())
|
|
||||||
|
|
||||||
setvar(top=path.abspath(path.dirname(sys.argv[0])),
|
setvar(top=path.abspath(path.dirname(sys.argv[0])),
|
||||||
binutils_ver=args.binutils,
|
binutils_ver=args.binutils,
|
||||||
gcc_ver=args.gcc)
|
gcc_ver=args.gcc)
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Build cross toolchain for AmigaOS 4.x / PowerPC target.
|
# Build cross toolchain for AmigaOS 4.x / PowerPC target.
|
||||||
|
|
||||||
|
from fnmatch import fnmatch
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from logging import info
|
from logging import info
|
||||||
from os import environ
|
from os import environ
|
||||||
@ -74,7 +75,6 @@ def make():
|
|||||||
find_executable('bison')
|
find_executable('bison')
|
||||||
find_executable('flex')
|
find_executable('flex')
|
||||||
find_executable('make')
|
find_executable('make')
|
||||||
find_executable('git')
|
|
||||||
find_executable('svn')
|
find_executable('svn')
|
||||||
|
|
||||||
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
||||||
@ -196,6 +196,16 @@ def clean():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
|
||||||
|
|
||||||
|
if not sys.version_info[:2] == (2, 7):
|
||||||
|
panic('I need Python 2.7 to run!')
|
||||||
|
|
||||||
|
if not (platform.system() in ['Darwin', 'Linux'] or
|
||||||
|
fnmatch(platform.system(), 'CYGWIN*')):
|
||||||
|
panic('Build on %s not supported!', platform.system())
|
||||||
|
|
||||||
|
if platform.machine() not in ['i686', 'x86_64']:
|
||||||
|
panic('Build on %s architecture not supported!', platform.machine())
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
parser = argparse.ArgumentParser(description='Build cross toolchain.')
|
||||||
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
parser.add_argument('action', choices=['make', 'clean'], default='make',
|
||||||
help='perform action')
|
help='perform action')
|
||||||
@ -207,13 +217,6 @@ if __name__ == "__main__":
|
|||||||
help='installation directory')
|
help='installation directory')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not (platform.system() in ['Darwin', 'Linux'] or
|
|
||||||
fnmatch(platform.system(), 'CYGWIN*')):
|
|
||||||
panic('Build on %s not supported!', platform.system())
|
|
||||||
|
|
||||||
if platform.machine() not in ['i686', 'x86_64']:
|
|
||||||
panic('Build on %s architecture not supported!', platform.machine())
|
|
||||||
|
|
||||||
setvar(top=path.abspath('.'),
|
setvar(top=path.abspath('.'),
|
||||||
binutils_ver=args.binutils,
|
binutils_ver=args.binutils,
|
||||||
gcc_ver=args.gcc)
|
gcc_ver=args.gcc)
|
||||||
|
|||||||
Reference in New Issue
Block a user