Subversion Repositories HelenOS

Rev

Rev 3157 | Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3157 Rev 3400
Line 42... Line 42...
42
	$(USPACEDIR)/srv/console/console \
42
	$(USPACEDIR)/srv/console/console \
43
	$(USPACEDIR)/srv/fs/fat/fat \
43
	$(USPACEDIR)/srv/fs/fat/fat \
44
	$(USPACEDIR)/app/tetris/tetris \
44
	$(USPACEDIR)/app/tetris/tetris \
45
	$(USPACEDIR)/app/tester/tester \
45
	$(USPACEDIR)/app/tester/tester \
46
	$(USPACEDIR)/app/cli/cli \
46
	$(USPACEDIR)/app/cli/cli \
-
 
47
	$(USPACEDIR)/app/dltest/dltest \
47
	$(USPACEDIR)/app/klog/klog
48
	$(USPACEDIR)/app/klog/klog
48
 
49
 
-
 
50
RD_LIBS = \
-
 
51
	$(USPACEDIR)/lib/rtld/rtld.so \
-
 
52
	$(USPACEDIR)/lib/libc-shared/libc.so.0
-
 
53
 
49
build: $(BASE)/image.iso
54
build: $(BASE)/image.iso
50
 
55
 
51
$(BASE)/image.iso: arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_TASKS)
56
$(BASE)/image.iso: arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(INIT_TASKS) $(RD_TASKS) $(RD_LIBS)
52
	mkdir -p arch/$(ARCH)/iso/boot/grub
57
	mkdir -p arch/$(ARCH)/iso/boot/grub
53
	cp arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/
58
	cp arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/
54
	cp arch/$(ARCH)/grub/menu.lst arch/$(ARCH)/iso/boot/grub/
59
	cp arch/$(ARCH)/grub/menu.lst arch/$(ARCH)/iso/boot/grub/
55
	cp $(KERNELDIR)/kernel.bin arch/$(ARCH)/iso/boot/
60
	cp $(KERNELDIR)/kernel.bin arch/$(ARCH)/iso/boot/
56
	for task in $(INIT_TASKS) ; do \
61
	for task in $(INIT_TASKS) ; do \
57
		cp $$task arch/$(ARCH)/iso/boot/ ; \
62
		cp $$task arch/$(ARCH)/iso/boot/ ; \
58
	done
63
	done
59
	for task in $(RD_TASKS) ; do \
64
	for task in $(RD_TASKS) ; do \
60
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
65
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
61
	done
66
	done
-
 
67
	for task in $(RD_LIBS) ; do \
-
 
68
		cp $$task $(USPACEDIR)/dist/lib/ ; \
-
 
69
	done
62
	$(BASE)/tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.img
70
	$(BASE)/tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.img
63
	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/
71
	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/
64
 
72
 
65
clean:
73
clean:
66
	-for task in $(RD_TASKS) ; do \
74
	-for task in $(RD_TASKS) ; do \
67
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
75
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
68
	done
76
	done
-
 
77
	-for lib in $(RD_LIBS) ; do \
-
 
78
		rm -f $(USPACEDIR)/dist/lib/`basename $$lib` ; \
-
 
79
	done
69
	-rm -fr arch/$(ARCH)/iso
80
	-rm -fr arch/$(ARCH)/iso
70
	-rm -f $(BASE)/image.iso
81
	-rm -f $(BASE)/image.iso