Changeset 338a8382 in mainline for boot/arch/sparc64/loader/Makefile
- Timestamp:
- 2008-10-12T22:35:46Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 94f8e3c1
- Parents:
- 756f475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/Makefile
r756f475 r338a8382 80 80 boot.S 81 81 82 # 83 # All components that go to image.boot without the ramdisk. 84 # 82 85 COMPONENTS = \ 83 86 $(KERNELDIR)/kernel.bin \ … … 93 96 ifeq ($(RDFMT),fat) 94 97 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 98 endif 99 100 # 101 # Final list of all components that go to image.boot. 102 # 103 ALL_COMPONENTS = $(COMPONENTS) 104 ifeq ($(CONFIG_RD_EXTERNAL),n) 105 ALL_COMPONENTS += ./initrd.img 95 106 endif 96 107 … … 110 121 111 122 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 112 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))123 ALL_COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(ALL_COMPONENTS)))) 113 124 114 125 .PHONY: all clean depend … … 118 129 -include Makefile.depend 119 130 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 $@131 image.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 $@ 122 133 123 134 depend: … … 131 142 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 132 143 done 133 -rm -f _components.h _components.c _link.ld $( COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend144 -rm -f _components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend 134 145 135 _components.h _components.c _link.ld $( COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in146 _components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS): $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 136 147 for file in $(RD_SRVS) ; do \ 137 148 cp $$file $(USPACEDIR)/dist/srv/ ; \ … … 148 159 ../../../../tools/mkhord.py 16384 initrd.fs initrd.img 149 160 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) 151 162 152 163 %.o: %.S
Note:
See TracChangeset
for help on using the changeset viewer.