mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Add continuous integration with Travis-CI.
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get -qq update
|
||||||
|
- sudo apt-get install -y gperf gcc-multilib
|
||||||
|
script: ./toolchain-m68k --quiet build
|
||||||
+14
-5
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
from fnmatch import fnmatch
|
from fnmatch import fnmatch
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from logging import info
|
from logging import info, getLogger
|
||||||
from os import environ
|
from os import environ
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
@@ -47,7 +47,6 @@ MULTILIB = [('', []),
|
|||||||
['-fbaserel', '-DSMALL_DATA', '-m68020', '-m68881']),
|
['-fbaserel', '-DSMALL_DATA', '-m68020', '-m68881']),
|
||||||
('libb32/libm020', ['-fbaserel32', '-DSMALL_DATA', '-m68020'])]
|
('libb32/libm020', ['-fbaserel32', '-DSMALL_DATA', '-m68020'])]
|
||||||
|
|
||||||
|
|
||||||
from common import * # NOQA
|
from common import * # NOQA
|
||||||
|
|
||||||
|
|
||||||
@@ -259,6 +258,12 @@ def build():
|
|||||||
|
|
||||||
CC = find_executable(CC)
|
CC = find_executable(CC)
|
||||||
CXX = find_executable(CXX)
|
CXX = find_executable(CXX)
|
||||||
|
FLAGS = '-g -O2'
|
||||||
|
|
||||||
|
if getLogger().isEnabledFor(logging.DEBUG):
|
||||||
|
FLAGS += ' -Wall'
|
||||||
|
else:
|
||||||
|
FLAGS += ' -w'
|
||||||
|
|
||||||
environ['CC'] = CC
|
environ['CC'] = CC
|
||||||
environ['CXX'] = CXX
|
environ['CXX'] = CXX
|
||||||
@@ -375,7 +380,7 @@ def build():
|
|||||||
config.guess script knows nothing about x86-64 or darwin.
|
config.guess script knows nothing about x86-64 or darwin.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with env(CC=CC, CXX=CXX, CFLAGS='-g -O2 -Wall', CXXFLAGS='-g -O2 -Wall'):
|
with env(CC=CC, CXX=CXX, CFLAGS=FLAGS, CXXFLAGS=FLAGS):
|
||||||
configure('{binutils}',
|
configure('{binutils}',
|
||||||
'--prefix={prefix}',
|
'--prefix={prefix}',
|
||||||
'--infodir={prefix}/{target}/info',
|
'--infodir={prefix}/{target}/info',
|
||||||
@@ -393,7 +398,7 @@ def build():
|
|||||||
unpack('{ixemul}', top_dir='ixemul')
|
unpack('{ixemul}', top_dir='ixemul')
|
||||||
patch('{ixemul}')
|
patch('{ixemul}')
|
||||||
|
|
||||||
with env(CC=CC, CXX=CXX, CFLAGS='-g -O2 -Wall', CXXFLAGS='-g -O2 -Wall'):
|
with env(CC=CC, CXX=CXX, CFLAGS=FLAGS, CXXFLAGS=FLAGS):
|
||||||
configure('{gcc}',
|
configure('{gcc}',
|
||||||
'--prefix={prefix}',
|
'--prefix={prefix}',
|
||||||
'--infodir={prefix}/{target}/info',
|
'--infodir={prefix}/{target}/info',
|
||||||
@@ -462,7 +467,7 @@ def build():
|
|||||||
make('{clib2}', makefile='GNUmakefile.68k')
|
make('{clib2}', makefile='GNUmakefile.68k')
|
||||||
install_clib2()
|
install_clib2()
|
||||||
|
|
||||||
with env(CC=CC, CXX=CXX, CFLAGS='-g -O2 -Wall', CXXFLAGS='-g -O2 -Wall'):
|
with env(CC=CC, CXX=CXX, CFLAGS=FLAGS, CXXFLAGS=FLAGS):
|
||||||
make('{gcc}', 'all-target',
|
make('{gcc}', 'all-target',
|
||||||
MAKEINFO='makeinfo', CFLAGS_FOR_TARGET='-noixemul')
|
MAKEINFO='makeinfo', CFLAGS_FOR_TARGET='-noixemul')
|
||||||
make('{gcc}', 'install-target',
|
make('{gcc}', 'install-target',
|
||||||
@@ -682,6 +687,7 @@ if __name__ == "__main__":
|
|||||||
help='desired binutils version')
|
help='desired binutils version')
|
||||||
parser.add_argument('--gcc', choices=['2.95.3'], default='2.95.3',
|
parser.add_argument('--gcc', choices=['2.95.3'], default='2.95.3',
|
||||||
help='desired gcc version')
|
help='desired gcc version')
|
||||||
|
parser.add_argument('-q', '--quiet', action='store_true')
|
||||||
parser.add_argument('--prefix', type=str, default=None,
|
parser.add_argument('--prefix', type=str, default=None,
|
||||||
help='installation directory')
|
help='installation directory')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
@@ -718,6 +724,9 @@ if __name__ == "__main__":
|
|||||||
archives=path.join('{top}', '.build-m68k', 'archives'),
|
archives=path.join('{top}', '.build-m68k', 'archives'),
|
||||||
submodules=path.join('{top}', 'submodules'))
|
submodules=path.join('{top}', 'submodules'))
|
||||||
|
|
||||||
|
if args.quiet:
|
||||||
|
getLogger().setLevel(logging.INFO)
|
||||||
|
|
||||||
if args.prefix is not None:
|
if args.prefix is not None:
|
||||||
setvar(target=args.prefix)
|
setvar(target=args.prefix)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user