Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
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
Container Registry
Model registry
Operate
Environments
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
redox-os
cookbook
Commits
463aeef9
Verified
Commit
463aeef9
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add bootloader and kernel recipes
parent
2f119f29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/bootloader/recipe.sh
+32
-0
32 additions, 0 deletions
recipes/bootloader/recipe.sh
recipes/kernel/init.rc
+10
-0
10 additions, 0 deletions
recipes/kernel/init.rc
recipes/kernel/recipe.sh
+46
-0
46 additions, 0 deletions
recipes/kernel/recipe.sh
with
88 additions
and
0 deletions
recipes/bootloader/recipe.sh
0 → 100644
+
32
−
0
View file @
463aeef9
GIT
=
https://gitlab.redox-os.org/redox-os/bootloader.git
function
recipe_version
{
echo
"0.1.0"
skip
=
1
}
function
recipe_update
{
echo
"skipping update"
skip
=
1
}
function
recipe_build
{
nasm
-f
bin
-o
bootloader
-D
"ARCH_
${
ARCH
}
"
-i
"
${
ARCH
}
/"
"
${
ARCH
}
/disk.asm"
skip
=
1
}
function
recipe_test
{
echo
"skipping test"
skip
=
1
}
function
recipe_clean
{
make clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
cp
-v
bootloader
"
$dest
"
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/kernel/init.rc
0 → 100644
+
10
−
0
View file @
463aeef9
export PATH /bin
export TMPDIR /tmp
vesad T T G
stdio display:1
ps2d us
pcid /etc/pcid/initfs.toml
redoxfs --uuid $REDOXFS_UUID file
cd file:
export PATH file:/bin
run.d /etc/init.d
This diff is collapsed.
Click to expand it.
recipes/kernel/recipe.sh
0 → 100644
+
46
−
0
View file @
463aeef9
GIT
=
https://gitlab.redox-os.org/redox-os/kernel.git
BUILD_DEPENDS
=(
drivers init redoxfs
)
function
recipe_build
{
export
INITFS_FOLDER
=
"
$(
realpath
../sysroot
)
"
mkdir
-pv
"
$INITFS_FOLDER
/etc"
cp
-v
"
$(
realpath
../init.rc
)
"
"
$INITFS_FOLDER
/etc/init.rc"
xargo rustc
\
--lib
\
--target
"
${
ARCH
}
-unknown-none"
\
--release
\
--
\
-C
soft-float
\
-C
debuginfo
=
2
\
--emit
link
=
libkernel.a
"
${
LD
}
"
\
--gc-sections
\
-z
max-page-size
=
0x1000
\
-T
"linkers/
${
ARCH
}
.ld"
\
-o
kernel
\
libkernel.a
"
${
OBJCOPY
}
"
\
--only-keep-debug
\
kernel
\
kernel.sym
"
${
OBJCOPY
}
"
\
--strip-debug
\
kernel
skip
=
1
}
function
recipe_test
{
echo
"skipping test"
skip
=
1
}
function
recipe_clean
{
make clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
cp
-v
kernel
"
$dest
"
skip
=
1
}
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