Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
03fcb0d0
Unverified
Commit
03fcb0d0
authored
6 years ago
by
Clayton Craft
Committed by
Oliver Smith
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
device/linux-purism-librem5dev: new package (
!141
)
parent
ff25ad7a
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
device/linux-purism-librem5dev/APKBUILD
+75
-0
75 additions, 0 deletions
device/linux-purism-librem5dev/APKBUILD
device/linux-purism-librem5dev/config-purism-librem5.aarch64
+5618
-0
5618 additions, 0 deletions
device/linux-purism-librem5dev/config-purism-librem5.aarch64
with
5693 additions
and
0 deletions
device/linux-purism-librem5dev/APKBUILD
0 → 100644
+
75
−
0
View file @
03fcb0d0
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/librem5-evk_defconfig
pkgname
=
"linux-purism-librem5dev"
pkgver
=
4.18
pkgrel
=
1
pkgdesc
=
"Purism Librem 5 devkit kernel fork"
arch
=
"aarch64"
_carch
=
"arm64"
_flavor
=
"purism-librem5"
url
=
"https://kernel.org"
license
=
"GPL-2.0-only"
options
=
"!strip !check !tracedeps"
makedepends
=
"perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
devicepkg-dev bison flex openssl-dev"
# Compiler: latest GCC from Alpine
HOSTCC
=
"
${
CC
:-
gcc
}
"
HOSTCC
=
"
${
HOSTCC
#
${
CROSS_COMPILE
}}
"
# Source
_repository
=
"linux-emcraft"
_commit
=
"a7417560d3d9523c87f429e37b3ca5fefa56e2ab"
_config
=
"config-
${
_flavor
}
.
${
arch
}
"
source
=
"
$pkgname
-
$_commit
.tar.gz::https://source.puri.sm/Librem5/
${
_repository
}
/-/archive/
${
_commit
}
.tar.gz
$_config
"
builddir
=
"
$srcdir
/
${
_repository
}
-
${
_commit
}
"
prepare
()
{
default_prepare
downstreamkernel_prepare
"
$srcdir
"
"
$builddir
"
"
$_config
"
"
$_carch
"
"
$HOSTCC
"
}
build
()
{
unset
LDFLAGS
make
ARCH
=
"
$_carch
"
CC
=
"
${
CC
:-
gcc
}
"
\
KBUILD_BUILD_VERSION
=
"
$((
pkgrel
+
1
))
-postmarketOS"
}
package
()
{
# kernel.release
install
-D
"
$builddir
/include/config/kernel.release"
\
"
$pkgdir
/usr/share/kernel/
$_flavor
/kernel.release"
# zImage (find the right one)
cd
"
$builddir
/arch/
$_carch
/boot"
_target
=
"
$pkgdir
/boot/vmlinuz-
$_flavor
"
for
_zimg
in
zImage-dtb Image.gz-dtb
*
zImage Image
;
do
[
-e
"
$_zimg
"
]
||
continue
msg
"zImage found:
$_zimg
"
install
-Dm644
"
$_zimg
"
"
$_target
"
break
done
if
!
[
-e
"
$_target
"
]
;
then
error
"Could not find zImage in
$PWD
!"
return
1
fi
cd
"
$builddir
"
local
_install
case
"
$CARCH
"
in
aarch64
*
|
arm
*
)
_install
=
"modules_install dtbs_install"
;;
*
)
_install
=
"modules_install"
;;
esac
make
-j1
$_install
\
ARCH
=
"
$_carch
"
\
INSTALL_MOD_PATH
=
"
$pkgdir
"
\
INSTALL_DTBS_PATH
=
"
$pkgdir
/usr/share/dtb"
}
sha512sums
=
"343c1effabdf857e3c67e94cdd5680018332d4fd12e94e9f26857947dc89c9e361a6a49ff63be402e96f3890ac72eda9cf9049e04111ba0fe78af183c588aec7 linux-purism-librem5dev-a7417560d3d9523c87f429e37b3ca5fefa56e2ab.tar.gz
c82903860e32c1fafd0600afe54f96cf88f0f7790f77384e3205e7b240e87fe066d4caaf7507eb5dc9874a758253c38a224107547d6dfff8047588c73115ca89 config-purism-librem5.aarch64"
This diff is collapsed.
Click to expand it.
device/linux-purism-librem5dev/config-purism-librem5.aarch64
0 → 100644
+
5618
−
0
View file @
03fcb0d0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment