changeset 16:7eb81a3c4b29

kernel.elf
author tobaru
date Tue, 20 Feb 2018 18:12:18 +0900
parents 0983f02ed21b
children c0f6f3eb25ae
files src/makefile-armclang src/makefile.inc
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/makefile-armclang	Fri Feb 16 20:30:29 2018 +0900
+++ b/src/makefile-armclang	Tue Feb 20 18:12:18 2018 +0900
@@ -9,15 +9,16 @@
 OBJDUMP = arm-linux-gnu-objdump
 
 # CFLAGS = -march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0
-CFLAGS = -target armv6-arm-none-eabi -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -I ../cbclang/arm -g -O0
-LDFLAGS = -L.
+CFLAGS = -target arm-linux-gnueabihf -march=armv7a -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -I ../cbclang/arm -g -O0
+LDFLAGS = --noinhibit-exec
 # ASFLAGS = -march=armv6
-ASFLAGS = -target armv6-arm-none-eabi
+ASFLAGS = -target arm-linux-gnueabihf
 
-LIBGCC = $(shell $(CC) -print-libgcc-file-name)
+LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
 
 # link the libgcc.a for __aeabi_idiv. ARM has no native support for div
-LIBS = $(LIBGCC)
+LIBS =/net/open/RaspberryPi/rasbian-img/usr/lib/gcc/arm-linux-gnueabihf/6/libgcc.a
+
 
 OBJS = \
 	lib/string.o \
--- a/src/makefile.inc	Fri Feb 16 20:30:29 2018 +0900
+++ b/src/makefile.inc	Tue Feb 20 18:12:18 2018 +0900
@@ -2,7 +2,7 @@
 
 CROSSCOMPILE := arm-linux-gnu-
 
-CC = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang
+CC = /usr/local/cbclang/bin/clang
 AS = $(CROSSCOMPILE)as
 LD = $(CROSSCOMPILE)ld
 OBJCOPY = $(CROSSCOMPILE)objcopy
@@ -19,7 +19,7 @@
 
 # host compiler
 # HOSTCC_preferred = gcc
-HOSTCC_preferred = /mnt/dalmore-home/one/src/after_update/time_release/bin/clang
+HOSTCC_preferred = /usr/local/cbclang/bin/clang
 define get_hostcc
     $(if $(shell which $(HOSTCC_preferred)),$(HOSTCC_preferred),"cc")
 endef