Subversion Repositories HelenOS

Rev

Rev 2726 | Rev 3106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2726 Rev 2738
Line 39... Line 39...
39
	CC = gcc
39
	CC = gcc
40
	AS = as
40
	AS = as
41
	LD = ld
41
	LD = ld
42
	OBJCOPY = objcopy
42
	OBJCOPY = objcopy
43
	OBJDUMP = objdump
43
	OBJDUMP = objdump
-
 
44
	GEFI_PREXIX = 
44
endif
45
endif
45
 
46
 
46
ifeq ($(COMPILER),icc_native)
47
ifeq ($(COMPILER),icc_native)
47
	CC = icc
48
	CC = icc
48
	AS = as
49
	AS = as
Line 55... Line 56...
55
	CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
56
	CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
56
	AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
57
	AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
57
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
58
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
58
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
59
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
59
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
60
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
-
 
61
	GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-
60
endif
62
endif
61
 
63
 
62
#-mno-pic means do not use gp + imm22 to address data
64
#-mno-pic means do not use gp + imm22 to address data
63
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic
65
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic
64
 
66
 
Line 103... Line 105...
103
 
105
 
104
-include Makefile.depend
106
-include Makefile.depend
105
 
107
 
106
 
108
 
107
hello.efi: image.boot
109
hello.efi: image.boot
108
	make -C gefi/HelenOS
110
	make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)
109
	cp gefi/HelenOS/hello.efi ../../../../
111
	cp gefi/HelenOS/hello.efi ../../../../
110
	cp gefi/HelenOS/hello.efi /boot/efi/
112
#	cp gefi/HelenOS/hello.efi /boot/efi/
111
	cp gefi/HelenOS/image.bin /boot/efi/
113
	cp gefi/HelenOS/image.bin ../../../../
112
 
114
 
113
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
115
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
114
	$(LD) -Map boot.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
116
	$(LD) -Map boot.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
115
 
117
 
116
depend:
118
depend: