Changeset 338a8382 in mainline
- 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
- Location:
- boot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/Makefile.inc
r756f475 r338a8382 27 27 # 28 28 29 TMP =distroot29 TMP = distroot 30 30 31 31 build: $(BASE)/image.iso 32 33 ifeq ($(CONFIG_RD_EXTERNAL),y) 34 SILO_CONF_FILTER = cat 35 else 36 SILO_CONF_FILTER = grep -v initrd 37 endif 32 38 33 39 $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot … … 35 41 mkdir -p $(TMP)/HelenOS 36 42 cat arch/$(ARCH)/silo/silo.tar.gz | (cd $(TMP)/boot; tar xvfz -) 37 cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING arch/$(ARCH)/silo/silo.conf $(TMP)/boot 43 cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING $(TMP)/boot 44 cat arch/$(ARCH)/silo/silo.conf | $(SILO_CONF_FILTER) >$(TMP)/boot/silo.conf 38 45 cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot 39 46 gzip -f $(TMP)/HelenOS/image.boot 47 ifeq ($(CONFIG_RD_EXTERNAL),y) 40 48 cp arch/$(ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img 49 endif 41 50 mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ 42 51 -
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 -
boot/boot.config
r756f475 r338a8382 83 83 @ "fat" FAT16 image 84 84 ! RDFMT (choice) 85 86 # External ramdisk 87 ! [ARCH=sparc64] CONFIG_RD_EXTERNAL (y/n)
Note:
See TracChangeset
for help on using the changeset viewer.