Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
23aa9781
Commit
23aa9781
authored
Aug 12, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update compile kernel script
parent
6ecab67e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
img-kernel-utils/scripts/vm-scripts/compile-kernel
img-kernel-utils/scripts/vm-scripts/compile-kernel
+15
-3
No files found.
img-kernel-utils/scripts/vm-scripts/compile-kernel
View file @
23aa9781
#!/bin/bash
usage
()
{
echo
"Usage:
$0
[-h
dkms] [-l LINUX_PATH] [-o OUTPUT_STR
] (-p | -u CONFIG_PATH | -c CONFIG_PATH | -n OLD_CONFIG_PATH NEW_CONFIG_PATH)"
echo
"Usage:
$0
[-h
gdkms] [-l LINUX_PATH] [-o OUTPUT_STR | -O OUTPUT_NAME
] (-p | -u CONFIG_PATH | -c CONFIG_PATH | -n OLD_CONFIG_PATH NEW_CONFIG_PATH)"
exit
1
;
}
linux_path
=
$HOME
/linux
output_str
=
""
while
getopts
"h
dkmpsu:c:nl:o
:"
opt
;
do
while
getopts
"h
gdkmpsu:c:nl:o:O
:"
opt
;
do
case
"
${
opt
}
"
in
h
)
usage
;;
g
)
update_git
=
1
;;
s
)
copy_to_sepia
=
1
;;
...
...
@@ -52,6 +55,9 @@ while getopts "hdkmpsu:c:nl:o:" opt; do
o
)
output_str
=
"_
${
OPTARG
}
"
;;
O
)
output_name
=
"
${
OPTARG
}
"
;;
*
)
usage
;;
...
...
@@ -70,6 +76,10 @@ linux_path=$(readlink -m $linux_path)
export
ARCH
=
arm
;
export
CROSS_COMPILE
=
arm-linux-gnueabihf-
;
cd
$linux_path
;
if
[
-n
"
$update_git
"
]
;
then
git pull
;
fi
if
[
-z
"
$partial_compile
"
]
;
then
if
[
-n
"
${
new_config
}
"
]
;
then
...
...
@@ -133,7 +143,9 @@ fi
# Compression
kernel_version
=
$(
git describe
--tags
)
output_name
=
${
kernel_version
}
_kernel
${
output_str
}
if
[
-z
"
$output_name
"
]
;
then
output_name
=
${
kernel_version
}
_kernel
${
output_str
}
fi
echo
"Creating output folder"
;
mkdir
-p
../
$output_name
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment