Changeset f1af679 in mainline
- Timestamp:
- 2008-02-19T09:56:43Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75c426b4
- Parents:
- 343dc9e3
- Location:
- boot/arch/ia64/loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/loader/Makefile
r343dc9e3 rf1af679 42 42 OBJCOPY = objcopy 43 43 OBJDUMP = objdump 44 GEFI_PREXIX = 44 45 endif 45 46 … … 58 59 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 59 60 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 61 GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)- 60 62 endif 61 63 … … 106 108 107 109 hello.efi: image.boot 108 make -C gefi/HelenOS 110 make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX) 109 111 cp gefi/HelenOS/hello.efi ../../../../ 110 cp gefi/HelenOS/hello.efi /boot/efi/111 cp gefi/HelenOS/image.bin /boot/efi/112 # cp gefi/HelenOS/hello.efi /boot/efi/ 113 cp gefi/HelenOS/image.bin ../../../../ 112 114 113 115 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -
boot/arch/ia64/loader/gefi/HelenOS/Makefile
r343dc9e3 rf1af679 21 21 # 02111-1307, USA. 22 22 # 23 23 prefix=$(PREFIX) 24 24 include ../Make.defaults 25 25 CDIR=$(TOPDIR)/.. … … 33 33 34 34 35 all: hello.efi35 all: gefi hello.efi 36 36 37 37 … … 44 44 $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ 45 45 -j .rela -j .reloc --target=$(FORMAT) hello.so hello.efi 46 objdump -d hello.efi > hello.disass46 $(OBJDUMP) -d hello.efi > hello.disass 47 47 48 48 hello.so: hello.o image.o … … 53 53 54 54 image.o: ../../image.boot 55 objcopy-O binary ../../image.boot image.bin56 objcopy-I binary -O elf64-ia64-little -B ia64 image.bin image.o55 $(OBJCOPY) -O binary ../../image.boot image.bin 56 $(OBJCOPY) -I binary -O elf64-ia64-little -B ia64 image.bin image.o 57 57 58 58 59 59 gefi: 60 make -C .. prefix=$(PREFIX) -
boot/arch/ia64/loader/gefi/Make.defaults
r343dc9e3 rf1af679 39 39 GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.') 40 40 41 ifeq ($(ARCH),ia64) 42 prefix = 43 CC = $(prefix)gcc 44 AS = $(prefix)as 45 LD = $(prefix)ld 46 AR = $(prefix)ar 47 RANLIB = $(prefix)ranlib 48 OBJCOPY = $(prefix)objcopy 41 # prefix = 42 CC = $(prefix)gcc 43 AS = $(prefix)as 44 LD = $(prefix)ld 45 AR = $(prefix)ar 46 RANLIB = $(prefix)ranlib 47 OBJCOPY = $(prefix)objcopy 48 OBJDUMP = $(prefix)objdump 49 49 50 50 … … 55 55 CFLAGS += -mfixed-range=f32-f127 56 56 57 else58 ifeq ($(ARCH),ia32)59 #60 # gcc-3.x is required61 #62 prefix =63 ifneq ($(GCC_VERSION),2)64 CC = $(prefix)gcc65 else66 CC = $(prefix)gcc3 #must have gcc 3.x67 endif68 AS = $(prefix)as69 LD = $(prefix)ld70 AR = $(prefix)ar71 RANLIB = $(prefix)ranlib72 OBJCOPY = $(prefix)objcopy73 endif74 endif75
Note:
See TracChangeset
for help on using the changeset viewer.