Skip to content
Snippets Groups Projects
Commit 81b72f83 authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

main/lk2nd-msm8953: update to 0.3.8 & add motorola-ali

Update lk2nd to latest release and add motorola-ali project
as an subpackage.
parent 23f514a7
No related branches found
No related tags found
No related merge requests found
# Maintainer: Alejandro Tafalla <atafalla@dnyon.com>
pkgname=lk2nd-msm8953
pkgver=0.3.7
pkgver=0.3.8
pkgrel=0
pkgdesc="Secondary little kernel (lk) bootloader for msm8953 based devices"
arch="aarch64"
......@@ -8,6 +8,7 @@ url="https://github.com/msm8953-mainline/lk2nd"
license="MIT AND GPL-2.0-only"
makedepends="dtc dtc-dev gcc-arm-none-eabi python3 py3-libfdt"
builddir="$srcdir"/lk2nd-$pkgver
subpackages="$pkgname-motorola-ali:motorola_ali"
source="lk2nd-$pkgver.tar.gz::https://github.com/msm8953-mainline/lk2nd/archive/refs/tags/$pkgver.tar.gz
o2.patch"
options="!check !archcheck !tracedeps !strip pmb:cross-native"
......@@ -18,7 +19,7 @@ options="!check !archcheck !tracedeps !strip pmb:cross-native"
# * there are no depends for bootloader, it's a kernel and OS in one binary;
# * stripping of unused sections is done in lk2nd's own ld script.
build() {
_build() {
# This builds baremetal executable; distro-specific compiler flags
# and optimizations can't be set by build system.
unset CFLAGS
......@@ -34,7 +35,13 @@ build() {
unset PATH
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
make TOOLCHAIN_PREFIX=arm-none-eabi- msm8953-secondary
local project="$1"; shift
make TOOLCHAIN_PREFIX=arm-none-eabi- "$@" "$project"
}
build() {
_build msm8953-secondary
_build motorola-ali-secondary
}
package() {
......@@ -43,7 +50,12 @@ package() {
"$pkgdir"/boot
}
motorola_ali() {
install -Dm644 "$builddir"/build-motorola-ali-secondary/lk2nd.img -t \
"$subpkgdir"/boot
}
sha512sums="
072608efb1adc98c3fa2281f3b25733228676290797f93a974519af0cc6375eaf5c4c7d72f32384f49ce418cb95d22aed9833fe6bf76ef96db438fc5790ead73 lk2nd-0.3.7.tar.gz
1d962649b141d0f3be1a27ee5f9c8a472c871ad19d93e0a29a922c85c01bfd4cdbc23d0f48cb1d876d297dfbf7e3e77ddf7de5b3b7a8b9d76feec0df2cb9e0bf lk2nd-0.3.8.tar.gz
e4d2e116966485aca746bec5bf6ab9855514dc70dfb94ce3cdc9def01c5b36eeddc33e77bdbcfb8f6bb89bb0277fd6dd3e6f8066475dcfc5b5fcdec567af754b o2.patch
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment