Added cross-compile targets for testing

Using gcc cross compilers and qemu:
- make test CC="arm-linux-gnueabi-gcc --static -mthumb" EXEC="qemu-arm"
- make test CC="powerpc-linux-gnu-gcc --static" EXEC="qemu-ppc"
- make test CC="mips-linux-gnu-gcc --static" EXEC="qemu-mips"

Also separated out Travis jobs and added some size reporting
This commit is contained in:
Christopher Haster
2018-02-18 14:22:24 -06:00
parent a3fd2d4d6d
commit 67daf9e2c5
3 changed files with 197 additions and 89 deletions

View File

@@ -33,10 +33,15 @@ def generate(test):
pass
def compile():
subprocess.check_call(['make', '--no-print-directory', '-s'])
subprocess.check_call([
os.environ.get('MAKE', 'make'),
'--no-print-directory', '-s'])
def execute():
subprocess.check_call(["./lfs"])
if 'EXEC' in os.environ:
subprocess.check_call([os.environ['EXEC'], "./lfs"])
else:
subprocess.check_call(["./lfs"])
def main(test=None):
if test and not test.startswith('-'):