Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 213 lines (197 sloc) 12.065 kB
86ae92f @jezze Added a proper makefile
authored
1 #!/bin/sh
2
3 ARCH=x86
4
13f84e1 @jezze moved makefile to top directory
authored
5 DIR_IMAGE=build/root
6 DIR_SOURCE_BIN=bin
7 DIR_SOURCE_KERNEL=kernel
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
8 DIR_SOURCE_ARCH=kernel/arch/${ARCH}
13f84e1 @jezze moved makefile to top directory
authored
9 DIR_SOURCE_LIB=lib
10 DIR_SOURCE_MODULES=modules
86ae92f @jezze Added a proper makefile
authored
11
12 ASM=nasm
13 ASMFLAGS=-f elf
14 GCC=gcc
6d5b121 @Max-Might Make it possible to build the OS on a x86_64 host.
Max-Might authored
15 GCCFLAGS=-c -O2 -Iinclude -Wall -Wextra -ffreestanding -nostdlib -nostartfiles -nodefaultlibs -m32
16 GCCFLAGS_RAMDISK=-c -O2 -Iinclude/lib -Wall -Wextra -ffreestanding -nostdlib -nostartfiles -nodefaultlibs -m32
86ae92f @jezze Added a proper makefile
authored
17 LD=ld
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
18 LDFLAGS=-T${DIR_SOURCE_ARCH}/linker.ld -melf_i386
6d5b121 @Max-Might Make it possible to build the OS on a x86_64 host.
Max-Might authored
19 LDFLAGS_RAMDISK=-e main -melf_i386
86ae92f @jezze Added a proper makefile
authored
20
17321f5 @jezze modified Makefile some
authored
21 .PHONY: lib arch-x86 modules kernel ramdisk image iso clean
86ae92f @jezze Added a proper makefile
authored
22
17321f5 @jezze modified Makefile some
authored
23 all: ramdisk
86ae92f @jezze Added a proper makefile
authored
24
25 lib:
c129e0e @jezze Large module cleanup
authored
26 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_LIB}/file.c -o ${DIR_SOURCE_LIB}/file.o
27 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_LIB}/memory.c -o ${DIR_SOURCE_LIB}/memory.o
28 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_LIB}/string.c -o ${DIR_SOURCE_LIB}/string.o
86ae92f @jezze Added a proper makefile
authored
29
17321f5 @jezze modified Makefile some
authored
30 arch-x86: lib
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
31 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/arch.c -o ${DIR_SOURCE_ARCH}/arch.o
32 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/calls.s -o ${DIR_SOURCE_ARCH}/calls.o
33 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/cpu.s -o ${DIR_SOURCE_ARCH}/cpu.o
34 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/fpu.c -o ${DIR_SOURCE_ARCH}/fpu.o
35 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/fpus.s -o ${DIR_SOURCE_ARCH}/fpus.o
36 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/gdt.c -o ${DIR_SOURCE_ARCH}/gdt.o
37 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/gdts.s -o ${DIR_SOURCE_ARCH}/gdts.o
38 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/idt.c -o ${DIR_SOURCE_ARCH}/idt.o
39 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/idts.s -o ${DIR_SOURCE_ARCH}/idts.o
40 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/init.s -o ${DIR_SOURCE_ARCH}/init.o
41 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/irq.c -o ${DIR_SOURCE_ARCH}/irq.o
42 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/irqs.s -o ${DIR_SOURCE_ARCH}/irqs.o
43 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/isr.c -o ${DIR_SOURCE_ARCH}/isr.o
44 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/isrs.s -o ${DIR_SOURCE_ARCH}/isrs.o
45 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/mmu.c -o ${DIR_SOURCE_ARCH}/mmu.o
46 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/mboot.c -o ${DIR_SOURCE_ARCH}/mboot.o
47 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/syscall.c -o ${DIR_SOURCE_ARCH}/syscall.o
48 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_ARCH}/tss.c -o ${DIR_SOURCE_ARCH}/tss.o
49 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_ARCH}/tsss.s -o ${DIR_SOURCE_ARCH}/tsss.o
86ae92f @jezze Added a proper makefile
authored
50
17321f5 @jezze modified Makefile some
authored
51 modules: lib
d522f76 @jezze restructured alot
authored
52 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/ata/ata.c -o ${DIR_SOURCE_MODULES}/ata/ata.o
17321f5 @jezze modified Makefile some
authored
53 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/elf/elf.c -o ${DIR_SOURCE_MODULES}/elf/elf.o
d522f76 @jezze restructured alot
authored
54 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/io/io.c -o ${DIR_SOURCE_MODULES}/io/io.o
55 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_MODULES}/io/ios.s -o ${DIR_SOURCE_MODULES}/io/ios.o
56 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/kbd/kbd.c -o ${DIR_SOURCE_MODULES}/kbd/kbd.o
57 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/pci/pci.c -o ${DIR_SOURCE_MODULES}/pci/pci.o
58 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/pit/pit.c -o ${DIR_SOURCE_MODULES}/pit/pit.o
59 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/rtc/rtc.c -o ${DIR_SOURCE_MODULES}/rtc/rtc.o
ae898e5 @jezze changed some headers
authored
60 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/rtl8139/rtl8139.c -o ${DIR_SOURCE_MODULES}/rtl8139/rtl8139.o
d522f76 @jezze restructured alot
authored
61 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/serial/serial.c -o ${DIR_SOURCE_MODULES}/serial/serial.o
2aaa2da @jezze added stream device and changed how fudge handles device numbering
authored
62 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/stream/stream.c -o ${DIR_SOURCE_MODULES}/stream/stream.o
17321f5 @jezze modified Makefile some
authored
63 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/tty/tty.c -o ${DIR_SOURCE_MODULES}/tty/tty.o
d522f76 @jezze restructured alot
authored
64 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_MODULES}/vga/vga.c -o ${DIR_SOURCE_MODULES}/vga/vga.o
efac7c3 @jezze updated makefile
authored
65 @cp ${DIR_SOURCE_MODULES}/ata/ata.o ${DIR_IMAGE}/lib/modules/ata.ko
ea649d6 @jezze updated Makefile
authored
66 @cp ${DIR_SOURCE_MODULES}/elf/elf.o ${DIR_IMAGE}/lib/modules/elf.ko
67 @cp ${DIR_SOURCE_MODULES}/io/io.o ${DIR_IMAGE}/lib/modules/io.ko
68 @cp ${DIR_SOURCE_MODULES}/io/ios.o ${DIR_IMAGE}/lib/modules/ios.ko
69 @cp ${DIR_SOURCE_MODULES}/kbd/kbd.o ${DIR_IMAGE}/lib/modules/kbd.ko
70 @cp ${DIR_SOURCE_MODULES}/pci/pci.o ${DIR_IMAGE}/lib/modules/pci.ko
71 @cp ${DIR_SOURCE_MODULES}/pit/pit.o ${DIR_IMAGE}/lib/modules/pit.ko
72 @cp ${DIR_SOURCE_MODULES}/rtc/rtc.o ${DIR_IMAGE}/lib/modules/rtc.ko
73 @cp ${DIR_SOURCE_MODULES}/rtl8139/rtl8139.o ${DIR_IMAGE}/lib/modules/rtl8139.ko
74 @cp ${DIR_SOURCE_MODULES}/serial/serial.o ${DIR_IMAGE}/lib/modules/serial.ko
75 @cp ${DIR_SOURCE_MODULES}/tty/tty.o ${DIR_IMAGE}/lib/modules/tty.ko
76 @cp ${DIR_SOURCE_MODULES}/vga/vga.o ${DIR_IMAGE}/lib/modules/vga.ko
17321f5 @jezze modified Makefile some
authored
77
78 kernel: arch-${ARCH} modules
b077dfc @jezze created error functions
authored
79 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/error.c -o ${DIR_SOURCE_KERNEL}/error.o
c129e0e @jezze Large module cleanup
authored
80 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/initrd.c -o ${DIR_SOURCE_KERNEL}/initrd.o
81 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/kernel.c -o ${DIR_SOURCE_KERNEL}/kernel.o
82 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/log.c -o ${DIR_SOURCE_KERNEL}/log.o
83 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/modules.c -o ${DIR_SOURCE_KERNEL}/modules.o
6991866 @jezze began work on runtime lib
authored
84 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/runtime.c -o ${DIR_SOURCE_KERNEL}/runtime.o
c129e0e @jezze Large module cleanup
authored
85 @${GCC} ${GCCFLAGS} ${DIR_SOURCE_KERNEL}/vfs.c -o ${DIR_SOURCE_KERNEL}/vfs.o
86 @${LD} ${LDFLAGS} \
b077dfc @jezze created error functions
authored
87 ${DIR_SOURCE_KERNEL}/error.o \
09ee8d2 @jezze more Makefile fixes
authored
88 ${DIR_SOURCE_KERNEL}/initrd.o \
89 ${DIR_SOURCE_KERNEL}/kernel.o \
90 ${DIR_SOURCE_KERNEL}/log.o \
91 ${DIR_SOURCE_KERNEL}/modules.o \
6991866 @jezze began work on runtime lib
authored
92 ${DIR_SOURCE_KERNEL}/runtime.o \
09ee8d2 @jezze more Makefile fixes
authored
93 ${DIR_SOURCE_KERNEL}/vfs.o \
d522f76 @jezze restructured alot
authored
94 ${DIR_SOURCE_MODULES}/ata/ata.o \
09ee8d2 @jezze more Makefile fixes
authored
95 ${DIR_SOURCE_MODULES}/elf/elf.o \
d522f76 @jezze restructured alot
authored
96 ${DIR_SOURCE_MODULES}/io/io.o \
97 ${DIR_SOURCE_MODULES}/io/ios.o \
98 ${DIR_SOURCE_MODULES}/kbd/kbd.o \
99 ${DIR_SOURCE_MODULES}/pci/pci.o \
100 ${DIR_SOURCE_MODULES}/pit/pit.o \
101 ${DIR_SOURCE_MODULES}/rtc/rtc.o \
ae898e5 @jezze changed some headers
authored
102 ${DIR_SOURCE_MODULES}/rtl8139/rtl8139.o \
d522f76 @jezze restructured alot
authored
103 ${DIR_SOURCE_MODULES}/serial/serial.o \
2aaa2da @jezze added stream device and changed how fudge handles device numbering
authored
104 ${DIR_SOURCE_MODULES}/stream/stream.o \
09ee8d2 @jezze more Makefile fixes
authored
105 ${DIR_SOURCE_MODULES}/tty/tty.o \
d522f76 @jezze restructured alot
authored
106 ${DIR_SOURCE_MODULES}/vga/vga.o \
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
107 ${DIR_SOURCE_ARCH}/arch.o \
108 ${DIR_SOURCE_ARCH}/calls.o \
109 ${DIR_SOURCE_ARCH}/cpu.o \
110 ${DIR_SOURCE_ARCH}/fpu.o \
111 ${DIR_SOURCE_ARCH}/fpus.o \
112 ${DIR_SOURCE_ARCH}/gdt.o \
113 ${DIR_SOURCE_ARCH}/gdts.o \
114 ${DIR_SOURCE_ARCH}/idt.o \
115 ${DIR_SOURCE_ARCH}/idts.o \
116 ${DIR_SOURCE_ARCH}/init.o \
117 ${DIR_SOURCE_ARCH}/irqs.o \
118 ${DIR_SOURCE_ARCH}/isrs.o \
119 ${DIR_SOURCE_ARCH}/irq.o \
120 ${DIR_SOURCE_ARCH}/isr.o \
121 ${DIR_SOURCE_ARCH}/mmu.o \
122 ${DIR_SOURCE_ARCH}/mboot.o \
123 ${DIR_SOURCE_ARCH}/syscall.o \
124 ${DIR_SOURCE_ARCH}/tss.o \
125 ${DIR_SOURCE_ARCH}/tsss.o \
09ee8d2 @jezze more Makefile fixes
authored
126 ${DIR_SOURCE_LIB}/memory.o \
127 ${DIR_SOURCE_LIB}/file.o \
128 ${DIR_SOURCE_LIB}/string.o \
129 -o ${DIR_IMAGE}/boot/kernel
86ae92f @jezze Added a proper makefile
authored
130
17321f5 @jezze modified Makefile some
authored
131 ramdisk: kernel
c129e0e @jezze Large module cleanup
authored
132 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cat.c -o ${DIR_SOURCE_BIN}/cat.o
133 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cd.c -o ${DIR_SOURCE_BIN}/cd.o
134 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/clear.c -o ${DIR_SOURCE_BIN}/clear.o
135 @${ASM} ${ASMFLAGS} ${DIR_SOURCE_BIN}/cpu.s -o ${DIR_SOURCE_BIN}/cpus.o
136 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cpu.c -o ${DIR_SOURCE_BIN}/cpu.o
137 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/date.c -o ${DIR_SOURCE_BIN}/date.o
138 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/echo.c -o ${DIR_SOURCE_BIN}/echo.o
139 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/elf.c -o ${DIR_SOURCE_BIN}/elf.o
140 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/hello.c -o ${DIR_SOURCE_BIN}/hello.o
295992b @jezze added init file
authored
141 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/init.c -o ${DIR_SOURCE_BIN}/init.o
c129e0e @jezze Large module cleanup
authored
142 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/ls.c -o ${DIR_SOURCE_BIN}/ls.o
143 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/reboot.c -o ${DIR_SOURCE_BIN}/reboot.o
d352764 @jezze created beginning of a user space shell
authored
144 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/shell.c -o ${DIR_SOURCE_BIN}/shell.o
c129e0e @jezze Large module cleanup
authored
145 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/tar.c -o ${DIR_SOURCE_BIN}/tar.o
146 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/timer.c -o ${DIR_SOURCE_BIN}/timer.o
147 @${GCC} ${GCCFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/vga.c -o ${DIR_SOURCE_BIN}/vga.o
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
148 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cat.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/cat
149 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cd.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/cd
150 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/clear.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/clear
151 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/cpu.o ${DIR_SOURCE_BIN}/cpus.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/cpu
152 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/date.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/date
153 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/echo.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/echo
154 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/elf.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/elf
155 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/hello.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/hello
295992b @jezze added init file
authored
156 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/init.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/init
c0e2305 @jezze big change. moved arch folder into kernel folder
authored
157 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/ls.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/ls
158 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/reboot.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/reboot
159 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/shell.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/shell
160 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/tar.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/tar
161 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/timer.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/timer
162 @${LD} ${LDFLAGS_RAMDISK} ${DIR_SOURCE_BIN}/vga.o ${DIR_SOURCE_LIB}/memory.o ${DIR_SOURCE_LIB}/string.o ${DIR_SOURCE_LIB}/file.o ${DIR_SOURCE_ARCH}/calls.o -o ${DIR_IMAGE}/bin/vga
c9e982e @jezze Added a cpio ramdisk too
authored
163 @tar -cvf initrd.tar ${DIR_IMAGE}
164 @find ${DIR_IMAGE} -depth -print | cpio -ov > initrd.cpio
cda3cc9 @jezze cleaned up makefile
authored
165 @mv initrd.tar ${DIR_IMAGE}/boot
166 @mv initrd.cpio ${DIR_IMAGE}/boot
86ae92f @jezze Added a proper makefile
authored
167
5643ef1 @jezze added new target
authored
168 sda:
c129e0e @jezze Large module cleanup
authored
169 @dd if=/dev/zero of=fudge.img bs=512 count=2880
09ee8d2 @jezze more Makefile fixes
authored
170 @dd if=${DIR_IMAGE}/boot/grub/stage1 conv=notrunc of=fudge.img bs=512 seek=0
171 @dd if=${DIR_IMAGE}/boot/grub/stage2 conv=notrunc of=fudge.img bs=512 seek=1
c129e0e @jezze Large module cleanup
authored
172 @dd if=menu.lst conv=notrunc of=fudge.img bs=512 seek=200
09ee8d2 @jezze more Makefile fixes
authored
173 @dd if=${DIR_IMAGE}/boot/kernel conv=notrunc of=fudge.img bs=512 seek=300
174 @dd if=${DIR_IMAGE}/boot/initrd.tar conv=notrunc of=fudge.img bs=512 seek=400
f59c62f @jezze fixed image creation
authored
175 @sh x86-write-image.sh
86ae92f @jezze Added a proper makefile
authored
176
17321f5 @jezze modified Makefile some
authored
177 iso:
09ee8d2 @jezze more Makefile fixes
authored
178 @genisoimage -R -b boot/grub/iso9660_stage1_5 -no-emul-boot -boot-load-size 4 -boot-info-table -o fudge.iso ${DIR_IMAGE}
17321f5 @jezze modified Makefile some
authored
179
5643ef1 @jezze added new target
authored
180 hda:
181 @dd if=/dev/zero of=hda.img bs=512 count=2880
182
86ae92f @jezze Added a proper makefile
authored
183 clean:
c129e0e @jezze Large module cleanup
authored
184 @rm -f fudge.img
185 @rm -f fudge.iso
5643ef1 @jezze added new target
authored
186 @rm -f hda.img
09ee8d2 @jezze more Makefile fixes
authored
187 @rm -f ${DIR_IMAGE}/bin/cat
188 @rm -f ${DIR_IMAGE}/bin/cd
189 @rm -f ${DIR_IMAGE}/bin/clear
190 @rm -f ${DIR_IMAGE}/bin/cpu
191 @rm -f ${DIR_IMAGE}/bin/date
192 @rm -f ${DIR_IMAGE}/bin/echo
193 @rm -f ${DIR_IMAGE}/bin/elf
194 @rm -f ${DIR_IMAGE}/bin/hello
295992b @jezze added init file
authored
195 @rm -f ${DIR_IMAGE}/bin/init
09ee8d2 @jezze more Makefile fixes
authored
196 @rm -f ${DIR_IMAGE}/bin/ls
197 @rm -f ${DIR_IMAGE}/bin/reboot
198 @rm -f ${DIR_IMAGE}/bin/shell
199 @rm -f ${DIR_IMAGE}/bin/tar
200 @rm -f ${DIR_IMAGE}/bin/timer
201 @rm -f ${DIR_IMAGE}/bin/vga
efac7c3 @jezze updated makefile
authored
202 @rm -f ${DIR_IMAGE}/lib/modules/*.ko
09ee8d2 @jezze more Makefile fixes
authored
203 @rm -f ${DIR_IMAGE}/boot/kernel
204 @rm -f ${DIR_IMAGE}/boot/initrd
205 @rm -f ${DIR_IMAGE}/boot/initrd.tar
206 @rm -f ${DIR_IMAGE}/boot/initrd.cpio
207 @rm -f ${DIR_SOURCE_BIN}/*.o
208 @rm -f ${DIR_SOURCE_KERNEL}/*.o
efac7c3 @jezze updated makefile
authored
209 @rm -f ${DIR_SOURCE_KERNEL}/arch/*/*.o
09ee8d2 @jezze more Makefile fixes
authored
210 @rm -f ${DIR_SOURCE_LIB}/*.o
efac7c3 @jezze updated makefile
authored
211 @rm -f ${DIR_SOURCE_MODULES}/*/*.o
86ae92f @jezze Added a proper makefile
authored
212
Something went wrong with that request. Please try again.