xiaomi-fog: new device (MR 4911)
This commit is contained in:
parent
59f889ceb7
commit
19a136e4e6
4 changed files with 5837 additions and 0 deletions
26
device/testing/device-xiaomi-fog/APKBUILD
Normal file
26
device/testing/device-xiaomi-fog/APKBUILD
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Statzar <azurestatzar@gmail.com>
|
||||
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-fog
|
||||
pkgdesc="Xiaomi Redmi 10C"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
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="
|
||||
da242b2092a43b123b12175af6ab170efa3c530a609f2ac7f8baf631fe43afe8d3c743be06f7da6a2ff0d91598e5a003f5dc8c1447621159368db5bb443ca474 deviceinfo
|
||||
"
|
35
device/testing/device-xiaomi-fog/deviceinfo
Normal file
35
device/testing/device-xiaomi-fog/deviceinfo
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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"
|
||||
|
||||
# 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"
|
59
device/testing/linux-xiaomi-fog/APKBUILD
Normal file
59
device/testing/linux-xiaomi-fog/APKBUILD
Normal file
|
@ -0,0 +1,59 @@
|
|||
# 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
|
||||
"
|
5717
device/testing/linux-xiaomi-fog/config-xiaomi-fog.aarch64
Normal file
5717
device/testing/linux-xiaomi-fog/config-xiaomi-fog.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue