Rev 4336 | Rev 4348 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4336 | Rev 4342 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | $(USPACEDIR)/lib/libc/shared/libc.so.0 \ |
61 | $(USPACEDIR)/lib/libc/shared/libc.so.0 \ |
62 | $(USPACEDIR)/lib/libtest/libtest.so.0 |
62 | $(USPACEDIR)/lib/libtest/libtest.so.0 |
63 | 63 | ||
64 | build: $(BASE)/image.iso |
64 | build: $(BASE)/image.iso |
65 | 65 | ||
66 | $(BASE)/image.iso: arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_LIBS) $(RD_APPS) |
66 | $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_LIBS) $(RD_APPS) |
67 | mkdir -p arch/$(ARCH)/iso/boot/grub |
67 | mkdir -p arch/$(BARCH)/iso/boot/grub |
68 | cp arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/ |
68 | cp arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/iso/boot/grub/ |
69 | ifneq ($(RDFMT),tmpfs) |
69 | ifneq ($(RDFMT),tmpfs) |
70 | cat arch/$(ARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(ARCH)/iso/boot/grub/menu.lst |
70 | cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(BARCH)/iso/boot/grub/menu.lst |
71 | endif |
71 | endif |
72 | ifneq ($(RDFMT),fat) |
72 | ifneq ($(RDFMT),fat) |
73 | cat arch/$(ARCH)/grub/menu.lst | grep -v "fat" >arch/$(ARCH)/iso/boot/grub/menu.lst |
73 | cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" >arch/$(BARCH)/iso/boot/grub/menu.lst |
74 | endif |
74 | endif |
75 | cp $(KERNELDIR)/kernel.bin arch/$(ARCH)/iso/boot/ |
75 | cp $(KERNELDIR)/kernel.bin arch/$(BARCH)/iso/boot/ |
76 | for task in $(INIT_TASKS) ; do \ |
76 | for task in $(INIT_TASKS) ; do \ |
77 | cp $$task arch/$(ARCH)/iso/boot/ ; \ |
77 | cp $$task arch/$(BARCH)/iso/boot/ ; \ |
78 | done |
78 | done |
79 | for file in $(RD_SRVS) ; do \ |
79 | for file in $(RD_SRVS) ; do \ |
80 | cp $$file $(USPACEDIR)/dist/srv/ ; \ |
80 | cp $$file $(USPACEDIR)/dist/srv/ ; \ |
81 | done |
81 | done |
82 | for lib in $(RD_LIBS) ; do \ |
82 | for lib in $(RD_LIBS) ; do \ |
Line 84... | Line 84... | ||
84 | done |
84 | done |
85 | for file in $(RD_APPS) ; do \ |
85 | for file in $(RD_APPS) ; do \ |
86 | cp $$file $(USPACEDIR)/dist/app/ ; \ |
86 | cp $$file $(USPACEDIR)/dist/app/ ; \ |
87 | done |
87 | done |
88 | ifeq ($(RDFMT),tmpfs) |
88 | ifeq ($(RDFMT),tmpfs) |
89 | $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.fs |
89 | $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs |
90 | endif |
90 | endif |
91 | ifeq ($(RDFMT),fat) |
91 | ifeq ($(RDFMT),fat) |
92 | $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.fs |
92 | $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs |
93 | endif |
93 | endif |
94 | $(BASE)/tools/mkhord.py 4096 arch/$(ARCH)/iso/boot/initrd.fs arch/$(ARCH)/iso/boot/initrd.img |
94 | $(BASE)/tools/mkhord.py 4096 arch/$(BARCH)/iso/boot/initrd.fs arch/$(BARCH)/iso/boot/initrd.img |
95 | rm arch/$(ARCH)/iso/boot/initrd.fs |
95 | rm arch/$(BARCH)/iso/boot/initrd.fs |
96 | mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$(ARCH)/iso/ |
96 | mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$(BARCH)/iso/ |
97 | 97 | ||
98 | clean: |
98 | clean: |
99 | -for file in $(RD_SRVS) ; do \ |
99 | -for file in $(RD_SRVS) ; do \ |
100 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
100 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
101 | done |
101 | done |
Line 103... | Line 103... | ||
103 | rm -f $(USPACEDIR)/dist/lib/`basename $$lib` ; \ |
103 | rm -f $(USPACEDIR)/dist/lib/`basename $$lib` ; \ |
104 | done |
104 | done |
105 | -for file in $(RD_APPS) ; do \ |
105 | -for file in $(RD_APPS) ; do \ |
106 | rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ |
106 | rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ |
107 | done |
107 | done |
108 | -rm -fr arch/$(ARCH)/iso |
108 | -rm -fr arch/$(BARCH)/iso |
109 | -rm -f $(BASE)/image.iso |
109 | -rm -f $(BASE)/image.iso |