Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
alpine
alpine-conf
Commits
a99e2526
Commit
a99e2526
authored
Jan 26, 2015
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-kernel: support for arm architecture
parent
63a3fbcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
update-kernel.in
update-kernel.in
+19
-3
No files found.
update-kernel.in
View file @
a99e2526
...
...
@@ -152,6 +152,9 @@ if [ -z "$FLAVOR" ]; then
[
"
$FLAVOR
"
]
||
FLAVOR
=
vanilla
fi
[
"
$ARCH
"
]
||
ARCH
=
$(
apk
--print-arch
)
ARM
=
$(
echo
"
$ARCH
"
|
grep
^arm
||
:
)
TMPDIR
=
$(
mktemp
-d
/tmp/
$SCRIPT
.XXXXXX
)
ROOT
=
$TMPDIR
/root
BOOT
=
$ROOT
/boot
...
...
@@ -176,7 +179,7 @@ _apk() {
wrapper
=
"fakeroot
$opt
-s
$fake_env
--"
fi
$wrapper
apk
$cmd
$QUIET_OPT
-p
$ROOT
${
ARCH
:+--arch
"
$ARCH
"
}
\
$wrapper
apk
$cmd
$QUIET_OPT
-p
$ROOT
--arch
"
$ARCH
"
\
--keys-dir
/etc/apk/keys
\
--repositories-file
/etc/apk/repositories
$*
}
...
...
@@ -193,7 +196,7 @@ _apk add --initdb --update-cache
if
[
"
$BUILDDIR
"
]
;
then
mkdir
-p
$BOOT
make
-C
"
$BUILDDIR
"
firmware_install
install
modules_install
\
make
-C
"
$BUILDDIR
"
${
ARM
:+z
}
install
firmware_
install modules_install
\
INSTALL_MOD_PATH
=
$ROOT
INSTALL_PATH
=
$BOOT
else
if
[
-z
"
$PACKAGES
"
]
;
then
...
...
@@ -214,8 +217,9 @@ depmod -b $ROOT "$KVER"
STAGING
=
$TMPDIR
/boot
MODLOOP
=
$TMPDIR
/modloop
MODIMG
=
modloop-
$FLAVOR
DTB_STAGING
=
$TMPDIR
/dtbs
mkdir
$MODLOOP
$STAGING
mkdir
$
DTB_STAGING
$
MODLOOP
$STAGING
cp
-a
$ROOT
/lib/modules
$MODLOOP
cp
-a
$ROOT
/lib/firmware
$MODLOOP
/modules
_exec mksquashfs
$MODLOOP
"
$STAGING
/
$MODIMG
"
-comp
xz
...
...
@@ -227,6 +231,12 @@ for file in System.map config vmlinuz; do
cp
"
$BOOT
/
$file$KVER_FLAVOR
"
$STAGING
done
if
[
"
$ARM
"
]
;
then
DTBDIR
=
$ROOT
/usr/lib/linux-
$KVER
[
"
$BUILDDIR
"
]
&&
DTBDIR
=
$BUILDDIR
/source/arch/arm/boot/dts
cp
"
$DTBDIR
"
/
*
.dtb
$DTB_STAGING
fi
if
[
"
$MNTDIR
"
]
;
then
ignore_sigs
...
...
@@ -236,6 +246,12 @@ fi
mv
$STAGING
/
*
"
$DESTDIR
"
if
[
"
$ARM
"
]
;
then
DTBDIR
=
$DESTDIR
/dtbs
mkdir
-p
"
$DTBDIR
"
mv
$DTB_STAGING
/
*
"
$DTBDIR
"
fi
if
[
"
$MNTDIR
"
]
;
then
set
+e
sync
...
...
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