Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Kirsch
bootOS
Commits
75985788
Commit
75985788
authored
5 years ago
by
Jakob Kirsch
Browse files
Options
Downloads
Patches
Plain Diff
add exclude feature
parent
6d7b3703
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
makebase.py
+3
-1
3 additions, 1 deletion
makebase.py
with
5 additions
and
3 deletions
Makefile
+
2
−
2
View file @
75985788
...
...
@@ -41,7 +41,7 @@ push:
software
:
os.img
mkdir
software
bash makesoftware.sh
python3 makebase.py
python3 makebase.py
$(
EXCLUDE
)
dd
if
=
$<
bs
=
512
count
=
1
>
tmp.img
mv
tmp.img os.img
cat
base.img
>>
os.img
...
...
@@ -56,7 +56,7 @@ installer:
nasm
-f
bin
-o
os.img os.asm
mkdir
software
bash makesoftware.sh
python3 makebase.py
python3 makebase.py
$(
EXCLUDE
)
dd
if
=
os.img
bs
=
512
count
=
1
>
tmp.img
mv
tmp.img os.img
cat
base.img
>>
os.img
...
...
This diff is collapsed.
Click to expand it.
makebase.py
+
3
−
1
View file @
75985788
import
os
,
shutil
import
os
,
shutil
,
sys
files
=
[]
for
r
,
_
,
f
in
os
.
walk
(
"
software/
"
):
for
file
in
f
:
if
os
.
path
.
abspath
(
os
.
path
.
join
(
file
,
r
))
in
[
os
.
path
.
abspath
(
i
)
for
i
in
sys
.
argv
]:
continue
if
len
(
files
)
>
32
:
print
(
"
Limit of files reached
"
)
break
...
...
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