Changeset f1af679 in mainline for boot/arch/ia64/loader/gefi


Ignore:
Timestamp:
2008-02-19T09:56:43Z (18 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75c426b4
Parents:
343dc9e3
Message:

IA64: crosscompilation support for GNU-EFI and hello.efi

Location:
boot/arch/ia64/loader/gefi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/loader/gefi/HelenOS/Makefile

    r343dc9e3 rf1af679  
    2121#  02111-1307, USA.
    2222#
    23 
     23prefix=$(PREFIX)
    2424include ../Make.defaults
    2525CDIR=$(TOPDIR)/..
     
    3333
    3434
    35 all:    hello.efi
     35all:    gefi hello.efi
    3636
    3737
     
    4444        $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
    4545                   -j .rela -j .reloc --target=$(FORMAT) hello.so hello.efi
    46         objdump -d hello.efi > hello.disass
     46        $(OBJDUMP) -d hello.efi > hello.disass 
    4747
    4848hello.so: hello.o image.o
     
    5353
    5454image.o: ../../image.boot
    55         objcopy -O binary ../../image.boot image.bin
    56         objcopy -I binary -O elf64-ia64-little -B ia64 image.bin image.o
     55        $(OBJCOPY) -O binary ../../image.boot image.bin
     56        $(OBJCOPY) -I binary -O elf64-ia64-little -B ia64 image.bin image.o
    5757
    5858
    59 
     59gefi:
     60        make -C .. prefix=$(PREFIX)
  • boot/arch/ia64/loader/gefi/Make.defaults

    r343dc9e3 rf1af679  
    3939GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
    4040
    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       =
     42CC              = $(prefix)gcc
     43AS              = $(prefix)as
     44LD              = $(prefix)ld
     45AR              = $(prefix)ar
     46RANLIB  = $(prefix)ranlib
     47OBJCOPY = $(prefix)objcopy
     48OBJDUMP = $(prefix)objdump
    4949
    5050
     
    5555CFLAGS += -mfixed-range=f32-f127
    5656
    57 else
    58  ifeq ($(ARCH),ia32)
    59 #
    60 # gcc-3.x is required
    61 #
    62   prefix        =
    63   ifneq ($(GCC_VERSION),2)
    64     CC = $(prefix)gcc
    65   else
    66     CC = $(prefix)gcc3 #must have gcc 3.x
    67   endif
    68   AS            = $(prefix)as
    69   LD            = $(prefix)ld
    70   AR            = $(prefix)ar
    71   RANLIB        = $(prefix)ranlib
    72   OBJCOPY       = $(prefix)objcopy
    73  endif
    74 endif
    75 
Note: See TracChangeset for help on using the changeset viewer.