Rev 4307 | Rev 4581 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4307 | Rev 4327 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 |
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. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
- | 29 | TMP = distroot |
|
- | 30 | ||
29 | INIT_TASKS = \ |
31 | INIT_TASKS = \ |
30 | $(USPACEDIR)/srv/ns/ns \ |
32 | $(USPACEDIR)/srv/ns/ns \ |
31 | $(USPACEDIR)/srv/loader/loader \ |
33 | $(USPACEDIR)/srv/loader/loader \ |
32 | $(USPACEDIR)/app/init/init \ |
34 | $(USPACEDIR)/app/init/init \ |
33 | $(USPACEDIR)/srv/devmap/devmap \ |
35 | $(USPACEDIR)/srv/devmap/devmap \ |
34 | $(USPACEDIR)/srv/rd/rd \ |
36 | $(USPACEDIR)/srv/rd/rd \ |
35 | $(USPACEDIR)/srv/vfs/vfs |
37 | $(USPACEDIR)/srv/vfs/vfs |
36 | ifeq ($(RDFMT),tmpfs) |
38 | ifeq ($(RDFMT),tmpfs) |
37 | INIT_TASKS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs |
39 | INIT_TASKS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs |
38 | endif |
40 | endif |
39 | ifeq ($(RDFMT),fat) |
41 | ifeq ($(RDFMT),fat) |
40 | INIT_TASKS += $(USPACEDIR)/srv/fs/fat/fat |
42 | INIT_TASKS += $(USPACEDIR)/srv/fs/fat/fat |
41 | endif |
43 | endif |
42 | 44 | ||
43 | RD_SRVS = \ |
45 | RD_SRVS = \ |
44 | $(USPACEDIR)/srv/pci/pci \ |
- | |
45 | $(USPACEDIR)/srv/fb/fb \ |
- | |
46 | $(USPACEDIR)/srv/kbd/kbd \ |
- | |
47 | $(USPACEDIR)/srv/console/console \ |
- | |
48 | $(USPACEDIR)/srv/fs/fat/fat \ |
- | |
49 | $(USPACEDIR)/srv/net/net/net \ |
46 | $(USPACEDIR)/srv/net/net/net \ |
50 | $(USPACEDIR)/srv/net/net/start/netstart \ |
47 | $(USPACEDIR)/srv/net/net/start/netstart \ |
51 | $(USPACEDIR)/srv/net/netif/lo/lo \ |
48 | $(USPACEDIR)/srv/net/netif/lo/lo \ |
52 | $(USPACEDIR)/srv/net/netif/dp8390/dp8390 \ |
49 | $(USPACEDIR)/srv/net/netif/dp8390/dp8390 \ |
53 | $(USPACEDIR)/srv/net/nil/eth/eth |
50 | $(USPACEDIR)/srv/net/nil/eth/eth \ |
- | 51 | $(USPACEDIR)/srv/pci/pci \ |
|
- | 52 | $(USPACEDIR)/srv/fb/fb \ |
|
- | 53 | $(USPACEDIR)/srv/kbd/kbd \ |
|
- | 54 | $(USPACEDIR)/srv/console/console \ |
|
- | 55 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ |
|
- | 56 | $(USPACEDIR)/srv/fs/fat/fat |
|
54 | 57 | ||
55 | RD_APPS = \ |
58 | RD_APPS = \ |
56 | $(USPACEDIR)/app/tetris/tetris \ |
59 | $(USPACEDIR)/app/tetris/tetris \ |
57 | $(USPACEDIR)/app/tester/tester \ |
60 | $(USPACEDIR)/app/tester/tester \ |
58 | $(USPACEDIR)/app/trace/trace \ |
61 | $(USPACEDIR)/app/trace/trace \ |
Line 70... | Line 73... | ||
70 | endif |
73 | endif |
71 | 74 | ||
72 | build: $(BASE)/image.iso |
75 | build: $(BASE)/image.iso |
73 | 76 | ||
74 | $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) |
77 | $(BASE)/image.iso: arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_SRVS) $(RD_APPS) |
75 | mkdir -p arch/$(BARCH)/iso/boot/grub |
78 | mkdir -p $(TMP)/boot/grub |
76 | cp arch/$(BARCH)/grub/stage2_eltorito arch/$(BARCH)/iso/boot/grub/ |
79 | cp arch/$(BARCH)/grub/stage2_eltorito $(TMP)/boot/grub/ |
77 | ifneq ($(RDFMT),tmpfs) |
80 | ifneq ($(RDFMT),tmpfs) |
78 | cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(BARCH)/iso/boot/grub/menu.lst |
81 | cat arch/$(BARCH)/grub/menu.lst | grep -v "tmpfs" > $(TMP)/boot/grub/menu.lst |
79 | endif |
82 | endif |
80 | ifneq ($(RDFMT),fat) |
83 | ifneq ($(RDFMT),fat) |
81 | cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" >arch/$(BARCH)/iso/boot/grub/menu.lst |
84 | cat arch/$(BARCH)/grub/menu.lst | grep -v "fat" > $(TMP)/boot/grub/menu.lst |
82 | endif |
85 | endif |
83 | cp $(KERNELDIR)/kernel.bin arch/$(BARCH)/iso/boot/ |
86 | cp $(KERNELDIR)/kernel.bin $(TMP)/boot/ |
84 | for task in $(INIT_TASKS) ; do \ |
87 | for task in $(INIT_TASKS) ; do \ |
85 | cp $$task arch/$(BARCH)/iso/boot/ ; \ |
88 | cp $$task $(TMP)/boot/ ; \ |
86 | done |
89 | done |
87 | for file in $(RD_SRVS) ; do \ |
90 | for file in $(RD_SRVS) ; do \ |
88 | cp $$file $(USPACEDIR)/dist/srv/ ; \ |
91 | cp $$file $(USPACEDIR)/dist/srv/ ; \ |
89 | done |
92 | done |
90 | for file in $(RD_APPS) ; do \ |
93 | for file in $(RD_APPS) ; do \ |
91 | cp $$file $(USPACEDIR)/dist/app/ ; \ |
94 | cp $$file $(USPACEDIR)/dist/app/ ; \ |
92 | done |
95 | done |
93 | ifeq ($(RDFMT),tmpfs) |
96 | ifeq ($(RDFMT),tmpfs) |
94 | $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs |
97 | $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs |
95 | endif |
98 | endif |
96 | ifeq ($(RDFMT),fat) |
99 | ifeq ($(RDFMT),fat) |
97 | $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ arch/$(BARCH)/iso/boot/initrd.fs |
100 | $(BASE)/tools/mkfat.py $(USPACEDIR)/dist/ $(TMP)/boot/initrd.fs |
98 | endif |
101 | endif |
99 | $(BASE)/tools/mkhord.py 4096 arch/$(BARCH)/iso/boot/initrd.fs arch/$(BARCH)/iso/boot/initrd.img |
102 | $(BASE)/tools/mkhord.py 4096 $(TMP)/boot/initrd.fs $(TMP)/boot/initrd.img |
100 | rm arch/$(BARCH)/iso/boot/initrd.fs |
103 | rm $(TMP)/boot/initrd.fs |
101 | 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/ |
104 | mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $@ $(TMP)/ |
102 | 105 | ||
103 | clean: |
106 | clean: |
104 | -for file in $(RD_SRVS) ; do \ |
107 | -for file in $(RD_SRVS) ; do \ |
105 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
108 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
106 | done |
109 | done |
107 | -for file in $(RD_APPS) ; do \ |
110 | -for file in $(RD_APPS) ; do \ |
108 | rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ |
111 | rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ |
109 | done |
112 | done |
110 | -rm -fr arch/$(BARCH)/iso |
113 | -rm -fr $(TMP) |
111 | -rm -f $(BASE)/image.iso |
114 | -rm -f $(BASE)/image.iso |