Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
53b46ce6
Commit
53b46ce6
authored
5 years ago
by
Julien Cretin
Committed by
Julien Cretin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions to re-run setup.sh
parent
796261d5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+25
-2
25 additions, 2 deletions
setup.sh
with
25 additions
and
2 deletions
setup.sh
+
25
−
2
View file @
53b46ce6
...
@@ -31,13 +31,31 @@ git submodule update --init
...
@@ -31,13 +31,31 @@ git submodule update --init
done_text
=
"
$(
tput bold
)
DONE.
$(
tput sgr0
)
"
done_text
=
"
$(
tput bold
)
DONE.
$(
tput sgr0
)
"
patch_conflict_detected
()
{
cat
<<
EOF
This script cannot be run twice without reverting the patches.
To do so, follow these instructions:
1. Commit any changes you want to save.
2. Run the ./reset.sh script to revert all uncommitted changes.
3. Run the ./setup.sh script again.
EOF
exit
1
}
# Apply patches to kernel. Do that in a sub-shell
# Apply patches to kernel. Do that in a sub-shell
(
(
cd
third_party/tock/
&&
\
cd
third_party/tock/
&&
\
for
p
in
../../patches/tock/[0-9][0-9]-
*
.patch
for
p
in
../../patches/tock/[0-9][0-9]-
*
.patch
do
do
echo
-n
'[-] Applying patch "'
$(
basename
$p
)
'"... '
echo
-n
'[-] Applying patch "'
$(
basename
$p
)
'"... '
git apply
"
$p
"
&&
echo
$done_text
if
git apply
"
$p
"
then
echo
$done_text
else
patch_conflict_detected
fi
done
done
)
)
...
@@ -47,7 +65,12 @@ done_text="$(tput bold)DONE.$(tput sgr0)"
...
@@ -47,7 +65,12 @@ done_text="$(tput bold)DONE.$(tput sgr0)"
for
p
in
../../patches/libtock-rs/[0-9][0-9]-
*
.patch
for
p
in
../../patches/libtock-rs/[0-9][0-9]-
*
.patch
do
do
echo
-n
'[-] Applying patch "'
$(
basename
$p
)
'"... '
echo
-n
'[-] Applying patch "'
$(
basename
$p
)
'"... '
git apply
"
$p
"
&&
echo
$done_text
if
git apply
"
$p
"
then
echo
$done_text
else
patch_conflict_detected
fi
done
done
)
)
...
...
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