Mercurial > hg > Members > tobaru > CbC_xv6
diff src/makefile.inc @ 11:1d371d93ab4f
commit
author | mir3636 |
---|---|
date | Fri, 16 Feb 2018 16:37:55 +0900 |
parents | 2617849843ec |
children | 7eb81a3c4b29 |
line wrap: on
line diff
--- a/src/makefile.inc Sat Jan 27 19:26:44 2018 +0900 +++ b/src/makefile.inc Fri Feb 16 16:37:55 2018 +0900 @@ -1,20 +1,25 @@ # Cross-compiling (e.g., on Mac OS X, install arm-none-eabi-gcc with MacPorts) + CROSSCOMPILE := arm-linux-gnu- -CC = $(CROSSCOMPILE)gcc +CC = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang AS = $(CROSSCOMPILE)as LD = $(CROSSCOMPILE)ld OBJCOPY = $(CROSSCOMPILE)objcopy OBJDUMP = $(CROSSCOMPILE)objdump -CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 +# CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 +CFLAGS = -target armv6-arm-none-eabi -I /net/open/Linux/arm/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/ /net/open/Linux/arm/gcc-arm-none-eabi-7-2017-q4-major/lib/gcc/arm-none-eabi/7.2.1/include-fixed/ -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -g -O0 LDFLAGS = -L. -ASFLAGS = -march=armv6 +# ASFLAGS = -march=armv6 +ASFLAGS = -target armv6-arm-none-eabi -LIBGCC = $(shell $(CC) -print-libgcc-file-name) +#LIBGCC = $(shell $(gcc) -print-libgcc-file-name) +LIBGCC = /net/open/Linux/arm/gcc-arm-none-eabi-7-2017-q4-major/lib/gcc/arm-none-eabi/7.2.1/libgcc.a # host compiler -HOSTCC_preferred = gcc +# HOSTCC_preferred = gcc +HOSTCC_preferred = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang define get_hostcc $(if $(shell which $(HOSTCC_preferred)),$(HOSTCC_preferred),"cc") endef