unmaintained/shift-axolotl-downstream: new device (MR 3637)

Downstream for kernel development, not for actual use.

Kernel defconfig taken from stock with:
- CONFIG_ANDROID_PARANOID_NETWORK unset
- CONFIG_DEVTMPFS set
- CONFIG_EXT4_FS_POSIX_ACL set
- CONFIG_LOCALVERSION set to "-downstream"
- CONFIG_SYSVIPC set
- CONFIG_USB_CONFIGFS_RNDIS set
- CONFIG_USER_NS set

Change-Id: I22bfd30dfc664dfaa2123c856b3662ddb37e760f
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Dylan Van Assche 2022-11-12 13:06:40 +01:00 committed by Oliver Smith
parent de609bf946
commit 1cbc021701
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 5708 additions and 0 deletions

View file

@ -0,0 +1,32 @@
# Unmaintained: Downstream port, only for testing. Use mainline port (shift-axolotl)!
# This kernel is mostly used for bringing up new features on mainline, thus unmaintained
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-shift-axolotl-downstream
pkgdesc="SHIFT6mq downstream"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-shift-axolotl-downstream
mkbootimg
msm-fb-refresher
postmarketos-base
postmarketos-update-kernel
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
3a60faa3024b6a066e5f5319c0e651ffe4980be51cc1b848a946b96cd861be16d651dc2184993eca89f28fe442a39a1a78f67753dc1bb295cab4bdaaa6f2fe49 deviceinfo
"

View file

@ -0,0 +1,37 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="SHIFT6mq"
deviceinfo_manufacturer="SHIFT"
deviceinfo_codename="shift-axolotl-downstream"
deviceinfo_year="2020"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2160"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyMSM0,115200n8 buildvariant=userdebug androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=2048 androidboot.usbconfigfs=true androidboot.usbcontroller=a800000.dwc3 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 ramoops.mem_address=0xac000000 ramoops.mem_size=0x200000 ramoops.console_size=0x40000 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="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"
deviceinfo_flash_sparse="true"
# Kernel
deviceinfo_flash_kernel_on_update="true"
# Required for devices using UFS as storage (instead of e.g. eMMC)
deviceinfo_rootfs_image_sector_size="4096"

View file

@ -0,0 +1,52 @@
# Unmaintained: Downstream port, only for testing. Use mainline port (shift-axolotl)!
# This kernel is mostly used for bringing up new features on mainline, thus unmaintained
# Reference: <https://postmarketos.org/vendorkernel>
pkgname=linux-shift-axolotl-downstream
pkgver=4.9.329
pkgrel=0
pkgdesc="SHIFT axolotl downstream kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="shift-axolotl-downstream"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6 openssl-dev"
# Compiler: GCC 6 (latest doesn't boot to initramfs)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_shift_sdm845"
_commit="0181dcc21fb32de34c5bd331cfd834598d9ff54f"
_config="config-$_flavor.$arch"
_outdir="out"
source="
$pkgname-$_commit.tar.gz::https://github.com/SHIFTPHONES/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
prepare() {
default_prepare
. 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="
2eb971b84b9471f4b7ac6af071b100684ab2f7c2c509ebccf1ad402ae228ed61c3cd68bc05e71f761e84f0b2b52ee1299d05751260a790afa470c7b4a5293e91 linux-shift-axolotl-downstream-0181dcc21fb32de34c5bd331cfd834598d9ff54f.tar.gz
9fb1e5e3dce284daa95c9e7890e4096c655d8a3763c2f39e3a7812bf1b6e27b8b3bccdf7d02e8cda1ed8b3d2519ab5caf6f183344d5f3d7da3771ebec3085580 config-shift-axolotl-downstream.aarch64
"