From 77fc207b0c5444d0723e8947bdd680a8bcc55702 Mon Sep 17 00:00:00 2001
From: Lauren Kelly <lauren.kelly@msn.com>
Date: Sun, 15 Mar 2020 15:28:09 +0000
Subject: [PATCH] alcatel-pop7lte: use downstreamkernel_package for kernel
 build

Signed-off-by: Lauren Kelly <lauren.kelly@msn.com>
---
 device/testing/linux-alcatel-pop7lte/APKBUILD | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/device/testing/linux-alcatel-pop7lte/APKBUILD b/device/testing/linux-alcatel-pop7lte/APKBUILD
index 55e7b1d03ca..2dc0f007f2b 100644
--- a/device/testing/linux-alcatel-pop7lte/APKBUILD
+++ b/device/testing/linux-alcatel-pop7lte/APKBUILD
@@ -53,23 +53,7 @@ build() {
 }
 
 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
+	downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
 
 	# Master DTB (deviceinfo_bootimg_qcdt)
 	install -Dm644 "$builddir/arch/arm/boot/dt.img" \
-- 
GitLab