Changes in boot/arch/amd64/Makefile.inc [3052ff4:b3d513f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/amd64/Makefile.inc
r3052ff4 rb3d513f 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/tetris/tetris \ 61 $(USPACEDIR)/app/tester/tester \ 62 $(USPACEDIR)/app/trace/trace \ 63 $(USPACEDIR)/app/klog/klog \ 64 $(USPACEDIR)/app/bdsh/bdsh 37 MODULES := $(notdir $(COMPONENTS)) 65 38 66 39 build: $(BASE)/image.iso 67 40 68 $(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) 69 42 mkdir -p $(TMP)/boot/grub 70 43 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 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 77 58 cp $(KERNELDIR)/kernel.bin $(TMP)/boot/ 78 59 for task in $(INIT_TASKS) ; do \ … … 85 66 cp $$file $(USPACEDIR)/dist/app/ ; \ 86 67 done 68 87 69 ifeq ($(RDFMT),tmpfs) 88 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/ initrd.fs70 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/$(INITRD).fs 89 71 endif 90 72 ifeq ($(RDFMT),fat) 91 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/ initrd.fs73 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/$(INITRD).fs 92 74 endif 93 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/ initrd.fs $(TMP)/boot/initrd.img94 rm $(TMP)/boot/ initrd.fs75 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/$(INITRD).fs $(TMP)/boot/$(INITRD).img 76 rm $(TMP)/boot/$(INITRD).fs 95 77 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $@ $(TMP)/ 96 78 97 79 clean: 98 -for file in $(RD_SRVS) ; do \80 for file in $(RD_SRVS) ; do \ 99 81 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 100 82 done 101 -for file in $(RD_APPS) ; do \83 for file in $(RD_APPS) ; do \ 102 84 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 103 85 done 104 -rm -fr $(TMP)105 -rm -f $(BASE)/image.iso86 rm -fr $(TMP) 87 rm -f $(BASE)/image.iso
Note:
See TracChangeset
for help on using the changeset viewer.