Changes in boot/arch/amd64/Makefile.inc [b3d513f:3052ff4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/amd64/Makefile.inc
rb3d513f r3052ff4 27 27 # 28 28 29 include Makefile.common 29 TMP = distroot 30 30 31 RD_SRVS += \ 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 \ 32 53 $(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 54 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 55 $(USPACEDIR)/srv/part/mbr_part/mbr_part 36 56 37 MODULES := $(notdir $(COMPONENTS)) 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 38 65 39 66 build: $(BASE)/image.iso 40 67 41 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS)68 $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) 42 69 mkdir -p $(TMP)/boot/grub 43 70 cp arch/$(BARCH)/grub/stage2_eltorito $(TMP)/boot/grub/ 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 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 58 77 cp $(KERNELDIR)/kernel.bin $(TMP)/boot/ 59 78 for task in $(INIT_TASKS) ; do \ … … 66 85 cp $$file $(USPACEDIR)/dist/app/ ; \ 67 86 done 68 69 87 ifeq ($(RDFMT),tmpfs) 70 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/ $(INITRD).fs88 $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs 71 89 endif 72 90 ifeq ($(RDFMT),fat) 73 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/ $(INITRD).fs91 $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs 74 92 endif 75 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/ $(INITRD).fs $(TMP)/boot/$(INITRD).img76 rm $(TMP)/boot/ $(INITRD).fs93 $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/initrd.fs $(TMP)/boot/initrd.img 94 rm $(TMP)/boot/initrd.fs 77 95 mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $@ $(TMP)/ 78 96 79 97 clean: 80 for file in $(RD_SRVS) ; do \98 -for file in $(RD_SRVS) ; do \ 81 99 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ 82 100 done 83 for file in $(RD_APPS) ; do \101 -for file in $(RD_APPS) ; do \ 84 102 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 85 103 done 86 rm -fr $(TMP)87 rm -f $(BASE)/image.iso104 -rm -fr $(TMP) 105 -rm -f $(BASE)/image.iso
Note:
See TracChangeset
for help on using the changeset viewer.