From 1275eb848ff75138410e66b4b2666e84df52d908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20Cz=C3=A9m=C3=A1n?= Date: Wed, 2 Oct 2024 00:00:11 +0200 Subject: [PATCH] main/lk2nd-msm8953: remove package (MR 5691) Remove old lk2nd-msm8953 package in favor of lk2nd package. --- main/lk2nd-msm8953/APKBUILD | 63 ------------------------------------- main/lk2nd-msm8953/o2.patch | 13 -------- 2 files changed, 76 deletions(-) delete mode 100644 main/lk2nd-msm8953/APKBUILD delete mode 100644 main/lk2nd-msm8953/o2.patch diff --git a/main/lk2nd-msm8953/APKBUILD b/main/lk2nd-msm8953/APKBUILD deleted file mode 100644 index 89c0a5a27..000000000 --- a/main/lk2nd-msm8953/APKBUILD +++ /dev/null @@ -1,63 +0,0 @@ -# Maintainer: Alejandro Tafalla -pkgname=lk2nd-msm8953 -pkgver=0.3.9 -pkgrel=0 -pkgdesc="Secondary little kernel (lk) bootloader for msm8953 based devices" -arch="aarch64" -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" -# This APKBUILD builds bare metal executable; options are very specific! -# * there are no tests (how do you even test the bootloader?); -# * binaries are "arch-independent"; aarch64 build also produces armv7 binary, -# because ARM CPUs boot in 32-bit mode; -# * 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() { - # This builds baremetal executable; distro-specific compiler flags - # and optimizations can't be set by build system. - unset CFLAGS - unset CXXFLAGS - unset CPPFLAGS - unset LDFLAGS - unset CROSS_COMPILE - unset CC - unset CXX - - # ccache and crossdirect "gcc"s are in PATH, get rid of them too, - # redefine PATH to be bare minimum - unset PATH - export PATH=/usr/sbin:/usr/bin:/sbin:/bin - - local project="$1"; shift - make TOOLCHAIN_PREFIX=arm-none-eabi- "$@" "$project" -} - -build() { - _build msm8953-secondary - _build motorola-ali-secondary -} - -package() { - # main package is empty - install -Dm644 "$builddir"/build-msm8953-secondary/lk2nd.img -t \ - "$pkgdir"/boot -} - -motorola_ali() { - install -Dm644 "$builddir"/build-motorola-ali-secondary/lk2nd.img -t \ - "$subpkgdir"/boot -} - -sha512sums=" -ee0c48094d35cf18a0d9bc7f8eb36d503e43b86a9814ff74eb2bdddcd3493393045c89d98c513d7362b7666de8b8684616455d3a8532a9bb6ecbf64ab43dc5b8 lk2nd-0.3.9.tar.gz -e4d2e116966485aca746bec5bf6ab9855514dc70dfb94ce3cdc9def01c5b36eeddc33e77bdbcfb8f6bb89bb0277fd6dd3e6f8066475dcfc5b5fcdec567af754b o2.patch -" diff --git a/main/lk2nd-msm8953/o2.patch b/main/lk2nd-msm8953/o2.patch deleted file mode 100644 index 373050f68..000000000 --- a/main/lk2nd-msm8953/o2.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/makefile b/makefile -index 437f7bcb0..51b060c9c 100644 ---- a/makefile -+++ b/makefile -@@ -53,7 +53,7 @@ ifeq ($(ENABLE_TRUSTZONE),1) - endif - - INCLUDES := -I$(BUILDDIR) -Iinclude --CFLAGS := -O2 -g -fno-builtin -finline -Wno-multichar -Wno-unused-parameter -Wno-unused-function $(LKLE_CFLAGS) -include $(CONFIGHEADER) -+CFLAGS := -O1 -g -fno-builtin -finline -Wno-multichar -Wno-unused-parameter -Wno-unused-function $(LKLE_CFLAGS) -include $(CONFIGHEADER) - # -fcommon is needed to build this using GCC 10 - CFLAGS += -fcommon - #CFLAGS += -Werror