-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
34 lines (29 loc) · 823 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
build :
cd Sysboot/"stage1"/ && make
cd Sysboot/"stage2"/ && make
cd SysCore/Lib/ && make
cd SysCore/"Hal"/ && make
cd SysCore/Kernel/ && make
clean:
cd Sysboot/"stage1"/ && make clean
cd Sysboot/"stage2"/ && make clean
cd SysCore/Lib/ && make clean
cd SysCore/"Hal"/ && make clean
cd SysCore/Kernel/ && make clean
sudo rm myfloppy.img
install:
sudo dd if=/dev/zero of=myfloppy.img bs=512 count=2880
sudo losetup /dev/loop0 myfloppy.img
sudo mkdosfs -F 12 /dev/loop0
mkdir myfloppy
sudo mount /dev/loop0 myfloppy -t msdos -o "fat=12"
cd Sysboot/"stage1"/ && make install
cd Sysboot/"stage2"/ && make install
cd SysCore/Kernel/ && make install
sudo umount myfloppy
sudo rm -r myfloppy
sudo losetup -d /dev/loop0
resolve:
sudo losetup -d /dev/loop0
sudo umount myfloppy
sudo rm -r myfloppy