- Timestamp:
- 2009-11-16T21:24:28Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18baf9c0
- Parents:
- 5f678b1c (diff), 9c70ed6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- boot
- Files:
-
- 15 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r5f678b1c r5a4fef9 47 47 48 48 generic_clean: 49 -rmgeneric/*.o genarch/*.o49 rm -f generic/*.o genarch/*.o -
boot/arch/amd64/Makefile.inc
r5f678b1c r5a4fef9 58 58 $(USPACEDIR)/app/edit/edit \ 59 59 $(USPACEDIR)/app/getvc/getvc \ 60 $(USPACEDIR)/app/redir/redir \ 60 61 $(USPACEDIR)/app/tetris/tetris \ 61 62 $(USPACEDIR)/app/tester/tester \ … … 96 97 97 98 clean: 98 -for file in $(RD_SRVS) ; do \99 for file in $(RD_SRVS) ; do \ 99 100 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 100 101 done 101 -for file in $(RD_APPS) ; do \102 for file in $(RD_APPS) ; do \ 102 103 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 103 104 done 104 -rm -fr $(TMP)105 -rm -f $(BASE)/image.iso105 rm -fr $(TMP) 106 rm -f $(BASE)/image.iso -
boot/arch/arm32/Makefile.inc
r5f678b1c r5a4fef9 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 33 34 depend: 35 -rm arch/$(BARCH)/loader/image.boot 36 37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 33 cp arch/$(BARCH)/loader/image.boot $@ 39 34 40 35 clean: 41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)42 -rm -f $(BASE)/image.boot36 $(MAKE) -C arch/$(BARCH)/loader clean 37 rm -f $(BASE)/image.boot -
boot/arch/arm32/loader/Makefile
r5f678b1c r5a4fef9 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../../version 30 -include ../../../../Makefile.config 30 include Makefile.common 31 31 32 ## Toolchain configuration 33 # 32 .PHONY: all clean 34 33 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 39 BFD_NAME = elf32-littlearm 40 BFD_ARCH = arm 41 TARGET = arm-linux-gnu 42 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin 43 44 ifeq ($(COMPILER),gcc_native) 45 CC = gcc 46 AS = as 47 LD = ld 48 OBJCOPY = objcopy 49 OBJDUMP = objdump 50 endif 51 52 ifeq ($(COMPILER),gcc_cross) 53 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 54 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 55 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 56 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 57 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 58 endif 59 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../.. -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe 61 62 SOURCES = \ 63 main.c \ 64 boot.S \ 65 asm.S \ 66 mm.c \ 67 print/print.c \ 68 _components.c \ 69 ../../../generic/printf.c \ 70 ../../../generic/string.c \ 71 ../../../genarch/division.c 72 73 COMPONENTS = \ 74 $(KERNELDIR)/kernel.bin \ 75 $(USPACEDIR)/srv/ns/ns \ 76 $(USPACEDIR)/srv/loader/loader \ 77 $(USPACEDIR)/app/init/init \ 78 $(USPACEDIR)/srv/devmap/devmap \ 79 $(USPACEDIR)/srv/bd/rd/rd \ 80 $(USPACEDIR)/srv/vfs/vfs 81 ifeq ($(RDFMT),tmpfs) 82 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 83 endif 84 ifeq ($(RDFMT),fat) 85 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 86 endif 87 88 RD_SRVS = \ 89 $(USPACEDIR)/srv/fb/fb \ 90 $(USPACEDIR)/srv/kbd/kbd \ 91 $(USPACEDIR)/srv/console/console \ 92 $(USPACEDIR)/srv/fs/devfs/devfs \ 93 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 94 $(USPACEDIR)/srv/fs/fat/fat \ 95 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 96 $(USPACEDIR)/srv/part/mbr_part/mbr_part 97 ifeq ($(MACHINE),testarm) 98 RD_SRVS += \ 99 $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd 100 endif 101 102 RD_APPS = \ 103 $(USPACEDIR)/app/edit/edit \ 104 $(USPACEDIR)/app/getvc/getvc \ 105 $(USPACEDIR)/app/tetris/tetris \ 106 $(USPACEDIR)/app/tester/tester \ 107 $(USPACEDIR)/app/trace/trace \ 108 $(USPACEDIR)/app/klog/klog \ 109 $(USPACEDIR)/app/bdsh/bdsh 110 111 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 112 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) 113 114 .PHONY: all clean depend 115 116 all: image.boot 117 118 -include Makefile.depend 119 120 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 121 $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ 122 123 depend: 124 -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 125 37 126 38 clean: 127 -for file in $(RD_SRVS) ; do \39 for file in $(RD_SRVS) ; do \ 128 40 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 129 41 done 130 -for file in $(RD_APPS) ; do \42 for file in $(RD_APPS) ; do \ 131 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 132 44 done 133 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend 134 135 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 136 for file in $(RD_SRVS) ; do \ 137 cp $$file $(USPACEDIR)/dist/srv/ ; \ 138 done 139 for file in $(RD_APPS) ; do \ 140 cp $$file $(USPACEDIR)/dist/app/ ; \ 141 done 142 ifeq ($(RDFMT),tmpfs) 143 ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs 144 endif 145 ifeq ($(RDFMT),fat) 146 ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs 147 endif 148 ../../../../tools/mkhord.py 4096 initrd.fs initrd.img 149 rm initrd.fs 150 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img 151 152 %.o: %.S 153 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 154 155 %.o: %.c 156 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 45 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 find . -name '*.o' -follow -exec rm \{\} \; 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ia32/Makefile.inc
-
Property mode
changed from
100644
to120000
r5f678b1c r5a4fef9 1 # 2 # Copyright (c) 2006 Martin Decky 3 # All rights reserved. 4 # 5 # Redistribution and use in source and binary forms, with or without 6 # modification, are permitted provided that the following conditions 7 # are met: 8 # 9 # - Redistributions of source code must retain the above copyright 10 # notice, this list of conditions and the following disclaimer. 11 # - Redistributions in binary form must reproduce the above copyright 12 # notice, this list of conditions and the following disclaimer in the 13 # documentation and/or other materials provided with the distribution. 14 # - The name of the author may not be used to endorse or promote products 15 # derived from this software without specific prior written permission. 16 # 17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # 28 29 TMP = distroot 30 31 INIT_TASKS = \ 32 $(USPACEDIR)/srv/ns/ns \ 33 $(USPACEDIR)/srv/loader/loader \ 34 $(USPACEDIR)/app/init/init \ 35 $(USPACEDIR)/srv/devmap/devmap \ 36 $(USPACEDIR)/srv/bd/rd/rd \ 37 $(USPACEDIR)/srv/vfs/vfs 38 ifeq ($(RDFMT),tmpfs) 39 INIT_TASKS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 40 endif 41 ifeq ($(RDFMT),fat) 42 INIT_TASKS += $(USPACEDIR)/srv/fs/fat/fat 43 endif 44 45 RD_SRVS = \ 46 $(USPACEDIR)/srv/pci/pci \ 47 $(USPACEDIR)/srv/fb/fb \ 48 $(USPACEDIR)/srv/kbd/kbd \ 49 $(USPACEDIR)/srv/console/console \ 50 $(USPACEDIR)/srv/fs/devfs/devfs \ 51 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 52 $(USPACEDIR)/srv/fs/fat/fat \ 53 $(USPACEDIR)/srv/bd/ata_bd/ata_bd \ 54 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 55 $(USPACEDIR)/srv/part/mbr_part/mbr_part 56 57 RD_APPS = \ 58 $(USPACEDIR)/app/edit/edit \ 59 $(USPACEDIR)/app/getvc/getvc \ 60 $(USPACEDIR)/app/tetris/tetris \ 61 $(USPACEDIR)/app/tester/tester \ 62 $(USPACEDIR)/app/trace/trace \ 63 $(USPACEDIR)/app/klog/klog \ 64 $(USPACEDIR)/app/bdsh/bdsh 65 66 build: $(BASE)/image.iso 67 68 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) 69 mkdir -p $(TMP)/boot/grub 70 cp arch/$(BARCH)/grub/stage2_eltorito $(TMP)/boot/grub/ 71 ifneq ($(RDFMT),tmpfs) 72 cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" > $(TMP)/boot/grub/menu.lst 73 endif 74 ifneq ($(RDFMT),fat) 75 cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" > $(TMP)/boot/grub/menu.lst 76 endif 77 cp $(KERNELDIR)/kernel.bin $(TMP)/boot/ 78 for task in $(INIT_TASKS) ; do \ 79 cp $$task $(TMP)/boot/ ; \ 80 done 81 for file in $(RD_SRVS) ; do \ 82 cp $$file $(USPACEDIR)/dist/srv/ ; \ 83 done 84 for file in $(RD_APPS) ; do \ 85 cp $$file $(USPACEDIR)/dist/app/ ; \ 86 done 87 ifeq ($(RDFMT),tmpfs) 88 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs 89 endif 90 ifeq ($(RDFMT),fat) 91 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs 92 endif 93 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/initrd.fs $(TMP)/boot/initrd.img 94 rm $(TMP)/boot/initrd.fs 95 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $@ $(TMP)/ 96 97 clean: 98 -for file in $(RD_SRVS) ; do \ 99 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 100 done 101 -for file in $(RD_APPS) ; do \ 102 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 103 done 104 -rm -fr $(TMP) 105 -rm -f $(BASE)/image.iso 1 ../amd64/Makefile.inc -
Property mode
changed from
-
boot/arch/ia64/Makefile.inc
r5f678b1c r5a4fef9 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 33 cp arch/$(BARCH)/loader/image.boot $@ 33 34 34 depend: 35 -rm arch/$(BARCH)/loader/image.boot 36 37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 39 40 clean: generic_clean 41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 42 -rm -f $(BASE)/image.boot 35 clean: 36 $(MAKE) -C arch/$(BARCH)/loader clean 37 rm -f $(BASE)/image.boot $(BASE)/hello.efi $(BASE)/image.bin -
boot/arch/ia64/loader/Makefile
r5f678b1c r5a4fef9 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../../version 30 -include ../../../../Makefile.config 30 include Makefile.common 31 31 32 ## Toolchain configuration 33 # 32 .PHONY: all clean 34 33 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 39 BFD_NAME = elf64-ia64-little 40 BFD_ARCH = ia64 41 TARGET = ia64-pc-linux-gnu 42 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin 43 44 ifeq ($(COMPILER),gcc_native) 45 CC = gcc 46 AS = as 47 LD = ld 48 OBJCOPY = objcopy 49 OBJDUMP = objdump 50 GEFI_PREFIX = 51 endif 52 53 ifeq ($(COMPILER),icc) 54 CC = icc 55 AS = as 56 LD = ld 57 OBJCOPY = objcopy 58 OBJDUMP = objdump 59 endif 60 61 ifeq ($(COMPILER),gcc_cross) 62 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 63 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 64 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 65 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 66 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 67 GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)- 68 endif 69 70 #-mno-pic means do not use gp + imm22 to address data 71 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -I../../../../kernel/generic/include -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -fno-unwind-tables -mfixed-range=f32-f127 -mno-pic -pipe 72 73 SOURCES = \ 74 main.c \ 75 ../../../generic/printf.c \ 76 ../../../generic/string.c \ 77 ../../../genarch/balloc.c \ 78 _components.c \ 79 asm.S \ 80 boot.S 81 82 NOCOMPONENTS = \ 83 $(KERNELDIR)/kernel.bin 84 COMPONENTS = \ 85 $(KERNELDIR)/kernel.bin \ 86 $(USPACEDIR)/srv/ns/ns \ 87 $(USPACEDIR)/srv/loader/loader \ 88 $(USPACEDIR)/app/init/init \ 89 $(USPACEDIR)/srv/devmap/devmap \ 90 $(USPACEDIR)/srv/bd/rd/rd \ 91 $(USPACEDIR)/srv/vfs/vfs 92 ifeq ($(RDFMT),tmpfs) 93 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 94 endif 95 ifeq ($(RDFMT),fat) 96 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 97 endif 98 99 RD_SRVS = \ 100 $(USPACEDIR)/srv/fb/fb \ 101 $(USPACEDIR)/srv/kbd/kbd \ 102 $(USPACEDIR)/srv/console/console \ 103 $(USPACEDIR)/srv/fs/devfs/devfs \ 104 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 105 $(USPACEDIR)/srv/fs/fat/fat \ 106 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 107 $(USPACEDIR)/srv/part/mbr_part/mbr_part 108 109 RD_APPS = \ 110 $(USPACEDIR)/app/edit/edit \ 111 $(USPACEDIR)/app/getvc/getvc \ 112 $(USPACEDIR)/app/tetris/tetris \ 113 $(USPACEDIR)/app/tester/tester \ 114 $(USPACEDIR)/app/trace/trace \ 115 $(USPACEDIR)/app/klog/klog \ 116 $(USPACEDIR)/app/bdsh/bdsh 117 118 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 119 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) 120 121 .PHONY: all clean depend 122 123 all: hello.efi disasm 124 125 -include Makefile.depend 126 127 hello.efi: image.boot 128 make -C gefi/HelenOS PREFIX=$(GEFI_PREFIX) 129 cp gefi/HelenOS/hello.efi ../../../../ 130 cp gefi/HelenOS/image.bin ../../../../ 131 132 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 133 $(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ 134 135 depend: 136 -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 137 37 138 38 clean: 139 -for file in $(RD_SRVS) ; do \ 39 $(MAKE) -C gefi clean 40 $(MAKE) -C gefi/HelenOS clean 41 for file in $(RD_SRVS) ; do \ 140 42 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 141 43 done 142 -for file in $(RD_APPS) ; do \44 for file in $(RD_APPS) ; do \ 143 45 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 144 46 done 145 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) image.boot image.map image.disasm initrd.img image.boot Makefile.depend ../../../../image.bin ../../../../hello.efi 146 make -C gefi clean 147 make -C gefi/HelenOS clean 148 149 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 150 for file in $(RD_SRVS) ; do \ 151 cp $$file $(USPACEDIR)/dist/srv/ ; \ 152 done 153 for file in $(RD_APPS) ; do \ 154 cp $$file $(USPACEDIR)/dist/app/ ; \ 155 done 156 ifeq ($(RDFMT),tmpfs) 157 ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs 158 endif 159 ifeq ($(RDFMT),fat) 160 ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs 161 endif 162 ../../../../tools/mkhord.py 16384 initrd.fs initrd.img 163 rm initrd.fs 164 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned long" $(COMPONENTS) ./initrd.img 165 166 %.o: %.S 167 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 168 169 %.o: %.c 170 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 171 172 disasm: image.boot 173 $(OBJDUMP) -d image.boot > image.disasm 47 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 48 find . -name '*.o' -follow -exec rm \{\} \; 49 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ia64/loader/gefi/HelenOS/Makefile
r5f678b1c r5a4fef9 69 69 70 70 gefi: 71 make-C .. prefix=$(PREFIX)71 $(MAKE) -C .. prefix=$(PREFIX) -
boot/arch/mips32/Makefile.inc
r5f678b1c r5a4fef9 29 29 build: $(BASE)/image.boot 30 30 31 $(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot 32 cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot 33 34 depend: 35 -rm arch/$(BARCH)/loader/image.boot 36 37 arch/$(BARCH)/loader/image.boot: 38 make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 33 cp arch/$(BARCH)/loader/image.boot $@ 39 34 40 35 clean: 41 make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)42 -rm -f $(BASE)/image.boot36 $(MAKE) -C arch/$(BARCH)/loader clean 37 rm -f $(BASE)/image.boot -
boot/arch/mips32/loader/Makefile
r5f678b1c r5a4fef9 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../../version 30 -include ../../../../Makefile.config 30 include Makefile.common 31 31 32 ## Toolchain configuration 33 # 32 .PHONY: all clean 34 33 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 39 BFD_ARCH = mips 40 TARGET = mipsel-linux-gnu 41 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin 42 43 ifeq ($(MACHINE),lgxemul) 44 BFD_NAME = elf32-tradlittlemips 45 BFD = ecoff-littlemips 46 endif 47 ifeq ($(MACHINE),bgxemul) 48 BFD_NAME = elf32-tradbigmips 49 BFD = ecoff-bigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin 51 TARGET = mips-linux-gnu 52 endif 53 ifeq ($(MACHINE),msim) 54 BFD_NAME = elf32-tradlittlemips 55 BFD = binary 56 endif 57 58 ifeq ($(COMPILER),gcc_native) 59 CC = gcc 60 AS = as 61 LD = ld 62 OBJCOPY = objcopy 63 OBJDUMP = objdump 64 endif 65 66 ifeq ($(COMPILER),gcc_cross) 67 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 68 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 69 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 70 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 71 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 72 endif 73 74 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe 75 76 SOURCES = \ 77 main.c \ 78 msim.c \ 79 _components.c \ 80 ../../../generic/printf.c \ 81 ../../../generic/string.c \ 82 asm.S \ 83 boot.S 84 85 COMPONENTS = \ 86 $(KERNELDIR)/kernel.bin \ 87 $(USPACEDIR)/srv/ns/ns \ 88 $(USPACEDIR)/srv/loader/loader \ 89 $(USPACEDIR)/app/init/init \ 90 $(USPACEDIR)/srv/devmap/devmap \ 91 $(USPACEDIR)/srv/bd/rd/rd \ 92 $(USPACEDIR)/srv/vfs/vfs 93 ifeq ($(RDFMT),tmpfs) 94 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 95 endif 96 ifeq ($(RDFMT),fat) 97 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 98 endif 99 100 RD_SRVS = \ 101 $(USPACEDIR)/srv/fb/fb \ 102 $(USPACEDIR)/srv/kbd/kbd \ 103 $(USPACEDIR)/srv/console/console \ 104 $(USPACEDIR)/srv/fs/devfs/devfs \ 105 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 106 $(USPACEDIR)/srv/fs/fat/fat \ 107 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 108 $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd \ 109 $(USPACEDIR)/srv/part/mbr_part/mbr_part 110 111 RD_APPS = \ 112 $(USPACEDIR)/app/edit/edit \ 113 $(USPACEDIR)/app/getvc/getvc \ 114 $(USPACEDIR)/app/tetris/tetris \ 115 $(USPACEDIR)/app/tester/tester \ 116 $(USPACEDIR)/app/trace/trace \ 117 $(USPACEDIR)/app/bdsh/bdsh \ 118 $(USPACEDIR)/app/klog/klog 119 120 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 121 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) 122 123 .PHONY: all clean depend 124 125 all: image.boot 126 127 -include Makefile.depend 128 129 image.boot: image.raw 130 $(OBJCOPY) -O $(BFD) $< $@ 131 132 image.raw: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 133 $(LD) -no-check-sections -N -T _link.ld -o $@ $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 134 135 depend: 136 -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 137 37 138 38 clean: 139 -for file in $(RD_SRVS) ; do \39 for file in $(RD_SRVS) ; do \ 140 40 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 141 41 done 142 -for file in $(RD_APPS) ; do \42 for file in $(RD_APPS) ; do \ 143 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 144 44 done 145 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.raw image.boot Makefile.depend 146 147 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 148 for file in $(RD_SRVS) ; do \ 149 cp $$file $(USPACEDIR)/dist/srv/ ; \ 150 done 151 for file in $(RD_APPS) ; do \ 152 cp $$file $(USPACEDIR)/dist/app/ ; \ 153 done 154 ifeq ($(RDFMT),tmpfs) 155 ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs 156 endif 157 ifeq ($(RDFMT),fat) 158 ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs 159 endif 160 ../../../../tools/mkhord.py 16384 initrd.fs initrd.img 161 rm initrd.fs 162 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img 163 164 %.o: %.S 165 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 166 167 %.o: %.c 168 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 45 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 find . -name '*.o' -follow -exec rm \{\} \; 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ppc32/Makefile.inc
r5f678b1c r5a4fef9 31 31 build: $(BASE)/image.iso 32 32 33 $(BASE)/image.iso: dependarch/$(BARCH)/loader/image.boot33 $(BASE)/image.iso: arch/$(BARCH)/loader/image.boot 34 34 mkdir -p $(TMP)/boot 35 35 mkdir -p $(TMP)/ppc … … 41 41 mkisofs -hfs -part -map arch/$(BARCH)/yaboot/maps -no-desktop -hfs-volid "HelenOS" -hfs-bless $(TMP)/boot -r -o $@ $(TMP)/ 42 42 43 depend:44 -rm arch/$(BARCH)/loader/image.boot45 46 43 arch/$(BARCH)/loader/image.boot: 47 $(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)44 $(MAKE) -C arch/$(BARCH)/loader 48 45 49 46 clean: generic_clean 50 $(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)51 -rm -fr $(TMP)52 -rm -f $(BASE)/image.iso47 $(MAKE) -C arch/$(BARCH)/loader clean 48 rm -fr $(TMP) 49 rm -f $(BASE)/image.iso -
boot/arch/ppc32/loader/Makefile
r5f678b1c r5a4fef9 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../../version 30 -include ../../../../Makefile.config 30 include Makefile.common 31 31 32 ## Toolchain configuration 33 # 32 .PHONY: all clean 34 33 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 39 BFD_NAME = elf32-powerpc 40 BFD_ARCH = powerpc:common 41 TARGET = ppc-linux-gnu 42 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin 43 44 ifeq ($(COMPILER),gcc_native) 45 CC = gcc 46 AS = as 47 LD = ld 48 OBJCOPY = objcopy 49 OBJDUMP = objdump 50 endif 51 52 ifeq ($(COMPILER),gcc_cross) 53 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 54 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 55 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 56 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 57 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 58 endif 59 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 -pipe 61 62 SOURCES = \ 63 main.c \ 64 _components.c \ 65 ../../../generic/printf.c \ 66 ../../../generic/string.c \ 67 ../../../genarch/balloc.c \ 68 ../../../genarch/ofw.c \ 69 ../../../genarch/ofw_tree.c \ 70 ofwarch.c \ 71 asm.S \ 72 boot.S 73 74 COMPONENTS = \ 75 $(KERNELDIR)/kernel.bin \ 76 $(USPACEDIR)/srv/ns/ns \ 77 $(USPACEDIR)/app/init/init \ 78 $(USPACEDIR)/srv/loader/loader \ 79 $(USPACEDIR)/srv/devmap/devmap \ 80 $(USPACEDIR)/srv/bd/rd/rd \ 81 $(USPACEDIR)/srv/vfs/vfs 82 ifeq ($(RDFMT),tmpfs) 83 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 84 endif 85 ifeq ($(RDFMT),fat) 86 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 87 endif 88 89 RD_SRVS = \ 90 $(USPACEDIR)/srv/fb/fb \ 91 $(USPACEDIR)/srv/kbd/kbd \ 92 $(USPACEDIR)/srv/console/console \ 93 $(USPACEDIR)/srv/fs/devfs/devfs \ 94 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 95 $(USPACEDIR)/srv/fs/fat/fat \ 96 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 97 $(USPACEDIR)/srv/part/mbr_part/mbr_part 98 99 RD_APPS = \ 100 $(USPACEDIR)/app/edit/edit \ 101 $(USPACEDIR)/app/getvc/getvc \ 102 $(USPACEDIR)/app/tetris/tetris \ 103 $(USPACEDIR)/app/tester/tester \ 104 $(USPACEDIR)/app/trace/trace \ 105 $(USPACEDIR)/app/bdsh/bdsh \ 106 $(USPACEDIR)/app/klog/klog 107 108 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 109 COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) 110 111 .PHONY: all clean depend 112 113 all: image.boot 114 115 -include Makefile.depend 116 117 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 118 $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ 119 120 depend: 121 -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 122 37 123 38 clean: 124 -for file in $(RD_SRVS) ; do \39 for file in $(RD_SRVS) ; do \ 125 40 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 126 41 done 127 -for file in $(RD_APPS) ; do \42 for file in $(RD_APPS) ; do \ 128 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 129 44 done 130 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend 131 132 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 133 for file in $(RD_SRVS) ; do \ 134 cp $$file $(USPACEDIR)/dist/srv/ ; \ 135 done 136 for file in $(RD_APPS) ; do \ 137 cp $$file $(USPACEDIR)/dist/app/ ; \ 138 done 139 ifeq ($(RDFMT),tmpfs) 140 ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs 141 endif 142 ifeq ($(RDFMT),fat) 143 ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs 144 endif 145 ../../../../tools/mkhord.py 4096 initrd.fs initrd.img 146 rm initrd.fs 147 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img 148 149 %.o: %.S 150 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 151 152 %.o: %.c 153 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 45 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 find . -name '*.o' -follow -exec rm \{\} \; 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/sparc64/Makefile.inc
r5f678b1c r5a4fef9 37 37 build: $(BASE)/image.iso 38 38 39 $(BASE)/image.iso: dependarch/$(BARCH)/loader/image.boot39 $(BASE)/image.iso: arch/$(BARCH)/loader/image.boot 40 40 mkdir -p $(TMP)/boot 41 41 mkdir -p $(TMP)/HelenOS … … 54 54 mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $@ $(TMP)/ 55 55 56 depend:57 -rm arch/$(BARCH)/loader/image.boot58 59 56 arch/$(BARCH)/loader/image.boot: 60 $(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)57 $(MAKE) -C arch/$(BARCH)/loader 61 58 62 59 clean: generic_clean 63 $(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)64 -rm -fr $(TMP)65 -rm -f $(BASE)/image.iso60 $(MAKE) -C arch/$(BARCH)/loader clean 61 rm -fr $(TMP) 62 rm -f $(BASE)/image.iso -
boot/arch/sparc64/loader/Makefile
r5f678b1c r5a4fef9 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include ../../../../version 30 -include ../../../../Makefile.config 30 include Makefile.common 31 31 32 ## Toolchain configuration 33 # 32 .PHONY: all clean 34 33 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 39 BFD_NAME = elf64-sparc 40 BFD_ARCH = sparc 41 TARGET = sparc64-linux-gnu 42 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin 43 44 ifeq ($(COMPILER),gcc_native) 45 CC = gcc 46 AS = as 47 LD = ld 48 OBJCOPY = objcopy 49 OBJDUMP = objdump 50 endif 51 52 ifeq ($(COMPILER),gcc_cross) 53 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 54 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 55 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 56 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 57 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 58 endif 59 60 CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64 -mno-fpu -pipe 61 62 SOURCES = \ 63 main.c \ 64 _components.c \ 65 ../../../generic/printf.c \ 66 ../../../generic/string.c \ 67 ../../../genarch/balloc.c \ 68 ../../../genarch/ofw.c \ 69 ../../../genarch/ofw_tree.c \ 70 ofwarch.c \ 71 asm.S \ 72 boot.S 73 74 # 75 # All components that go to image.boot without the ramdisk. 76 # 77 COMPONENTS = \ 78 $(KERNELDIR)/kernel.bin \ 79 $(USPACEDIR)/srv/ns/ns \ 80 $(USPACEDIR)/app/init/init \ 81 $(USPACEDIR)/srv/loader/loader \ 82 $(USPACEDIR)/srv/devmap/devmap \ 83 $(USPACEDIR)/srv/bd/rd/rd \ 84 $(USPACEDIR)/srv/vfs/vfs 85 ifeq ($(RDFMT),tmpfs) 86 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs 87 endif 88 ifeq ($(RDFMT),fat) 89 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat 90 endif 91 92 # 93 # Final list of all components that go to image.boot. 94 # 95 ALL_COMPONENTS = $(COMPONENTS) 96 ifeq ($(CONFIG_RD_EXTERNAL),n) 97 ALL_COMPONENTS += ./initrd.img 98 endif 99 100 RD_SRVS = \ 101 $(USPACEDIR)/srv/fb/fb \ 102 $(USPACEDIR)/srv/kbd/kbd \ 103 $(USPACEDIR)/srv/console/console \ 104 $(USPACEDIR)/srv/fs/devfs/devfs \ 105 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 106 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 107 $(USPACEDIR)/srv/part/mbr_part/mbr_part 108 109 ifeq ($(MACHINE),generic) 110 RD_SRVS += \ 111 $(USPACEDIR)/srv/fs/fat/fat \ 112 $(USPACEDIR)/srv/cir/fhc/fhc \ 113 $(USPACEDIR)/srv/cir/obio/obio 114 endif 115 116 RD_APPS = \ 117 $(USPACEDIR)/app/edit/edit \ 118 $(USPACEDIR)/app/getvc/getvc \ 119 $(USPACEDIR)/app/tetris/tetris \ 120 $(USPACEDIR)/app/trace/trace \ 121 $(USPACEDIR)/app/bdsh/bdsh \ 122 $(USPACEDIR)/app/klog/klog 123 124 ifeq ($(MACHINE),generic) 125 RD_APPS += \ 126 $(USPACEDIR)/app/tester/tester 127 endif 128 129 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 130 ALL_COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(ALL_COMPONENTS)))) 131 132 .PHONY: all clean depend 133 134 all: image.boot disasm 135 136 -include Makefile.depend 137 138 image.boot: depend _components.h _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) 139 $(LD) -Map image.map -no-check-sections -N -T _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) -o $@ 140 141 depend: 142 -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 143 37 144 38 clean: 145 -for file in $(RD_SRVS) ; do \39 for file in $(RD_SRVS) $(RD_SRVS_GENERIC) ; do \ 146 40 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 147 41 done 148 -for file in $(RD_APPS) ; do \42 for file in $(RD_APPS) $(RD_APPS_GENERIC) ; do \ 149 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 150 44 done 151 -rm -f _components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend 152 153 _components.h _components.c _link.ld $(ALL_COMPONENT_OBJECTS): $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in 154 for file in $(RD_SRVS) ; do \ 155 cp $$file $(USPACEDIR)/dist/srv/ ; \ 156 done 157 for file in $(RD_APPS) ; do \ 158 cp $$file $(USPACEDIR)/dist/app/ ; \ 159 done 160 ifeq ($(RDFMT),tmpfs) 161 ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs 162 endif 163 ifeq ($(RDFMT),fat) 164 ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs 165 endif 166 ../../../../tools/mkhord.py 16384 initrd.fs initrd.img 167 rm initrd.fs 168 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(ALL_COMPONENTS) 169 170 %.o: %.S 171 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 172 173 %.o: %.c 174 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 175 176 disasm: image.boot 177 $(OBJDUMP) -d image.boot > image.disasm 45 rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 find . -name '*.o' -follow -exec rm \{\} \; 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/tools/pack.py
r5f678b1c r5a4fef9 72 72 plainname = os.path.splitext(basename)[0] 73 73 path = os.path.dirname(task) 74 object = plainname + ". o"74 object = plainname + ".co" 75 75 symbol = "_binary_" + basename.replace(".", "_") 76 76 macro = plainname.upper()
Note:
See TracChangeset
for help on using the changeset viewer.