device/linux-samsung-a3y17lte: fixed build

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7642>
This commit is contained in:
Mazzotti2 2025-12-27 11:35:53 +01:00 committed by The Friendly Merge Bot
parent 9e1af0f117
commit 945f16bcc0
No known key found for this signature in database

View file

@ -4,7 +4,7 @@
pkgname=linux-samsung-a3y17lte
pkgver=3.18.14
pkgrel=2
pkgrel=3
pkgdesc="Samsung Galaxy A3 (2017) kernel fork"
arch="aarch64"
_carch="arm64"
@ -38,14 +38,24 @@ _outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
# Fix for proc.S build error
sed -i '189s/#.*//' arch/arm64/mm/proc.S
# Neutralizing FIPS integrity checks, just returning 0
echo "int main() { return 0; }" > scripts/fips_crypto_utils.c
# Silence FIPS hmac script
echo "exit 0" > scripts/fips_crypto_hmac.sh
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
KCFLAGS="-Wno-error -w -fno-pie -fno-stack-protector -std=gnu89 -fcommon" \
CONFIG_FIPS=n
# Master DTB (deviceinfo_bootimg_qcdt)
dtbTool-exynos -o "$_outdir/arch/$_carch/boot"/dt.img \
$(find "$_outdir/arch/$_carch/boot/dts/" -name *a3y17lte*.dtb)
}
@ -56,7 +66,8 @@ package() {
"$pkgdir"/boot/dt.img
}
sha512sums="71cb4a24bc1aaeaeafd5e00159e560f487eb851a099f652fcb2e9709e6aea4f2e1b95830be13c865c2fab1fad54c9ba209d72068806cef64713e1e12e3d9fb70 linux-samsung-a3y17lte-5414dbfa9f5e114366ff0cc2ffeb9725f3c6b8c3.tar.gz
sha512sums="
71cb4a24bc1aaeaeafd5e00159e560f487eb851a099f652fcb2e9709e6aea4f2e1b95830be13c865c2fab1fad54c9ba209d72068806cef64713e1e12e3d9fb70 linux-samsung-a3y17lte-5414dbfa9f5e114366ff0cc2ffeb9725f3c6b8c3.tar.gz
773cfc48bac93381f1b7fa5e191cead49fc0fad923022b2e28532f4b43ac67ef6a6760613c3693226ed9ab67146f30cf3e0e578e0657c901c9af48f75de6881c config-samsung-a3y17lte.aarch64
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
@ -67,4 +78,5 @@ sha512sums="71cb4a24bc1aaeaeafd5e00159e560f487eb851a099f652fcb2e9709e6aea4f2e1b9
66af05562023bebc8334db8236655960e306aa4e2ce216129a077a762bcf951b8c2c286e1c3f45c6478296769e3b6a70f88256e909a9c48f2539bfc056ecf312 04-fix-firmware-make.patch
436f028e28760c2c93c63333ecd78d4d03291264cb2e108f66d75d5f2e44df9b0cba90ecfd762df3aab7ff131eddc13ba033332a6384680bff85424cfe95c4c2 05-add-dts-make.patch
9e532d0051756831e12948a5584f331528be58bcddbfab1e1df0217760d035f81b1ac7361b8e81190d4901761572680965b4dd8ef30492c5f94fc330089ce0b3 06-fix-video-argb-setting.patch
0d56ba508408dc31961ad688f7fd960b0008851fd5729088658095417781b99962740e0c64d162a26f8389e4b4dc88e291252e7935e896fc70bf73c23150caea 07-fix-usb-gadget-random-mac.patch"
0d56ba508408dc31961ad688f7fd960b0008851fd5729088658095417781b99962740e0c64d162a26f8389e4b4dc88e291252e7935e896fc70bf73c23150caea 07-fix-usb-gadget-random-mac.patch
"