Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
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
Boxiang Sun
lx2160a_build
Commits
63d0f788
Commit
63d0f788
authored
Sep 03, 2023
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme: generate standalone kernel/-headers packages
parent
45f89daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
runme.sh
runme.sh
+25
-0
No files found.
runme.sh
View file @
63d0f788
...
...
@@ -438,6 +438,31 @@ fi
# regenerate modules dependencies
depmod
-b
"
${
ROOTDIR
}
/images/tmp"
-F
"
${
ROOTDIR
}
/build/linux/System.map"
${
KRELEASE
}
function
pkg_kernel
()
{
# package kernel individually
rm
-f
"
${
ROOTDIR
}
/images/linux/linux.tar*"
cd
"
${
ROOTDIR
}
/images/tmp"
;
tar
-c
--owner
=
root:0
-f
"
${
ROOTDIR
}
/images/linux-
${
REPO_PREFIX
}
.tar"
boot/
*
lib/modules/
*
;
cd
"
${
ROOTDIR
}
"
}
pkg_kernel
function
pkg_kernel_headers
()
{
# Build external Linux Headers package for compiling modules
cd
"
${
ROOTDIR
}
/build/linux"
rm
-rf
"
${
ROOTDIR
}
/images/tmp/linux-headers"
mkdir
-p
${
ROOTDIR
}
/images/tmp/linux-headers
tempfile
=
$(
mktemp
)
find
.
-name
Makefile
\*
-o
-name
Kconfig
\*
-o
-name
\*
.pl
>
$tempfile
find
arch
/arm64/include include scripts
-type
f
>>
$tempfile
tar
-c
-f
-
-T
$tempfile
|
tar
-C
"
${
ROOTDIR
}
/images/tmp/linux-headers"
-xf
-
cd
"
${
ROOTDIR
}
/build/linux"
find
arch
/arm64/include .config Module.symvers include scripts
-type
f
>
$tempfile
tar
-c
-f
-
-T
$tempfile
|
tar
-C
"
${
ROOTDIR
}
/images/tmp/linux-headers"
-xf
-
rm
-f
$tempfile
unset
tempfile
cd
"
${
ROOTDIR
}
/images/tmp/linux-headers"
tar
cpf
"
${
ROOTDIR
}
/images/linux-headers-
${
REPO_PREFIX
}
.tar"
*
}
pkg_kernel_headers
if
[[
$DISTRO
==
ubuntu
]]
;
then
mkdir
-p
$ROOTDIR
/build/ubuntu
...
...
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