nokia-panther: new device (Nokia 4.2) (MR 3092)
This commit is contained in:
parent
891a4cb5a1
commit
ee7e523e61
4 changed files with 5083 additions and 0 deletions
29
device/testing/device-nokia-panther/APKBUILD
Normal file
29
device/testing/device-nokia-panther/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-nokia-panther
|
||||
pkgdesc="Nokia 4.2"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-nokia-panther
|
||||
mesa-dri-gallium
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c95c9f68ac2a2dbbc6b540484a01b5c3ca416657d70a92980a558e2022517e4b2aabf08cffe3c8cf048f97cd9167c732fdb2b6adb7c9333b2ee3c639702ee43e deviceinfo
|
||||
"
|
32
device/testing/device-nokia-panther/deviceinfo
Normal file
32
device/testing/device-nokia-panther/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="Nokia 4.2"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-panther"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1520"
|
||||
deviceinfo_screen_height="720"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_flash_sparse=true
|
||||
deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_serial_dm,0x78B0000 firmware_class.path=/vendor/firmware_mnt/image androidboot.usbconfigfs=true loop.max_part=7 buildvariant=user"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_mtk_mkimage="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
46
device/testing/linux-nokia-panther/APKBUILD
Normal file
46
device/testing/linux-nokia-panther/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
|
||||
pkgname=linux-nokia-panther
|
||||
pkgver=4.9.186
|
||||
pkgrel=0
|
||||
pkgdesc="Nokia 4.2 Kernel"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="nokia-panther"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="bash bc bison devicepkg-dev dtc flex openssl-dev perl linux-headers"
|
||||
|
||||
# Source
|
||||
_repository="nokia_4.2_kernel"
|
||||
_commit="7eb6784e9116b3f4008a18d5740005d0d788f120"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/garethppls/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
export DTC_EXT=dtc
|
||||
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="
|
||||
f903fa4fb6c4f79e9bcc61f332ccc90746a3339bc3a3b2cf60e3ac47799362b99da9fa3ae89b74c8fc5271e00fc7fa887fb9af3b9c3ae5f7153371348c970b6a linux-nokia-panther-7eb6784e9116b3f4008a18d5740005d0d788f120.tar.gz
|
||||
85ffb4ed3dd0b5a75c15d9299b3289bc33a3d788b9a79585dee542000b9b52dca73f5bfece958478938a541435de89d8a64ac15784f6186645047de46be01283 config-nokia-panther.aarch64
|
||||
"
|
4976
device/testing/linux-nokia-panther/config-nokia-panther.aarch64
Normal file
4976
device/testing/linux-nokia-panther/config-nokia-panther.aarch64
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue