Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
redox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ross Schulman
redox
Commits
8160d711
Verified
Commit
8160d711
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Configurable filesystem size and automatic FAT filesystem size
parent
2161c958
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mk/config.mk
+2
-0
2 additions, 0 deletions
mk/config.mk
mk/disk.mk
+2
-2
2 additions, 2 deletions
mk/disk.mk
mk/filesystem.mk
+1
-1
1 addition, 1 deletion
mk/filesystem.mk
with
5 additions
and
3 deletions
mk/config.mk
+
2
−
0
View file @
8160d711
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
ARCH
?=
x86_64
ARCH
?=
x86_64
INSTALLER_FLAGS
?=
--cookbook
=
cookbook
INSTALLER_FLAGS
?=
--cookbook
=
cookbook
PREFIX_RUSTC
?=
0
PREFIX_RUSTC
?=
0
# Filesystem Size in MB
FILESYSTEM_SIZE
?=
256
# Per host variables
# Per host variables
UNAME
:=
$(
shell
uname
)
UNAME
:=
$(
shell
uname
)
...
...
This diff is collapsed.
Click to expand it.
mk/disk.mk
+
2
−
2
View file @
8160d711
...
@@ -31,7 +31,7 @@ build/bootloader.efi: bootloader-efi/build/$(EFI_TARGET)/boot.efi
...
@@ -31,7 +31,7 @@ build/bootloader.efi: bootloader-efi/build/$(EFI_TARGET)/boot.efi
cp
-v
$<
$@
cp
-v
$<
$@
build/harddrive-efi.bin
:
build/bootloader.efi build/filesystem.bin
build/harddrive-efi.bin
:
build/bootloader.efi build/filesystem.bin
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
4
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
$$(
du
-m
$<
|
cut
-f1
)
mkfs.vfat
$@
.partial
mkfs.vfat
$@
.partial
mmd
-i
$@
.partial efi
mmd
-i
$@
.partial efi
mmd
-i
$@
.partial efi/boot
mmd
-i
$@
.partial efi/boot
...
@@ -39,7 +39,7 @@ build/harddrive-efi.bin: build/bootloader.efi build/filesystem.bin
...
@@ -39,7 +39,7 @@ build/harddrive-efi.bin: build/bootloader.efi build/filesystem.bin
cat
$@
.partial build/filesystem.bin
>
$@
cat
$@
.partial build/filesystem.bin
>
$@
build/livedisk-efi.iso
:
build/bootloader.efi build/kernel_live
build/livedisk-efi.iso
:
build/bootloader.efi build/kernel_live
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
272
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
$$(
du
-mc
$^
|
grep
'total$$'
|
cut
-f1
)
mkfs.vfat
$@
.partial
mkfs.vfat
$@
.partial
mmd
-i
$@
.partial efi
mmd
-i
$@
.partial efi
mmd
-i
$@
.partial efi/boot
mmd
-i
$@
.partial efi/boot
...
...
This diff is collapsed.
Click to expand it.
mk/filesystem.mk
+
1
−
1
View file @
8160d711
build/filesystem.bin
:
filesystem.toml build/bootloader build/kernel prefix
build/filesystem.bin
:
filesystem.toml build/bootloader build/kernel prefix
-$(
FUMOUNT
)
build/filesystem/
||
true
-$(
FUMOUNT
)
build/filesystem/
||
true
rm
-rf
$@
$@
.partial build/filesystem/
rm
-rf
$@
$@
.partial build/filesystem/
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
256
dd
if
=
/dev/zero
of
=
$@
.partial
bs
=
1048576
count
=
"
$(
FILESYSTEM_SIZE
)
"
cargo run
--manifest-path
redoxfs/Cargo.toml
--release
--bin
redoxfs-mkfs
$@
.partial
cargo run
--manifest-path
redoxfs/Cargo.toml
--release
--bin
redoxfs-mkfs
$@
.partial
mkdir
-p
build/filesystem/
mkdir
-p
build/filesystem/
cargo build
--manifest-path
redoxfs/Cargo.toml
--release
--bin
redoxfs
cargo build
--manifest-path
redoxfs/Cargo.toml
--release
--bin
redoxfs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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