Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-setup-scripts
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
1
Merge Requests
1
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-setup-scripts
Commits
a717ed8b
Commit
a717ed8b
authored
Aug 25, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add u-boot binary and include core option in compile-kernel
parent
243742a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
.gitignore
.gitignore
+0
-1
boot-ressources/u-boot-sunxi-with-spl.bin
boot-ressources/u-boot-sunxi-with-spl.bin
+0
-0
scripts/compile-kernel
scripts/compile-kernel
+10
-6
No files found.
.gitignore
View file @
a717ed8b
custom-kernels
boot-ressources/rootfs.tar.bz2
boot-ressources/u-boot-sunxi-with-spl.bin
boot-ressources/u-boot-sunxi-with-spl.bin
0 → 100755
View file @
a717ed8b
File added
scripts/compile-kernel
View file @
a717ed8b
#!/bin/bash
usage
()
{
echo
"Usage:
$0
[-hgdkm] [-l LINUX_PATH] [-o OUTPUT_STR | -O OUTPUT_NAME] (-p | -u CONFIG_PATH | -c CONFIG_PATH | -n OLD_CONFIG_PATH NEW_CONFIG_PATH)"
echo
"Usage:
$0
[-hgdkm] [-
j N_CORES] [-
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
=
""
nb_cores
=
4
while
getopts
"hgdkmpsu:c:nl:o:O:"
opt
;
do
while
getopts
"hgdkmpsu:c:nl:o:O:
j:
"
opt
;
do
case
"
${
opt
}
"
in
h
)
usage
...
...
@@ -55,6 +56,9 @@ while getopts "hgdkmpsu:c:nl:o:O:" opt; do
O
)
output_name
=
"
${
OPTARG
}
"
;;
j
)
nb_cores
=
"
${
OPTARG
}
"
;;
*
)
usage
;;
...
...
@@ -120,15 +124,15 @@ fi
if
[
-n
"
${
compile_kernel
}
"
]
;
then
echo
"Compiling kernel..."
;
make
-j
20
LOADADDR
=
0x48000000 uImage
;
make
-j
$nb_cores
LOADADDR
=
0x48000000 uImage
;
echo
"Kernel compilation done"
;
fi
if
[
-n
"
${
compile_modules
}
"
]
;
then
echo
"Compiling modules..."
;
make
-j
20
modules
;
make
-j
$nb_cores
modules
;
rm
-rf
output
make
-j
20
INSTALL_MOD_PATH
=
output modules modules_install
;
make
-j
$nb_cores
INSTALL_MOD_PATH
=
output modules modules_install
;
echo
"Modules compilation done"
;
fi
...
...
@@ -169,7 +173,7 @@ fi
echo
"Compressing archive..."
;
cd
../
$output_name
;
tar
cf -
*
| pigz
-9
-p
20
>
../
$output_name
.tar.gz
;
tar
cf -
*
| pigz
-9
-p
$nb_cores
>
../
$output_name
.tar.gz
;
cd
..
;
echo
"Removing output folder..."
;
...
...
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