Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00c6a0be40 |
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Matus Mastena <Shadiness9530@proton.me>
|
||||
pkgname=device-samsung-a53x
|
||||
pkgdesc="Samsung Galaxy A53 5G"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-samsung-a53x
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
71476a99ad6cffc688255ea037272ea827d2bc591ccf38334d12ffd81cf168ff52cb1cfcc957aa15ed1767c869a85ab832aba6e4043f74e931d4605c57e0ffd3 deviceinfo
|
||||
"
|
||||
@@ -0,0 +1,29 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Samsung Galaxy A53 5G"
|
||||
deviceinfo_manufacturer="Samsung"
|
||||
deviceinfo_codename="samsung-a53x"
|
||||
deviceinfo_year="2022"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="heimdall-bootimg"
|
||||
deviceinfo_kernel_cmdline="rw"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_pagesize="4096"
|
||||
deviceinfo_dtb_second="false"
|
||||
deviceinfo_flash_heimdall_partition_kernel="boot"
|
||||
deviceinfo_flash_heimdall_partition_rootfs="system"
|
||||
# Partitions for flashing
|
||||
deviceinfo_super_partitions="/dev/block/sda30 /dev/block/sda30"
|
||||
|
||||
# Odin/flasher stuff
|
||||
deviceinfo_usb_idProduct="0x685d"
|
||||
deviceinfo_usb_idVendor="0x04e8"
|
||||
@@ -0,0 +1,81 @@
|
||||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on make defconfig
|
||||
|
||||
pkgname=linux-samsung-a53x
|
||||
pkgver=5.10.6
|
||||
pkgrel=0
|
||||
pkgdesc="Samsung Galaxy A53 5G kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="samsung-a53x"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="
|
||||
bash
|
||||
bc
|
||||
bison
|
||||
devicepkg-dev
|
||||
findutils flex
|
||||
openssl-dev
|
||||
perl
|
||||
xz
|
||||
llvm
|
||||
clang
|
||||
lld
|
||||
linux-headers
|
||||
"
|
||||
|
||||
# Source
|
||||
_repository="s5e8825"
|
||||
_commit="b155b4e2fcf8ee5aa6f5f71d2133eef9f3ec5e4d"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://git.severkar.eu/SM-A536/Gabriel2392_android_kernel_samsung_a53x_xy/archive/$_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/gabriel2392_android_kernel_samsung_a53x_xy"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
cd $builddir
|
||||
local i
|
||||
local makefiles="$(find $builddir -type f -name Makefile)
|
||||
$(find . -type f -name Kbuild)"
|
||||
for i in $makefiles; do
|
||||
sed -i 's/-Werror-/-W/g' "$i"
|
||||
sed -i 's/-Werror//g' "$i"
|
||||
sed -i 's/=strict-prototypes//g' $i
|
||||
sed -i 's/=implicit-function-declaration//g' $i
|
||||
sed -i 's/=implicit-int//g' $i
|
||||
sed -i 's/=return-type//g' $i
|
||||
sed -i 's/=date-time//g' $i
|
||||
done
|
||||
make PLATFORM_VERSION=12 ANDROID_MAJOR_VERSION=s ARCH=$_carch TARGET_SOC=$_repository $_repository-a53xxx_defconfig
|
||||
echo "CONFIG_SECTION_MISMATCH_WARN_ONLY=y" >> $builddir/.config
|
||||
}
|
||||
|
||||
build() {
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
|
||||
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
||||
"$pkgdir/boot/vmlinuz"
|
||||
|
||||
make modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_PATH="$pkgdir"/boot/ \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7c453806e8cf676e5000e7bdc83a4a745da980ab9fdd1163b54258a35b74e3a6f9b7b65965be086fd89649c1463bc88628092f8891316f570d0dbf7c571db2cc linux-samsung-a53x-b155b4e2fcf8ee5aa6f5f71d2133eef9f3ec5e4d.tar.gz
|
||||
"
|
||||
Reference in new issue
Block a user