google-sargo: new device (MR 3136)

[ci:skip-build] already built successfully in CI
This commit is contained in:
Richard Acayan 2022-05-31 19:13:29 -04:00 committed by Clayton Craft
parent 879ffd1f54
commit 0a50707c6e
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 5527 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-google-sargo
pkgdesc="Google Pixel 3a"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-google-sargo
mesa-dri-gallium
mkbootimg
postmarketos-base
make-dynpart-mappings
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
ca8b0ae5d6a698a7f2af7f5724cbe6603e5191542720c5bca606482d1114459b9a3709b6165ab8cc62cf6fe29c0cb74dfb782067cd3d9e67d149b38b839736be deviceinfo
"

View file

@ -0,0 +1,36 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Google Pixel 3a"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-sargo"
deviceinfo_year="2019"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2220"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 firmware_class.path=/vendor/firmware cgroup.memory=nokmem lpm_levels.sleep_disabled=1 loop.max_part=7 androidboot.boot_devices=soc/7c4000.sdhci androidboot.super_partition=system buildvariant=userdebug"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
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"
deviceinfo_flash_sparse="true"
deviceinfo_super_partitions="/dev/mmcblk0p68 /dev/mmcblk0p69"
deviceinfo_no_framebuffer="true"

View file

@ -0,0 +1,59 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/bonito_defconfig
pkgname=linux-google-sargo
pkgver=4.9.292
pkgrel=0
pkgdesc="Google Pixel 3a kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="google-sargo"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
android-mkdtboimg
bash
bc
bison
dtc
devicepkg-dev
flex
lz4
openssl-dev
perl
"
# Source
_repository="android_kernel_google_msm-4.9"
_commit="b72846a92eb2df2fe5c73dc1159292286f022258"
_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"
export MKDTIMG="mkdtimg"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
KERNEL_IMAGE_NAME="Image.lz4-dtb" downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
cdba93be679f6b084432ec6069d809390fce60667ca1a9dc3eccf916959e687f4898e1e07c263582c900aa3e1cb5a517a4e28dd0bf4f9f1328fbf6b3e06d5048 linux-google-sargo-b72846a92eb2df2fe5c73dc1159292286f022258.tar.gz
8d7f41c8b157f454024b115d693d7c7a0b864233390c78b1562784c8720b37973ca563689c2aca32ede7d8f85c3f38f9da6921a80d8185bc64bff7ffbd7da5d6 config-google-sargo.aarch64
"

File diff suppressed because it is too large Load diff