xiaomi-beryllium: new device (MR 1156)
xiaomi-beryllium: update checksums xiaomi-beryllium: set mainline pkgver to 5.2.0 fix linter xiaomi-beryllium: add firmware package firmware-xiaomi-beryllium: fix linting warnings firmware-xiaomi-beryllium: fix linting warnings xiaomi-beryllium: set rootfs sector size to 4096 xiaomi-beryllium: fix deviceinfo checksum Apply suggestion to device/testing/device-xiaomi-beryllium/deviceinfo Apply suggestion to device/testing/device-xiaomi-beryllium/deviceinfo xiaomi-beryllium: unquote pkgnames xiaomi-beryllium: fix checksums [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
0bcd26fb0e
commit
a7553d6f3c
8 changed files with 13293 additions and 0 deletions
49
device/testing/device-xiaomi-beryllium/APKBUILD
Normal file
49
device/testing/device-xiaomi-beryllium/APKBUILD
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Contributor: Venji10 <bennisteinir@gmail.com>
|
||||
# Maintainer: Venji10 <bennisteinir@gmail.com>
|
||||
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-beryllium
|
||||
pkgdesc="Xiaomi Poco F1"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base mkbootimg"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-kernel-downstream:kernel_downstream
|
||||
$pkgname-kernel-mainline:kernel_mainline
|
||||
"
|
||||
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU, venus, modem firmware"
|
||||
depends="firmware-xiaomi-beryllium"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
kernel_downstream() {
|
||||
pkgdesc="USB, display (w/o HW acceleration) and touchscreen works (see device page in wiki for details)"
|
||||
depends="linux-xiaomi-beryllium mesa-dri-swrast"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_mainline() {
|
||||
pkgdesc="USB and display works (see device page in wiki for details) (GPU firmware needed)"
|
||||
depends="linux-xiaomi-beryllium-mainline mesa-dri-freedreno"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
sha512sums="722dc0db90f7e09e5d09520d52a67e8d1810c2c65e53b9bb4fbac6b1e90c087733994ddd58786be19e678e06641f407a268a70eac6457277b62da193085dc807 deviceinfo"
|
33
device/testing/device-xiaomi-beryllium/deviceinfo
Normal file
33
device/testing/device-xiaomi-beryllium/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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 Poco F1"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-beryllium"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_modules_initfs_mainline="ufs_qcom"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="2246"
|
||||
|
||||
deviceinfo_no_framebuffer="true"
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="console=ttyMSM0,115200n8 PMOS_NO_OUTPUT_REDIRECT"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_flash_offset_base="0x00000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_pagesize="4096"
|
||||
|
5
device/testing/device-xiaomi-beryllium/weston.ini
Normal file
5
device/testing/device-xiaomi-beryllium/weston.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[core]
|
||||
xwayland=true
|
||||
backend=drm-backend.so
|
||||
[shell]
|
||||
background-image=/usr/share/wallpapers/postmarketos.jpg
|
47
device/testing/linux-xiaomi-beryllium-mainline/APKBUILD
Normal file
47
device/testing/linux-xiaomi-beryllium-mainline/APKBUILD
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Contributor: Venji10 <bennisteinir@gmail.com>
|
||||
# Maintainer: Venji10 <bennisteinir@gmail.com>
|
||||
|
||||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/beryllium_defconfig
|
||||
|
||||
pkgname=linux-xiaomi-beryllium-mainline
|
||||
pkgver=5.2.0
|
||||
pkgrel=0
|
||||
pkgdesc="Xiaomi Poco F1 kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="xiaomi-beryllium"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps"
|
||||
makedepends="bison flex perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev openssl-dev"
|
||||
|
||||
|
||||
# Source
|
||||
_repository="linux-beryllium"
|
||||
_commit="3ca4b97b596fa220d8511894ee67a34493664a6c"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/Venji10/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
REPLACE_GCCH=0 \
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
||||
}
|
||||
|
||||
sha512sums="4a834f11155b6cb7ca3e7da7f9a561b4f96a2288215ba46cf880f0b95e4ed3ebb5b911d99f1daf7d9e0f2480116e53ffef409e88980fac79026d951f10ef7db3 linux-xiaomi-beryllium-mainline-3ca4b97b596fa220d8511894ee67a34493664a6c.tar.gz
|
||||
e3517f4e3369d5fa369a8f9a60ef11b6753dbacbc70f05013c24f78e4e6eaeb3317d1b6018f82c6cdfba32f4ff9712f4c1d934c0ab818040035ce3decec41c11 config-xiaomi-beryllium.aarch64"
|
File diff suppressed because it is too large
Load diff
48
device/testing/linux-xiaomi-beryllium/APKBUILD
Normal file
48
device/testing/linux-xiaomi-beryllium/APKBUILD
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Contributor: Venji10 <bennisteinir@gmail.com>
|
||||
# Maintainer: Venji10 <bennisteinir@gmail.com>
|
||||
|
||||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/beryllium_defconfig
|
||||
|
||||
pkgname=linux-xiaomi-beryllium
|
||||
pkgver=4.9.182
|
||||
pkgrel=0
|
||||
pkgdesc="Xiaomi Poco F1 kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="xiaomi-beryllium"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps"
|
||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
||||
|
||||
|
||||
# Source
|
||||
_repository="android_kernel_xiaomi_sdm845"
|
||||
_commit="0c1feb8b3a7cc62aed52346331f64190e644cca9"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
||||
O="$_outdir"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
||||
}
|
||||
|
||||
sha512sums="60f63841673f31e1faf9f26113e93ca5ccf83925618bc35d1f6e11744f2f0f295bf32cfb6f9ece1d104868ed12af5ac76dea2ee39b4fb26b0569c8779ce0d74d linux-xiaomi-beryllium-0c1feb8b3a7cc62aed52346331f64190e644cca9.tar.gz
|
||||
fd387f1d36d5bd65b082430af9a675f23720385b9852f02ab59d59ae6efb55e7a4da7cec1a362a8e485814058d91bb34ce59a81fd0def5a9bd66dad3540a10de config-xiaomi-beryllium.aarch64"
|
File diff suppressed because it is too large
Load diff
48
firmware/firmware-xiaomi-beryllium/APKBUILD
Normal file
48
firmware/firmware-xiaomi-beryllium/APKBUILD
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Contributor: Venji10 <bennisteinir@gmail.com>
|
||||
# Maintainer: Venji10 <bennisteinir@gmail.com>
|
||||
|
||||
pkgname=firmware-xiaomi-beryllium
|
||||
pkgver=0
|
||||
pkgrel=0.1
|
||||
_commit="c91d13e6ee4c91b5665911816607ddc7bb60f0a4"
|
||||
pkgdesc="Firmware files for Xiaomi Poco F1"
|
||||
url="https://postmarketos.org"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!strip !check !archcheck !spdx"
|
||||
|
||||
# Source
|
||||
_files="a630_zap.mdt a630_zap.elf a630_zap.b02 a630_zap.b01 a630_zap.b00 a630_sqe.fw a630_gmu.bin "
|
||||
|
||||
_files_sdm845="sdm845/adsp.mbn sdm845/adspr.jsn sdm845/adspua.jsn sdm845/cdsp.mbn
|
||||
sdm845/cdspr.jsn sdm845/mba.mbn sdm845/modem.mbn sdm845/modemuw.jsn sdm845/wlanmdsp.mbn"
|
||||
|
||||
_files_venus="venus-5.2/venus.b00 venus-5.2/venus.b01 venus-5.2/venus.b02 venus-5.2/venus.b03
|
||||
venus-5.2/venus.b04 venus-5.2/venus.mbn venus-5.2/venus.mdt"
|
||||
|
||||
source="$pkgname-$_commit.tar.gz::https://github.com/Venji10/firmware-xiaomi-beryllium/archive/$_commit.tar.gz"
|
||||
builddir="$srcdir/firmware-xiaomi-beryllium-$_commit"
|
||||
|
||||
package() {
|
||||
# /lib/firmware/qcom
|
||||
for _i in $_files; do
|
||||
install -D -m644 "$_i" \
|
||||
"$pkgdir"/lib/firmware/qcom/"$_i"
|
||||
done
|
||||
|
||||
# /lib/firmware/qcom/sdm845
|
||||
for _i in $_files_sdm845; do
|
||||
install -D -m644 "$_i" \
|
||||
"$pkgdir"/lib/firmware/qcom/"$_i"
|
||||
done
|
||||
|
||||
# /lib/firmware/qcom/venus-5.2
|
||||
for _i in $_files_venus; do
|
||||
install -D -m644 "$_i" \
|
||||
"$pkgdir"/lib/firmware/qcom/"$_i"
|
||||
done
|
||||
|
||||
|
||||
}
|
||||
|
||||
sha512sums="d48484ce1fed8d40cc8ae9164121a521e60617700a27d557f08ab55c89d2cf88bb2ca7842a5001e30bde0c46051026c90bea02137060048878e41eb641841b6c firmware-xiaomi-beryllium-c91d13e6ee4c91b5665911816607ddc7bb60f0a4.tar.gz"
|
Loading…
Reference in a new issue