Skip to content
Snippets Groups Projects
Commit 7b2ec024 authored by Statzar's avatar Statzar Committed by Newbyte
Browse files

xiaomi-fog: new device

parent 59f889ce
No related branches found
No related tags found
No related merge requests found
# Maintainer: Statzar <azurestatzar@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-fog
pkgdesc="Xiaomi Redmi 10C"
pkgver=0.1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="linux-xiaomi-fog mkbootimg postmarketos-base"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
88b59415ddde88091eb3f0594825dd0481e52bd9ddbd73eddf5dd3e4dc9a0375731ec724d89b85bafee2dadf1401cccbeb111709eb2082bcba9ec78493fe9a6d deviceinfo
"
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Xiaomi Redmi 10C"
deviceinfo_manufacturer="Xiaomi"
deviceinfo_codename="xiaomi-fog"
deviceinfo_year="2022"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1650"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=tty0 earlycon=msm_geni_serial,0x4a90000 androidboot.hardware=qcom androidboot.console=tty0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.selinux=permissive apparmor=1 security=apparmor firmware_class.path=/vendor/firmware_mnt/image buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_rootfs_image_sector_size="4096"
deviceinfo_flash_pagesize="4096"
deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000100"
# Xiaomi Communications Co., Ltd.
deviceinfo_usb_idVendor="0x05с6"
# Mi/Redmi series (RNDIS)
deviceinfo_usb_idProduct="0x9039"
# Maintainer: Statzar <azurestatzar@gmail.com>
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/fog-stock_defconfig
pkgname=linux-xiaomi-fog
pkgver=4.19.306
pkgrel=0
pkgdesc="Xiaomi Redmi 10C kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="xiaomi-fog"
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
linux-headers
xz
"
# Source
_repository="A14-fog"
_commit="1e353e04e95bf0e4531a3b623e934a44aaeeb1f3"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/SourceLab081/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
REPLACE_GCCH=0
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
6e7031306dedd70c726989ba34dc22e586b3d74ceeaa2777a942f6d8a2888b031aaf0930764aa22a046d26736753e9572461caa22da3922bc2b42b66c95689e7 linux-xiaomi-fog-1e353e04e95bf0e4531a3b623e934a44aaeeb1f3.tar.gz
53f68d9a00b2855ea1122a6b8624631a68ec83065dcbf561ed746ccef75cfa92e8be844f0f461eedacb3c5ff4aa69155f9ad7ef19e3f8a6d0a2a958a90d9c1b3 config-xiaomi-fog.aarch64
"
This diff is collapsed.
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