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

@@ -1,8 +1,8 @@
TARGET = lfs
CC = gcc
AR = ar
SIZE = size
CC ?= gcc
AR ?= ar
SIZE ?= size
SRC += $(wildcard *.c emubd/*.c)
OBJ := $(SRC:.c=.o)