Changeset 6bbb1610 in mainline for arch/ppc64/loader/Makefile


Ignore:
Timestamp:
2006-05-21T20:13:14Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
433a2aa
Parents:
0ab829c
Message:

port ppc32 changes to ppc64 (raw)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc64/loader/Makefile

    r0ab829c r6bbb1610  
    3131
    3232TARGET = ppc-linux-gnu
    33 TOOLCHAIN_DIR = /usr/local/ppc/bin
     33TOOLCHAIN_DIR = /usr/local/ppc64/bin
    3434
    3535ifeq ($(COMPILER),native)
     
    4747endif
    4848
    49 CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc64 -m64
     49CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc64 -msoft-float -m64
    5050DEFS =
    5151
     
    5757        boot.S
    5858
     59COMPONENTS = \
     60        $(KERNELDIR)/kernel.bin \
     61        $(USPACEDIR)/ns/ns \
     62        $(USPACEDIR)/init/init \
     63        $(USPACEDIR)/fb/fb
     64
    5965OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     66COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
    6067
    6168.PHONY: all clean depend
     
    6572-include Makefile.depend
    6673
    67 image.boot: depend $(OBJECTS) kernel.o
    68         $(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o -o $@
     74image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) kernel.o
     75        $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
    6976
    7077depend:
     
    7279
    7380clean:
    74         -rm -f $(OBJECTS) image.boot kernel.o Makefile.depend
     81        -rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
    7582
    76 kernel.o: $(KERNEL)
    77         $(OBJCOPY) -I binary -O elf64-powerpc -B powerpc --rename-section .data=.image $(KERNEL) $@
     83_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
     84        ./pack $(OBJCOPY) $(COMPONENTS)
    7885
    7986%.o: %.S
Note: See TracChangeset for help on using the changeset viewer.