- Timestamp:
- 2010-01-15T19:36:53Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92bee46
- Parents:
- 50f9c3a (diff), 963462af (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:
-
- 1 added
- 1 deleted
- 26 edited
-
Makefile.common (added)
-
arch/amd64/Makefile.inc (modified) (2 diffs)
-
arch/amd64/grub/menu.lst (deleted)
-
arch/arm32/Makefile.inc (modified) (1 diff)
-
arch/arm32/loader/Makefile (modified) (2 diffs)
-
arch/arm32/loader/Makefile.build (modified) (2 diffs)
-
arch/arm32/loader/Makefile.common (modified) (1 diff)
-
arch/arm32/loader/Makefile.toolchain (modified) (1 diff)
-
arch/ia64/Makefile.inc (modified) (1 diff)
-
arch/ia64/loader/Makefile (modified) (3 diffs)
-
arch/ia64/loader/Makefile.build (modified) (2 diffs)
-
arch/ia64/loader/Makefile.common (modified) (2 diffs)
-
arch/ia64/loader/Makefile.toolchain (modified) (1 diff)
-
arch/mips32/Makefile.inc (modified) (1 diff)
-
arch/mips32/loader/Makefile (modified) (2 diffs)
-
arch/mips32/loader/Makefile.build (modified) (2 diffs)
-
arch/mips32/loader/Makefile.common (modified) (1 diff)
-
arch/mips32/loader/Makefile.toolchain (modified) (1 diff)
-
arch/ppc32/Makefile.inc (modified) (2 diffs)
-
arch/ppc32/loader/Makefile (modified) (2 diffs)
-
arch/ppc32/loader/Makefile.build (modified) (2 diffs)
-
arch/ppc32/loader/Makefile.common (modified) (1 diff)
-
arch/ppc32/loader/Makefile.toolchain (modified) (1 diff)
-
arch/sparc64/Makefile.inc (modified) (2 diffs)
-
arch/sparc64/loader/Makefile (modified) (2 diffs)
-
arch/sparc64/loader/Makefile.build (modified) (2 diffs)
-
arch/sparc64/loader/Makefile.common (modified) (1 diff)
-
arch/sparc64/loader/Makefile.toolchain (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/amd64/Makefile.inc
r50f9c3a r61c0402 27 27 # 28 28 29 TMP = distroot 29 include Makefile.common 30 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 31 RD_SRVS += \ 32 $(USPACEDIR)/srv/bd/ata_bd/ata_bd \ 33 $(USPACEDIR)/srv/hw/char/i8042/i8042 \ 34 $(USPACEDIR)/srv/hw/bus/pci/pci \ 35 $(USPACEDIR)/srv/hid/c_mouse/c_mouse 44 36 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/redir/redir \ 61 $(USPACEDIR)/app/tetris/tetris \ 62 $(USPACEDIR)/app/tester/tester \ 63 $(USPACEDIR)/app/trace/trace \ 64 $(USPACEDIR)/app/klog/klog \ 65 $(USPACEDIR)/app/bdsh/bdsh 37 MODULES := $(notdir $(COMPONENTS)) 66 38 67 39 build: $(BASE)/image.iso 68 40 69 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst$(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS)41 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) 70 42 mkdir -p $(TMP)/boot/grub 71 43 cp arch/$(BARCH)/grub/stage2_eltorito $(TMP)/boot/grub/ 72 ifneq ($(RDFMT),tmpfs) 73 cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" > $(TMP)/boot/grub/menu.lst 74 endif 75 ifneq ($(RDFMT),fat) 76 cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" > $(TMP)/boot/grub/menu.lst 77 endif 44 45 echo "default 0" > $(TMP)/boot/grub/menu.lst 46 echo "timeout 10" >> $(TMP)/boot/grub/menu.lst 47 echo "" >> $(TMP)/boot/grub/menu.lst 48 echo "title=HelenOS" >> $(TMP)/boot/grub/menu.lst 49 echo " root (cd)" >> $(TMP)/boot/grub/menu.lst 50 for module in $(MODULES) $(INITRD).img ; do \ 51 if [ $$module = kernel.bin ] ; then \ 52 echo " kernel /boot/$$module" >> $(TMP)/boot/grub/menu.lst ; \ 53 else \ 54 echo " module /boot/$$module" >> $(TMP)/boot/grub/menu.lst ; \ 55 fi \ 56 done 57 78 58 cp $(KERNELDIR)/kernel.bin $(TMP)/boot/ 79 59 for task in $(INIT_TASKS) ; do \ … … 86 66 cp $$file $(USPACEDIR)/dist/app/ ; \ 87 67 done 68 88 69 ifeq ($(RDFMT),tmpfs) 89 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/ initrd.fs70 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/$(INITRD).fs 90 71 endif 91 72 ifeq ($(RDFMT),fat) 92 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/ initrd.fs73 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/$(INITRD).fs 93 74 endif 94 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/ initrd.fs $(TMP)/boot/initrd.img95 rm $(TMP)/boot/ initrd.fs75 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/$(INITRD).fs $(TMP)/boot/$(INITRD).img 76 rm $(TMP)/boot/$(INITRD).fs 96 77 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $@ $(TMP)/ 97 78 -
boot/arch/arm32/Makefile.inc
r50f9c3a r61c0402 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/arm32/loader/Makefile
r50f9c3a r61c0402 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/arm32/loader/Makefile.build
r50f9c3a r61c0402 51 51 ../../../genarch/division.c 52 52 53 COMPONENTS = \54 $(KERNELDIR)/kernel.bin \55 $(USPACEDIR)/srv/ns/ns \56 $(USPACEDIR)/srv/loader/loader \57 $(USPACEDIR)/app/init/init \58 $(USPACEDIR)/srv/devmap/devmap \59 $(USPACEDIR)/srv/bd/rd/rd \60 $(USPACEDIR)/srv/vfs/vfs61 ifeq ($(RDFMT),tmpfs)62 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs63 endif64 ifeq ($(RDFMT),fat)65 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat66 endif67 68 53 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 69 54 COMPONENT_OBJECTS := $(addsuffix .co,$(basename $(notdir $(COMPONENTS)))) $(INITRD).co … … 80 65 %.o: %.S $(DEPEND) 81 66 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 67 ifeq ($(PRECHECK),y) 68 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 69 endif 82 70 83 71 %.o: %.c $(DEPEND) 84 72 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 73 ifeq ($(PRECHECK),y) 74 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 75 endif 85 76 86 77 $(DEPEND): -
boot/arch/arm32/loader/Makefile.common
r50f9c3a r61c0402 31 31 # 32 32 33 include ../../../Makefile.common 34 33 35 DEPEND = Makefile.depend 34 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 35 38 OUTPUT = image.boot 36 39 37 40 LINK = _link.ld 38 41 COMPS = _components 39 INITRD = initrd40 42 41 43 KERNELDIR = ../../../../kernel 42 44 USPACEDIR = ../../../../uspace 43 45 44 RD_SRVS = \ 45 $(USPACEDIR)/srv/fb/fb \ 46 $(USPACEDIR)/srv/kbd/kbd \ 47 $(USPACEDIR)/srv/console/console \ 48 $(USPACEDIR)/srv/fs/devfs/devfs \ 49 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 50 $(USPACEDIR)/srv/fs/fat/fat \ 51 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 52 $(USPACEDIR)/srv/part/mbr_part/mbr_part \ 53 $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd 54 55 RD_APPS = \ 56 $(USPACEDIR)/app/edit/edit \ 57 $(USPACEDIR)/app/getvc/getvc \ 58 $(USPACEDIR)/app/redir/redir \ 59 $(USPACEDIR)/app/tetris/tetris \ 60 $(USPACEDIR)/app/tester/tester \ 61 $(USPACEDIR)/app/trace/trace \ 62 $(USPACEDIR)/app/klog/klog \ 63 $(USPACEDIR)/app/bdsh/bdsh 46 RD_SRVS += $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd -
boot/arch/arm32/loader/Makefile.toolchain
r50f9c3a r61c0402 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/ia64/Makefile.inc
r50f9c3a r61c0402 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/ia64/loader/Makefile
r50f9c3a r61c0402 29 29 30 30 include Makefile.common 31 include ../../../../Makefile.config 31 32 32 33 .PHONY: all clean … … 34 35 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 36 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 37 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 38 38 39 clean: … … 45 46 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 46 47 done 47 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs48 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 48 49 find . -name '*.o' -follow -exec rm \{\} \; 49 50 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ia64/loader/Makefile.build
r50f9c3a r61c0402 49 49 boot.S 50 50 51 COMPONENTS = \52 $(KERNELDIR)/kernel.bin \53 $(USPACEDIR)/srv/ns/ns \54 $(USPACEDIR)/srv/loader/loader \55 $(USPACEDIR)/app/init/init \56 $(USPACEDIR)/srv/devmap/devmap \57 $(USPACEDIR)/srv/bd/rd/rd \58 $(USPACEDIR)/srv/vfs/vfs59 ifeq ($(RDFMT),tmpfs)60 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs61 endif62 ifeq ($(RDFMT),fat)63 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat64 endif65 66 51 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 67 52 COMPONENT_OBJECTS := $(addsuffix .co,$(basename $(notdir $(COMPONENTS)))) $(INITRD).co … … 81 66 %.o: %.S $(DEPEND) 82 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 83 71 84 72 %.o: %.c $(DEPEND) 85 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 86 77 87 78 $(DEPEND): -
boot/arch/ia64/loader/Makefile.common
r50f9c3a r61c0402 31 31 # 32 32 33 include ../../../../Makefile.config 34 include ../../../Makefile.common 35 33 36 DEPEND = Makefile.depend 34 37 DEPEND_PREV = $(DEPEND).prev 38 JOB = image.job 35 39 OUTPUT = image.boot 36 40 HELLO = hello.efi … … 38 42 LINK = _link.ld 39 43 COMPS = _components 40 INITRD = initrd41 44 42 45 KERNELDIR = ../../../../kernel 43 46 USPACEDIR = ../../../../uspace 44 47 45 RD_SRVS = \ 46 $(USPACEDIR)/srv/fb/fb \ 47 $(USPACEDIR)/srv/kbd/kbd \ 48 $(USPACEDIR)/srv/console/console \ 49 $(USPACEDIR)/srv/fs/devfs/devfs \ 50 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 51 $(USPACEDIR)/srv/fs/fat/fat \ 52 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 53 $(USPACEDIR)/srv/part/mbr_part/mbr_part 54 55 RD_APPS = \ 56 $(USPACEDIR)/app/edit/edit \ 57 $(USPACEDIR)/app/getvc/getvc \ 58 $(USPACEDIR)/app/redir/redir \ 59 $(USPACEDIR)/app/tetris/tetris \ 60 $(USPACEDIR)/app/tester/tester \ 61 $(USPACEDIR)/app/trace/trace \ 62 $(USPACEDIR)/app/klog/klog \ 63 $(USPACEDIR)/app/bdsh/bdsh 48 ifeq ($(MACHINE),i460GX) 49 RD_SRVS += \ 50 $(USPACEDIR)/srv/hw/char/i8042/i8042 \ 51 $(USPACEDIR)/srv/hid/c_mouse/c_mouse 52 endif -
boot/arch/ia64/loader/Makefile.toolchain
r50f9c3a r61c0402 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/mips32/Makefile.inc
r50f9c3a r61c0402 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/mips32/loader/Makefile
r50f9c3a r61c0402 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/mips32/loader/Makefile.build
r50f9c3a r61c0402 49 49 boot.S 50 50 51 COMPONENTS = \52 $(KERNELDIR)/kernel.bin \53 $(USPACEDIR)/srv/ns/ns \54 $(USPACEDIR)/srv/loader/loader \55 $(USPACEDIR)/app/init/init \56 $(USPACEDIR)/srv/devmap/devmap \57 $(USPACEDIR)/srv/bd/rd/rd \58 $(USPACEDIR)/srv/vfs/vfs59 ifeq ($(RDFMT),tmpfs)60 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs61 endif62 ifeq ($(RDFMT),fat)63 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat64 endif65 66 51 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 67 52 COMPONENT_OBJECTS := $(addsuffix .co,$(basename $(notdir $(COMPONENTS)))) $(INITRD).co … … 81 66 %.o: %.S $(DEPEND) 82 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 83 71 84 72 %.o: %.c $(DEPEND) 85 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 86 77 87 78 $(DEPEND): -
boot/arch/mips32/loader/Makefile.common
r50f9c3a r61c0402 31 31 # 32 32 33 include ../../../Makefile.common 34 33 35 DEPEND = Makefile.depend 34 36 DEPEND_PREV = $(DEPEND).prev 35 37 RAW = image.raw 38 JOB = image.job 36 39 OUTPUT = image.boot 37 40 38 41 LINK = _link.ld 39 42 COMPS = _components 40 INITRD = initrd41 43 42 44 KERNELDIR = ../../../../kernel 43 45 USPACEDIR = ../../../../uspace 44 46 45 RD_SRVS = \ 46 $(USPACEDIR)/srv/fb/fb \ 47 $(USPACEDIR)/srv/kbd/kbd \ 48 $(USPACEDIR)/srv/console/console \ 49 $(USPACEDIR)/srv/fs/devfs/devfs \ 50 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 51 $(USPACEDIR)/srv/fs/fat/fat \ 52 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 53 $(USPACEDIR)/srv/part/mbr_part/mbr_part \ 54 $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd 55 56 RD_APPS = \ 57 $(USPACEDIR)/app/edit/edit \ 58 $(USPACEDIR)/app/getvc/getvc \ 59 $(USPACEDIR)/app/redir/redir \ 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 47 RD_SRVS += $(USPACEDIR)/srv/bd/gxe_bd/gxe_bd -
boot/arch/mips32/loader/Makefile.toolchain
r50f9c3a r61c0402 37 37 TARGET = mipsel-linux-gnu 38 38 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin 39 40 JOBFILE = ../../../../tools/jobfile.py 39 41 40 42 ifeq ($(MACHINE),lgxemul) -
boot/arch/ppc32/Makefile.inc
r50f9c3a r61c0402 27 27 # 28 28 29 TMP = distroot 29 include Makefile.common 30 30 31 31 build: $(BASE)/image.iso … … 42 42 43 43 arch/$(BARCH)/loader/image.boot: 44 $(MAKE) -C arch/$(BARCH)/loader 44 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 45 45 46 46 clean: generic_clean -
boot/arch/ppc32/loader/Makefile
r50f9c3a r61c0402 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ppc32/loader/Makefile.build
r50f9c3a r61c0402 52 52 boot.S 53 53 54 COMPONENTS = \55 $(KERNELDIR)/kernel.bin \56 $(USPACEDIR)/srv/ns/ns \57 $(USPACEDIR)/app/init/init \58 $(USPACEDIR)/srv/loader/loader \59 $(USPACEDIR)/srv/devmap/devmap \60 $(USPACEDIR)/srv/bd/rd/rd \61 $(USPACEDIR)/srv/vfs/vfs62 ifeq ($(RDFMT),tmpfs)63 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs64 endif65 ifeq ($(RDFMT),fat)66 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat67 endif68 69 54 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 70 55 COMPONENT_OBJECTS := $(addsuffix .co,$(basename $(notdir $(COMPONENTS)))) $(INITRD).co … … 81 66 %.o: %.S $(DEPEND) 82 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 83 71 84 72 %.o: %.c $(DEPEND) 85 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 86 77 87 78 $(DEPEND): -
boot/arch/ppc32/loader/Makefile.common
r50f9c3a r61c0402 31 31 # 32 32 33 include ../../../Makefile.common 34 33 35 DEPEND = Makefile.depend 34 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 35 38 OUTPUT = image.boot 36 39 37 40 LINK = _link.ld 38 41 COMPS = _components 39 INITRD = initrd40 42 41 43 KERNELDIR = ../../../../kernel 42 44 USPACEDIR = ../../../../uspace 43 44 RD_SRVS = \45 $(USPACEDIR)/srv/fb/fb \46 $(USPACEDIR)/srv/kbd/kbd \47 $(USPACEDIR)/srv/console/console \48 $(USPACEDIR)/srv/fs/devfs/devfs \49 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \50 $(USPACEDIR)/srv/fs/fat/fat \51 $(USPACEDIR)/srv/bd/file_bd/file_bd \52 $(USPACEDIR)/srv/part/mbr_part/mbr_part53 54 RD_APPS = \55 $(USPACEDIR)/app/edit/edit \56 $(USPACEDIR)/app/getvc/getvc \57 $(USPACEDIR)/app/redir/redir \58 $(USPACEDIR)/app/tetris/tetris \59 $(USPACEDIR)/app/tester/tester \60 $(USPACEDIR)/app/trace/trace \61 $(USPACEDIR)/app/klog/klog \62 $(USPACEDIR)/app/bdsh/bdsh -
boot/arch/ppc32/loader/Makefile.toolchain
r50f9c3a r61c0402 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/sparc64/Makefile.inc
r50f9c3a r61c0402 27 27 # 28 28 29 TMP = distroot 29 include Makefile.common 30 30 31 31 ifeq ($(CONFIG_AOUT_ISOFS_B),y) … … 55 55 56 56 arch/$(BARCH)/loader/image.boot: 57 $(MAKE) -C arch/$(BARCH)/loader 57 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 58 58 59 59 clean: generic_clean -
boot/arch/sparc64/loader/Makefile
r50f9c3a r61c0402 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/sparc64/loader/Makefile.build
r50f9c3a r61c0402 52 52 boot.S 53 53 54 COMPONENTS = \55 $(KERNELDIR)/kernel.bin \56 $(USPACEDIR)/srv/ns/ns \57 $(USPACEDIR)/app/init/init \58 $(USPACEDIR)/srv/loader/loader \59 $(USPACEDIR)/srv/devmap/devmap \60 $(USPACEDIR)/srv/bd/rd/rd \61 $(USPACEDIR)/srv/vfs/vfs62 ifeq ($(RDFMT),tmpfs)63 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs64 endif65 ifeq ($(RDFMT),fat)66 COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat67 endif68 69 54 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 70 55 … … 92 77 %.o: %.S $(DEPEND) 93 78 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 79 ifeq ($(PRECHECK),y) 80 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 81 endif 94 82 95 83 %.o: %.c $(DEPEND) 96 84 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 85 ifeq ($(PRECHECK),y) 86 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 87 endif 97 88 98 89 $(DEPEND): -
boot/arch/sparc64/loader/Makefile.common
r50f9c3a r61c0402 31 31 # 32 32 33 include ../../../Makefile.common 34 33 35 DEPEND = Makefile.depend 34 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 35 38 OUTPUT = image.boot 36 39 37 40 LINK = _link.ld 38 41 COMPS = _components 39 INITRD = initrd40 42 41 43 KERNELDIR = ../../../../kernel 42 44 USPACEDIR = ../../../../uspace 43 45 44 RD_SRVS = \45 $(USPACEDIR)/srv/fb/fb \46 $(USPACEDIR)/srv/kbd/kbd \47 $(USPACEDIR)/srv/console/console \48 $(USPACEDIR)/srv/fs/devfs/devfs \49 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \50 $(USPACEDIR)/srv/bd/file_bd/file_bd \51 $(USPACEDIR)/srv/part/mbr_part/mbr_part52 53 RD_APPS = \54 $(USPACEDIR)/app/edit/edit \55 $(USPACEDIR)/app/getvc/getvc \56 $(USPACEDIR)/app/redir/redir \57 $(USPACEDIR)/app/tetris/tetris \58 $(USPACEDIR)/app/trace/trace \59 $(USPACEDIR)/app/klog/klog \60 $(USPACEDIR)/app/bdsh/bdsh61 62 46 RD_SRVS_GENERIC = \ 63 47 $(USPACEDIR)/srv/fs/fat/fat \ 64 $(USPACEDIR)/srv/ cir/fhc/fhc \65 $(USPACEDIR)/srv/ cir/obio/obio48 $(USPACEDIR)/srv/hw/cir/fhc/fhc \ 49 $(USPACEDIR)/srv/hw/cir/obio/obio 66 50 67 51 RD_APPS_GENERIC = \ -
boot/arch/sparc64/loader/Makefile.toolchain
r50f9c3a r61c0402 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc
Note:
See TracChangeset
for help on using the changeset viewer.
