device-xiaomi-spes: new device
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6398 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
218d0b1745
commit
36875d85f2
4 changed files with 5643 additions and 0 deletions
32
device/testing/device-xiaomi-spes/APKBUILD
Normal file
32
device/testing/device-xiaomi-spes/APKBUILD
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Omar Mahboubi <omar_mahboubi@tutanota.com>
|
||||
pkgname=device-xiaomi-spes
|
||||
pkgdesc="Xiaomi Redmi Note 11"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-xiaomi-spes
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
postmarketos-base-downstream
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
540f3dfb2792c0717428915f1db2346ed21ccd4ac5f8fd5f7b7abd3350bcd767023c39c2db50c31be7178352e7975afa5239eed0ae6bbefe8394e605a6742339 deviceinfo
|
||||
"
|
||||
32
device/testing/device-xiaomi-spes/deviceinfo
Normal file
32
device/testing/device-xiaomi-spes/deviceinfo
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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 Note 11"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-spes"
|
||||
deviceinfo_year="2021"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="console=tty0"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_pagesize="4096"
|
||||
deviceinfo_header_version="3"
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
deviceinfo_flash_offset_base="0x00000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00008000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_fastboot_partition_dtbo="dtbo"
|
||||
deviceinfo_usb_idVendor="0x05с6"
|
||||
deviceinfo_usb_idProduct="0x9039"
|
||||
67
device/testing/linux-xiaomi-spes/APKBUILD
Normal file
67
device/testing/linux-xiaomi-spes/APKBUILD
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/vendor/spes-perf_defconfig
|
||||
|
||||
pkgname=linux-xiaomi-spes
|
||||
pkgver=4.19.325
|
||||
pkgrel=0
|
||||
pkgdesc="Xiaomi Redmi Note 11 kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="xiaomi-spes"
|
||||
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
|
||||
python3
|
||||
linux-headers
|
||||
clang
|
||||
"
|
||||
|
||||
# Source
|
||||
_repository="kernel_xiaomi_sm6225"
|
||||
_commit="ae003d9abaa184f767e16e641e9d0eeb1ffcbef2"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/muralivijay/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make O="$_outdir" ARCH="$_carch" CC="clang" HOSTCC="clang" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
|
||||
"$_flavor" "$_outdir"
|
||||
|
||||
make O="$_outdir" 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
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5e0b0ee4131983198ba3cf8e399be40337fb8b9b1ae3b63c0c68fc37d04c0f5562fff6336e8b7b3c56d43650a9d40f209525ce6e7902091adc50f50fe1631438 linux-xiaomi-spes-ae003d9abaa184f767e16e641e9d0eeb1ffcbef2.tar.gz
|
||||
d3fdf9b32e1416935a99a39f3eae2f7e3e727e7f1d519f47f83c7a554e178a5d0757032a185fddfde93c57f64e3d4183acf0e043b06c2c81e67017f58f68513b config-xiaomi-spes.aarch64
|
||||
"
|
||||
5512
device/testing/linux-xiaomi-spes/config-xiaomi-spes.aarch64
Normal file
5512
device/testing/linux-xiaomi-spes/config-xiaomi-spes.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue