Mercurial > hg > Members > innparusu > xv6-rpi
comparison src/makefile.inc @ 11:1d371d93ab4f
commit
author | mir3636 |
---|---|
date | Fri, 16 Feb 2018 16:37:55 +0900 |
parents | 2617849843ec |
children | 7eb81a3c4b29 |
comparison
equal
deleted
inserted
replaced
10:be7ae6f2993b | 11:1d371d93ab4f |
---|---|
1 # Cross-compiling (e.g., on Mac OS X, install arm-none-eabi-gcc with MacPorts) | 1 # Cross-compiling (e.g., on Mac OS X, install arm-none-eabi-gcc with MacPorts) |
2 | |
2 CROSSCOMPILE := arm-linux-gnu- | 3 CROSSCOMPILE := arm-linux-gnu- |
3 | 4 |
4 CC = $(CROSSCOMPILE)gcc | 5 CC = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang |
5 AS = $(CROSSCOMPILE)as | 6 AS = $(CROSSCOMPILE)as |
6 LD = $(CROSSCOMPILE)ld | 7 LD = $(CROSSCOMPILE)ld |
7 OBJCOPY = $(CROSSCOMPILE)objcopy | 8 OBJCOPY = $(CROSSCOMPILE)objcopy |
8 OBJDUMP = $(CROSSCOMPILE)objdump | 9 OBJDUMP = $(CROSSCOMPILE)objdump |
9 | 10 |
10 CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 | 11 # CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 |
12 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 | |
11 LDFLAGS = -L. | 13 LDFLAGS = -L. |
12 ASFLAGS = -march=armv6 | 14 # ASFLAGS = -march=armv6 |
15 ASFLAGS = -target armv6-arm-none-eabi | |
13 | 16 |
14 LIBGCC = $(shell $(CC) -print-libgcc-file-name) | 17 #LIBGCC = $(shell $(gcc) -print-libgcc-file-name) |
18 LIBGCC = /net/open/Linux/arm/gcc-arm-none-eabi-7-2017-q4-major/lib/gcc/arm-none-eabi/7.2.1/libgcc.a | |
15 | 19 |
16 # host compiler | 20 # host compiler |
17 HOSTCC_preferred = gcc | 21 # HOSTCC_preferred = gcc |
22 HOSTCC_preferred = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang | |
18 define get_hostcc | 23 define get_hostcc |
19 $(if $(shell which $(HOSTCC_preferred)),$(HOSTCC_preferred),"cc") | 24 $(if $(shell which $(HOSTCC_preferred)),$(HOSTCC_preferred),"cc") |
20 endef | 25 endef |
21 HOSTCC := $(call get_hostcc) | 26 HOSTCC := $(call get_hostcc) |
22 | 27 |