Changeset 3eee37d in mainline for arch/ppc32/loader/Makefile


Ignore:
Timestamp:
2006-05-18T19:42:34Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
de1b8b1
Parents:
a62347a
Message:

support for arbitrary number of boot components for ppc32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/Makefile

    ra62347a r3eee37d  
    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 init.o
    68         $(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o init.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 init.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 elf32-powerpc -B powerpc:common --rename-section .data=.kernel_image $(KERNEL) $@
    78 
    79 init.o: $(INIT)
    80         $(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.init_image $(INIT) $@
     83_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
     84        ./pack $(OBJCOPY) $(COMPONENTS)
    8185
    8286%.o: %.S
Note: See TracChangeset for help on using the changeset viewer.