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
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
Philippe Schommers
aports
Commits
aae55a00
Commit
aae55a00
authored
Nov 30, 2019
by
Philippe Schommers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aports/scripts: Make it possible to build ARM from other architecture
parent
69e6577a
Pipeline
#3020
passed with stages
in 2 minutes and 35 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
scripts/mkimage.sh
scripts/mkimage.sh
+1
-0
scripts/mkimg.arm.sh
scripts/mkimg.arm.sh
+8
-4
scripts/mkimg.base.sh
scripts/mkimg.base.sh
+1
-0
No files found.
scripts/mkimage.sh
View file @
aae55a00
...
...
@@ -261,6 +261,7 @@ for ARCH in $req_arch; do
# create root for caching packages
mkdir
-p
"
$APKROOT
/etc/apk/cache"
cp
-Pr
/etc/apk/keys
"
$APKROOT
/etc/apk/"
cp
/usr/share/apk/keys/
*
.pub
"
$APKROOT
/etc/apk/keys/"
abuild-apk
--arch
"
$ARCH
"
--root
"
$APKROOT
"
add
--initdb
if
[
-z
"
$REPOS
"
]
;
then
...
...
scripts/mkimg.arm.sh
View file @
aae55a00
_apk_fetch
()
{
apk fetch
--root
"
$APKROOT
"
"
$@
"
}
build_rpi_blobs
()
{
apk
fetch
--quiet
--stdout
raspberrypi-bootloader |
tar
-C
"
${
DESTDIR
}
"
-zx
--strip
=
1 boot/
_apk_
fetch
--quiet
--stdout
raspberrypi-bootloader |
tar
-C
"
${
DESTDIR
}
"
-zx
--strip
=
1 boot/
}
rpi_gen_cmdline
()
{
...
...
@@ -96,9 +100,9 @@ profile_rpi() {
build_uboot
()
{
set
-x
# FIXME: Fix apk-tools to extract packages directly
local
pkg
pkgs
=
"
$(
apk fetch
--simulate
--root
"
$APKROOT
"
--recursive
u-boot-all |
sed
-ne
"s/^Downloading
\(
.*
\)\-
[0-9].*
$/
\1
/p"
)
"
local
pkg
pkgs
=
"
$(
_apk_fetch
--simulate
--recursive
u-boot-all |
sed
-ne
"s/^Downloading
\(
.*
\)\-
[0-9].*
$/
\1
/p"
)
"
for
pkg
in
$pkgs
;
do
[
"
$pkg
"
=
"u-boot-all"
]
||
apk fetch
--root
"
$APKROOT
"
--stdout
$pkg
|
tar
-C
"
$DESTDIR
"
-xz
usr
[
"
$pkg
"
=
"u-boot-all"
]
||
_apk_fetch
--stdout
$pkg
|
tar
-C
"
$DESTDIR
"
-xz
usr
done
mkdir
-p
"
$DESTDIR
"
/u-boot
mv
"
$DESTDIR
"
/usr/sbin/update-u-boot
"
$DESTDIR
"
/usr/share/u-boot/
*
"
$DESTDIR
"
/u-boot
...
...
@@ -107,7 +111,7 @@ build_uboot() {
section_uboot
()
{
[
-n
"
$uboot_install
"
]
||
return
0
build_section uboot
$ARCH
$(
apk fetch
--root
"
$APKROOT
"
--simulate
--recursive
u-boot-all |
sort
| checksum
)
build_section uboot
$ARCH
$(
_apk_fetch
--simulate
--recursive
u-boot-all |
sort
| checksum
)
}
profile_uboot
()
{
...
...
scripts/mkimg.base.sh
View file @
aae55a00
...
...
@@ -14,6 +14,7 @@ build_kernel() {
--feature
"
$initfs_features
"
\
--modloopfw
"
$modloopfw
"
\
--repositories-file
"
$APKROOT
/etc/apk/repositories"
\
--keys-dir
"
$APKROOT
/etc/apk/keys"
\
"
$DESTDIR
"
}
...
...
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