Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
叫什么名字好呢队
project210-USTC
Commits
62208bfc
Commit
62208bfc
authored
1 year ago
by
庞子文
Browse files
Options
Download
Patches
Plain Diff
makefile
parent
a1c399c7
vfat32
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-2
Makefile
with
4 additions
and
2 deletions
+4
-2
Makefile
+
4
−
2
View file @
62208bfc
...
...
@@ -187,11 +187,13 @@ IMGDIR=/
fs.img
:
$(UPROGS)
@
if
[
!
-f
"fs.img"
]
;
then
\
echo
"making fs image..."
;
\
dd
if
=
/dev/zero
of
=
fs.img
bs
=
512k
count
=
512
;
\
dd
if
=
/dev/zero
of
=
fs.img
bs
=
512k
count
=
64
;
\
mkfs.vfat
-F
32
-s
4 fs.img
;
fi
@
sudo
mount fs.img
$(
dst
)
sudo cp
$(
patsubst %_,%,
$(
UPROGS
)
$^
)
$(
dst
)$(
IMGDIR
)
@
sudo cp
user/_init
$(
dst
)
/init
@
sudo cp
user/_sh
$(
dst
)
/sh
@
sudo
umount
$(
dst
)
xxd
-i
fs.img
>
kernel/ramdisk.h
-include
kernel/*.d user/*.d
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets