Changeset 338a8382 in mainline for boot/arch/sparc64/loader/Makefile


Ignore:
Timestamp:
2008-10-12T22:35:46Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94f8e3c1
Parents:
756f475
Message:

Introduce a boot component configuration option CONFIG_RD_EXTERNAL.
Currently used by the sparc64 port. It says whether the ramdisk
is part of image.boot or a separate file.

File:
1 edited

Legend:

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

    r756f475 r338a8382  
    8080        boot.S
    8181
     82#
     83# All components that go to image.boot without the ramdisk.
     84#
    8285COMPONENTS = \
    8386        $(KERNELDIR)/kernel.bin \
     
    9396ifeq ($(RDFMT),fat)
    9497        COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat
     98endif
     99
     100#
     101# Final list of all components that go to image.boot.
     102#
     103ALL_COMPONENTS = $(COMPONENTS)
     104ifeq ($(CONFIG_RD_EXTERNAL),n)
     105        ALL_COMPONENTS += ./initrd.img
    95106endif
    96107
     
    110121
    111122OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    112 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
     123ALL_COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(ALL_COMPONENTS))))
    113124
    114125.PHONY: all clean depend
     
    118129-include Makefile.depend
    119130
    120 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
    121         $(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
     131image.boot: depend _components.h _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS)
     132        $(LD) -Map image.map -no-check-sections -N -T _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) -o $@
    122133
    123134depend:
     
    131142                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    132143        done
    133         -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
     144        -rm -f _components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
    134145
    135 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in
     146_components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS): $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in
    136147        for file in $(RD_SRVS) ; do \
    137148                cp $$file $(USPACEDIR)/dist/srv/ ; \
     
    148159        ../../../../tools/mkhord.py 16384 initrd.fs initrd.img
    149160        rm initrd.fs
    150         ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS)
     161        ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(ALL_COMPONENTS)
    151162
    152163%.o: %.S
Note: See TracChangeset for help on using the changeset viewer.