lenovo-tb3-710i: new device
Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Ferass El Hafidi <funderscore@postmarketos.org> Edit APKBUILD Changed deviceinfo aport lint Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7687>
This commit is contained in:
parent
2a080185b4
commit
db020e37a6
11 changed files with 3621 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
Section "Device"
|
||||
Identifier "LCD"
|
||||
Driver "fbdev"
|
||||
Option "Rotate" "CCW"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "Screen0"
|
||||
Device "LCD"
|
||||
EndSection
|
||||
35
device/downstream/device-lenovo-tb3-710i/APKBUILD
Normal file
35
device/downstream/device-lenovo-tb3-710i/APKBUILD
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer="sreeranj <sreeranj1000@gmail.com>"
|
||||
pkgname=device-lenovo-tb3-710i
|
||||
pkgdesc="Lenovo Tab3 7"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-lenovo-tb3-710i
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
postmarketos-base-downstream
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
00-fbdev-rotate.conf
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
install -Dm644 "$srcdir"/00-fbdev-rotate.conf "$pkgdir"/etc/X11/xorg.conf.d/00-fbdev-rotate.conf
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
03dc96bb3bb360d32db34b45b0d220fa501849402ddfc3f1f506cce38355c69822780e989cc1058f878d82604481e5dfbbd33e298838d3836a7c7a31d4482e85 deviceinfo
|
||||
9e231e1c27492a08414caacbfa2336f0e95e9a601447ad50f7b8cd5b7b5c90498fd3cf1e48f73641365271ac9271feea2e587961af6ea7d6bbba6e4e90a88b93 00-fbdev-rotate.conf
|
||||
"
|
||||
27
device/downstream/device-lenovo-tb3-710i/deviceinfo
Normal file
27
device/downstream/device-lenovo-tb3-710i/deviceinfo
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Lenovo Tab3 7"
|
||||
deviceinfo_manufacturer="Lenovo"
|
||||
deviceinfo_codename="lenovo-tb3-710i"
|
||||
deviceinfo_year="2016"
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="tablet"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="600"
|
||||
deviceinfo_screen_height="1024"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="mtkclient"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x04000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x0e000000"
|
||||
70
device/downstream/linux-lenovo-tb3-710i/APKBUILD
Normal file
70
device/downstream/linux-lenovo-tb3-710i/APKBUILD
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm/configs/hq8321_tb_b2b_l_defconfig
|
||||
|
||||
maintainer="sreeranj <sreeranj1000@gmail.com>"
|
||||
pkgname=linux-lenovo-tb3-710i
|
||||
pkgver=3.10.72
|
||||
pkgrel=0
|
||||
pkgdesc="Lenovo Tab3 7 kernel fork"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="lenovo-tb3-710i"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="bash bc bison devicepkg-dev flex gcc4 linux-headers make perl python3 openssl-dev ncurses-dev"
|
||||
if [ "${CC:0:5}" != "gcc4-" ]; then
|
||||
export CC="gcc4-$CC"
|
||||
export HOSTCC="gcc4-gcc"
|
||||
export CROSS_COMPILE="gcc4-$CROSS_COMPILE"
|
||||
fi
|
||||
|
||||
_repository="linux-lenovo-tb3-710i"
|
||||
_commit="584fb0193192f814b804dba4f57c1be1947d9703"
|
||||
_config="config-lenovo-tb3-710i.armv7"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/1000Stars-debug/$_repository/archive/$_commit.tar.gz
|
||||
fix-paths.patch
|
||||
fix-busybox-sh-compatibility.patch
|
||||
use-gnu89-explicitly.patch
|
||||
linux3.0-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
linux3.4-fix-piggy.gzip.S.patch
|
||||
fix-check-lxdialog.patch
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$pkgname-$_commit"
|
||||
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/$_config" .config
|
||||
yes "" | make ARCH="$_carch" HOSTCC="$HOSTCC" oldconfig
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="$CC" HOSTCC="$HOSTCC" prepare
|
||||
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
_install_dir="$srcdir/$pkgname-$_commit"
|
||||
install -D "$_install_dir/include/config/kernel.release" "$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
||||
cd "$_install_dir/arch/$_carch/boot"
|
||||
install -Dm644 zImage-dtb "$pkgdir/boot/vmlinuz"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e69556d9f95aebba32420ad56ba4de95326dbebf43ce4f5d1e5c7e14e9a9c0f5c6776f657bc926fad85dc083877d1828e8dea2487c7e93c41011037a5ea436f9 linux-lenovo-tb3-710i-584fb0193192f814b804dba4f57c1be1947d9703.tar.gz
|
||||
5a96db8474cdb9f7704c7b30cdf426d3f37b7a5f5d172eeebeb434bdb943555c0abd26ed63531855a7ef1122b7a8c1ef394539f8685a5da15f036f47e3a40564 fix-paths.patch
|
||||
9d5cbfb3fa0d076ae090778f4a80c172c296b71eca55bad69b25ecc6bd5658e38bcb53b7483b43066b21907bcb770974a2639983cb1ff59bb24f3fc429fc71d4 fix-busybox-sh-compatibility.patch
|
||||
7674bf62ce6ac7a6cffa9468d464ed66448b72fdae95023895992a2127c107b9914e1453a1e8913ed4a62416c12ea40a54095da9c581a265c0c08476449de20d use-gnu89-explicitly.patch
|
||||
66ab793bb1fa50a07f10e2cdb0f49ea05a787c6b1fe5358e69a76e43295ac5be3b68cdf6a882e868bfe6969cac981c5545587cd57eee4b5cec26078ae0ecaa1c linux3.0-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
080745ca4ecaa804ee1df26ea81975ca93b74372e0c08322a6c481e97807495ae6ceb6cc77653afa24f9f2df45da8ebf8e5de6b06037fbb08e0279877ce42188 linux3.4-fix-piggy.gzip.S.patch
|
||||
182be3c596b9cc267ac108d7cf03fc8c328ccc6b36770800e4dcedea8d1bb65e3f5eacf590c2948f58b1418cc60a1670ba77dde8c259e428d158c31b6e1dbaf5 fix-check-lxdialog.patch
|
||||
771a62c77cc0aaa232708f80a70c3b273f42906844617941fd3c2a9d0054b89ef867175f2a486bdad62ad93bc86918933decb1634023ad174719dcf283439c6f config-lenovo-tb3-710i.armv7
|
||||
"
|
||||
3409
device/downstream/linux-lenovo-tb3-710i/config-lenovo-tb3-710i.armv7
Normal file
3409
device/downstream/linux-lenovo-tb3-710i/config-lenovo-tb3-710i.armv7
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,19 @@
|
|||
commit a6c7d0f4d5d1e17121a9c91aa10289a86d2fbfc8
|
||||
Author: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
||||
Date: Wed Nov 27 02:22:56 2019 +0100
|
||||
|
||||
busybox sh adaptation
|
||||
|
||||
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
|
||||
index 32b10f53..27cbbbc3 100755
|
||||
--- a/scripts/link-vmlinux.sh
|
||||
+++ b/scripts/link-vmlinux.sh
|
||||
@@ -105,7 +105,7 @@ sortextable()
|
||||
}
|
||||
|
||||
# Delete output files in case of error
|
||||
-trap cleanup SIGHUP SIGINT SIGQUIT SIGTERM ERR
|
||||
+trap cleanup SIGHUP SIGINT SIGQUIT SIGTERM
|
||||
cleanup()
|
||||
{
|
||||
rm -f .old_version
|
||||
1
device/downstream/linux-lenovo-tb3-710i/fix-check-lxdialog.patch
Symbolic link
1
device/downstream/linux-lenovo-tb3-710i/fix-check-lxdialog.patch
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/fix-check-lxdialog.patch
|
||||
19
device/downstream/linux-lenovo-tb3-710i/fix-paths.patch
Normal file
19
device/downstream/linux-lenovo-tb3-710i/fix-paths.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
commit d44b9ce183b40505e95e784cc67054890f946ffd
|
||||
Author: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
||||
Date: Wed Nov 27 02:18:46 2019 +0100
|
||||
|
||||
fix bad path
|
||||
|
||||
diff --git a/drivers/misc/mediatek/gpu/mt6580/mali/mali/Kbuild b/drivers/misc/mediatek/gpu/mt6580/mali/mali/Kbuild
|
||||
index d3176cb4..4291be00 100755
|
||||
--- a/drivers/misc/mediatek/gpu/mt6580/mali/mali/Kbuild
|
||||
+++ b/drivers/misc/mediatek/gpu/mt6580/mali/mali/Kbuild
|
||||
@@ -201,7 +201,7 @@ endif
|
||||
ccflags-y += -DSVN_REV_STRING=\"$(DRIVER_REV)\"
|
||||
|
||||
VERSION_STRINGS :=
|
||||
-VERSION_STRINGS += API_VERSION=$(shell cd $(DRIVER_DIR); grep "\#define _MALI_API_VERSION" $(FILES_PREFIX)include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
|
||||
+VERSION_STRINGS += API_VERSION=$(shell cd $(DRIVER_DIR); grep "\#define _MALI_API_VERSION" $(PWD)/drivers/misc/mediatek/gpu/mt6580/mali/mali/include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
|
||||
VERSION_STRINGS += REPO_URL=$(REPO_URL)
|
||||
VERSION_STRINGS += REVISION=$(DRIVER_REV)
|
||||
VERSION_STRINGS += CHANGED_REVISION=$(CHANGED_REVISION)
|
||||
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/linux3.0-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/linux3.4-fix-piggy.gzip.S.patch
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
Author: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
||||
Date: Wed Nov 27 01:21:35 2019 +0100
|
||||
|
||||
applied patch to use gnu89 standard explicitly.
|
||||
I needed to do so manually because the makefile is changed by downstream.
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 917f5c50..68453b1a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -241,7 +241,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTCXX = g++
|
||||
-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
|
||||
+HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
|
||||
HOSTCXXFLAGS = -O2
|
||||
|
||||
# Decide whether to build built-in, modular, or both.
|
||||
@@ -374,7 +374,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
||||
-Werror-implicit-function-declaration \
|
||||
-Wno-format-security \
|
||||
-fno-delete-null-pointer-checks \
|
||||
- -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
|
||||
+ -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \
|
||||
+ -std=gnu89
|
||||
|
||||
KBUILD_AFLAGS_KERNEL :=
|
||||
KBUILD_CFLAGS_KERNEL :=
|
||||
Loading…
Add table
Add a link
Reference in a new issue