Changeset f1af679 in mainline


Ignore:
Timestamp:
2008-02-19T09:56:43Z (17 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
Files:
3 edited

Legend:

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

    r343dc9e3 rf1af679  
    4242        OBJCOPY = objcopy
    4343        OBJDUMP = objdump
     44        GEFI_PREXIX =
    4445endif
    4546
     
    5859        OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    5960        OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
     61        GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-
    6062endif
    6163
     
    106108
    107109hello.efi: image.boot
    108         make -C gefi/HelenOS
     110        make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)
    109111        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 ../../../../
    112114
    113115image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
  • 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.