samsung-baffinlite: new device ()

This commit is contained in:
knuxify 2020-03-20 13:53:50 +01:00 committed by Alexey Min
parent 43364cd064
commit aa32a4df76
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
9 changed files with 3689 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-baffinlite
pkgdesc="Samsung Galaxy Grand Neo"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-baffinlite mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo
modules-load.conf"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/modules-load.conf \
"$pkgdir"/etc/modules-load.d/00-$pkgname.conf
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-samsung-baffinlite"
mkdir "$subpkgdir"
}
sha512sums="570c0cba460c9c23cdd56314ae1b67b35ad8a90f3a0a0039980f6f2eea76a01808c398d39bfd6fd4d1628320ba2882bf87179f4afcd58677515cbf61f5a58478 deviceinfo
af036fe35011db078379dbb2e8c16c86546f0a4fcb3d1bcee3502bb1ea5b38f3ec5a9fa8cd1ca8ed8b89592a7f572d6072781289845303e0bf85fc2de4ead9fb modules-load.conf"

View 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="Samsung Galaxy Grand Neo"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-baffinlite"
deviceinfo_year="2014"
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="armv7"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="480"
deviceinfo_screen_height="800"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_kernel_cmdline="androidboot.selinux=permissive"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x81e00000"
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_heimdall_partition_kernel="KERNEL"
deviceinfo_flash_heimdall_partition_system="SYSTEM"

View file

@ -0,0 +1 @@
dhd

View file

@ -0,0 +1,59 @@
# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/cyanogenmod_baffinlite_defconfig
pkgname=linux-samsung-baffinlite
pkgver=3.4.5
pkgrel=0
pkgdesc="Samsung Galaxy Grand Neo kernel fork"
arch="armv7"
_carch="arm"
_flavor="samsung-baffinlite"
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 xz"
# Source
_repository="android_kernel_samsung_baffinlite"
_commit="6cd5888e4714454ca7398f46aa09fa29170d92b9"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/knuxdroid/$_repository/archive/$_commit.tar.gz
$_config
gcc7-give-up-on-ilog2-const-optimizations.patch
gcc8-fix-put-user.patch
kernel-use-the-gnu89-standard-explicitly.patch
"
builddir="$srcdir/$_repository-$_commit"
prepare() {
default_prepare
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch"
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
make ARCH="$_carch" CC="${CC:-gcc}" CFLAGS_MODULE="-fno-pic" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" modules
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 \
modules_install
}
sha512sums="0c1043e703bd9382db48d2f472abb8d0acee74ff16070daf03bef9d591d611aae45c0af09971111ef6b9f3fca6dcd3742e2318ef29a0cde13910983b20a65bbc linux-samsung-baffinlite-6cd5888e4714454ca7398f46aa09fa29170d92b9.tar.gz
1d0d1cb31ebe1a671c327044250888978a2523ce93a0f5c19d53116fbcd811a6fa8b69bfdf5f2b46a6f9fc296364c8080363469818108344d95c95fa602af73f config-samsung-baffinlite.armv7
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc7-give-up-on-ilog2-const-optimizations.patch

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc8-fix-put-user.patch

View file

@ -0,0 +1 @@
../../.shared-patches/linux/kernel-use-the-gnu89-standard-explicitly.patch

View file

@ -0,0 +1,23 @@
# Contributor: knuxify <knuxify@gmail.com>
pkgname=firmware-samsung-baffinlite
pkgver=1
pkgrel=0
_commit="d7195e553eed22f58835d24ecdea40e97bf639f4"
pkgdesc="Samsung Galaxy Grand Neo Firmware"
url="https://github.com/SamsungBCM-GrandNeo/android_vendor_samsung_baffinlite"
arch="armv7"
license="proprietary"
source="$pkgname-$_commit.tar.gz::https://github.com/SamsungBCM-GrandNeo/android_vendor_samsung_baffinlite/archive/$_commit.tar.gz"
options="!check !strip !archcheck !spdx"
builddir="$srcdir/android_vendor_samsung_baffinlite-$_commit"
depends="firmware-aosp-broadcom-wlan"
package() {
# Wifi
for _i in bcmdhd_sta.bin nvram_net.txt; do
install -Dm644 proprietary/etc/wifi/"$_i" \
"$pkgdir"/lib/firmware/postmarketos/"$_i"
done
}
sha512sums="d89032dfbae9044f4318b719abee21e6bdaba7a03c082c04531b2ec306246db3b6f35c23520e33c802ce9d4444e41b6e2cea6107a83a7a25fda1a89fbae16113 firmware-samsung-baffinlite-d7195e553eed22f58835d24ecdea40e97bf639f4.tar.gz"