xiaomi-tissot-downstream: remove (MR 5106)
No longer builds, can't be bothered to investigate why as the error is unusual and I don't understand it. See issue linked below for more detailed information. Clsoes https://gitlab.com/postmarketOS/pmaports/-/issues/2798 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
9d356be7bb
commit
ee41607a00
14 changed files with 0 additions and 5663 deletions
|
@ -1,32 +0,0 @@
|
|||
# Unmaintained: Downstream port, only for testing. Use mainline port (xiaomi-tissot)!
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-tissot-downstream
|
||||
pkgdesc="Xiaomi Mi A1"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-xiaomi-tissot-downstream mkbootimg msm-fb-refresher"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Firmware for xiaomi-tissot"
|
||||
depends="linux-firmware-qcom firmware-xiaomi-tissot"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e4d20e1dfbafcbc0faf8e4456124f2d152b206685430a61ddbcbf61cbc668a30bd9db3f7a18eb62777c08c575d5b91a34e765ba70d3468267d5d090008885199 deviceinfo
|
||||
"
|
|
@ -1,30 +0,0 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Xiaomi Mi A1"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-tissot-downstream"
|
||||
deviceinfo_year="2017"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="1920"
|
||||
deviceinfo_dev_touchscreen="/dev/input/event1"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive buildvariant=eng"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
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"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_sparse="true"
|
|
@ -1,71 +0,0 @@
|
|||
From 3edce56c8a8c58bfd21c99bdef0cf410a07497d9 Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:06 +0200
|
||||
Subject: [PATCH 1/8] use relative includes for btfs_slim
|
||||
|
||||
---
|
||||
drivers/bluetooth/btfm_slim.c | 4 ++--
|
||||
drivers/bluetooth/btfm_slim_codec.c | 2 +-
|
||||
drivers/bluetooth/btfm_slim_wcn3990.c | 4 ++--
|
||||
drivers/bluetooth/btfm_slim_wcn3990.h | 2 +-
|
||||
4 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/drivers/bluetooth/btfm_slim.c b/drivers/bluetooth/btfm_slim.c
|
||||
index 92ea0135..baab63ae 100644
|
||||
--- a/drivers/bluetooth/btfm_slim.c
|
||||
+++ b/drivers/bluetooth/btfm_slim.c
|
||||
@@ -23,8 +23,8 @@
|
||||
#include <sound/soc.h>
|
||||
#include <sound/soc-dapm.h>
|
||||
#include <sound/tlv.h>
|
||||
-#include <btfm_slim.h>
|
||||
-#include <btfm_slim_wcn3990.h>
|
||||
+#include "btfm_slim.h"
|
||||
+#include "btfm_slim_wcn3990.h"
|
||||
#include <linux/bluetooth-power.h>
|
||||
|
||||
int btfm_slim_write(struct btfmslim *btfmslim,
|
||||
diff --git a/drivers/bluetooth/btfm_slim_codec.c b/drivers/bluetooth/btfm_slim_codec.c
|
||||
index 4c6986a5..35c1c74f 100644
|
||||
--- a/drivers/bluetooth/btfm_slim_codec.c
|
||||
+++ b/drivers/bluetooth/btfm_slim_codec.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sound/soc.h>
|
||||
#include <sound/soc-dapm.h>
|
||||
#include <sound/tlv.h>
|
||||
-#include <btfm_slim.h>
|
||||
+#include "btfm_slim.h"
|
||||
|
||||
static int bt_soc_enable_status;
|
||||
int btfm_feedback_ch_setting;
|
||||
diff --git a/drivers/bluetooth/btfm_slim_wcn3990.c b/drivers/bluetooth/btfm_slim_wcn3990.c
|
||||
index 66151893..511c0b64 100644
|
||||
--- a/drivers/bluetooth/btfm_slim_wcn3990.c
|
||||
+++ b/drivers/bluetooth/btfm_slim_wcn3990.c
|
||||
@@ -10,8 +10,8 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
#include <linux/slimbus/slimbus.h>
|
||||
-#include <btfm_slim.h>
|
||||
-#include <btfm_slim_wcn3990.h>
|
||||
+#include "btfm_slim.h"
|
||||
+#include "btfm_slim_wcn3990.h"
|
||||
|
||||
/* WCN3990 Port assignment */
|
||||
struct btfmslim_ch wcn3990_rxport[] = {
|
||||
diff --git a/drivers/bluetooth/btfm_slim_wcn3990.h b/drivers/bluetooth/btfm_slim_wcn3990.h
|
||||
index b2723ff9..f2660071 100644
|
||||
--- a/drivers/bluetooth/btfm_slim_wcn3990.h
|
||||
+++ b/drivers/bluetooth/btfm_slim_wcn3990.h
|
||||
@@ -12,7 +12,7 @@
|
||||
#ifndef BTFM_SLIM_WCN3990_H
|
||||
#define BTFM_SLIM_WCN3990_H
|
||||
//#ifdef CONFIG_BTFM_SLIM_WCN3990
|
||||
-#include <btfm_slim.h>
|
||||
+#include "btfm_slim.h"
|
||||
|
||||
/* Registers Address */
|
||||
#define CHRK_SB_COMP_TEST 0x00000000
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From 38e5f48ffaee072167cb4a9b058d4ae9b4fdbf87 Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:13 +0200
|
||||
Subject: [PATCH 2/8] use relative include for including msm_camera
|
||||
|
||||
---
|
||||
drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c b/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c
|
||||
index 1d743091..fc5d2300 100644
|
||||
--- a/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c
|
||||
+++ b/drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <linux/sizes.h>
|
||||
#include <soc/qcom/scm.h>
|
||||
#include <soc/qcom/secure_buffer.h>
|
||||
-#include <msm_camera_tz_util.h>
|
||||
+#include "msm_camera_tz_util.h"
|
||||
#include "cam_smmu_api.h"
|
||||
|
||||
#define SCRATCH_ALLOC_START SZ_128K
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From 72a5f6b588fabed3aba18608fe72e484ea8abedb Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:16 +0200
|
||||
Subject: [PATCH 3/8] use relative include for u_ncm
|
||||
|
||||
---
|
||||
drivers/usb/gadget/configfs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
|
||||
index 14c18f3a..b7ecaeb5 100644
|
||||
--- a/drivers/usb/gadget/configfs.c
|
||||
+++ b/drivers/usb/gadget/configfs.c
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <linux/usb/ch9.h>
|
||||
|
||||
#ifdef CONFIG_USB_F_NCM
|
||||
-#include <function/u_ncm.h>
|
||||
+#include "function/u_ncm.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USB_CONFIGFS_F_ACC
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From bff024edca5024d3bb713e996d52c8078188f1c1 Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:17 +0200
|
||||
Subject: [PATCH 4/8] use relative include for kgsl_device
|
||||
|
||||
---
|
||||
drivers/gpu/msm/kgsl_events.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/gpu/msm/kgsl_events.c b/drivers/gpu/msm/kgsl_events.c
|
||||
index 759a9660..2effdc34 100644
|
||||
--- a/drivers/gpu/msm/kgsl_events.c
|
||||
+++ b/drivers/gpu/msm/kgsl_events.c
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <linux/list.h>
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/debugfs.h>
|
||||
-#include <kgsl_device.h>
|
||||
+#include "kgsl_device.h"
|
||||
|
||||
#include "kgsl_debugfs.h"
|
||||
#include "kgsl_trace.h"
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
From 5034f2bef0d102015c1596047b01bb44bdbfe61e Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:19 +0200
|
||||
Subject: [PATCH 5/8] narrow down include path for msm_isp
|
||||
|
||||
---
|
||||
include/trace/events/msm_cam.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/trace/events/msm_cam.h b/include/trace/events/msm_cam.h
|
||||
index 3fc1a299..bff8aab0 100644
|
||||
--- a/include/trace/events/msm_cam.h
|
||||
+++ b/include/trace/events/msm_cam.h
|
||||
@@ -16,7 +16,7 @@
|
||||
#if !defined(_TRACE_MSM_VFE_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_MSM_VFE_H
|
||||
|
||||
-#include "msm_isp.h"
|
||||
+#include "../../../drivers/media/platform/msm/camera_v2/isp/msm_isp.h"
|
||||
#include <linux/types.h>
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
From 6b232f491ec4fea1ab8fada665177dc027e1ab13 Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:21 +0200
|
||||
Subject: [PATCH 6/8] narrow down include path for msm_camera
|
||||
|
||||
---
|
||||
drivers/media/platform/msm/camera_v2/sensor/msm_sensor.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.h b/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.h
|
||||
index 753e85a3..5d10b8b0 100644
|
||||
--- a/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.h
|
||||
+++ b/drivers/media/platform/msm/camera_v2/sensor/msm_sensor.h
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <media/msm_cam_sensor.h>
|
||||
#include <media/v4l2-subdev.h>
|
||||
#include <media/v4l2-ioctl.h>
|
||||
-#include "msm_camera_i2c.h"
|
||||
-#include "msm_camera_dt_util.h"
|
||||
+#include "io/msm_camera_i2c.h"
|
||||
+#include "io/msm_camera_dt_util.h"
|
||||
#include "msm_sd.h"
|
||||
|
||||
#define DEFINE_MSM_MUTEX(mutexname) \
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
From 26877eb5a3d90fee5171024370a93135a062dda5 Mon Sep 17 00:00:00 2001
|
||||
From: Wiktor Tkaczynski <wiktor.tkaczynski@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 18:05:23 +0200
|
||||
Subject: [PATCH 7/8] narrow down trace include paths
|
||||
|
||||
---
|
||||
drivers/gpu/msm/adreno_trace.h | 2 +-
|
||||
drivers/gpu/msm/kgsl_trace.h | 2 +-
|
||||
drivers/platform/msm/ipa/ipa_clients/rndis_ipa_trace.h | 2 +-
|
||||
drivers/platform/msm/ipa/ipa_v2/ipa_trace.h | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpu/msm/adreno_trace.h b/drivers/gpu/msm/adreno_trace.h
|
||||
index de028fad..7774ca9e 100644
|
||||
--- a/drivers/gpu/msm/adreno_trace.h
|
||||
+++ b/drivers/gpu/msm/adreno_trace.h
|
||||
@@ -17,7 +17,7 @@
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM kgsl
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
-#define TRACE_INCLUDE_PATH .
|
||||
+#define TRACE_INCLUDE_PATH ../../drivers/gpu/msm
|
||||
#undef TRACE_INCLUDE_FILE
|
||||
#define TRACE_INCLUDE_FILE adreno_trace
|
||||
|
||||
diff --git a/drivers/gpu/msm/kgsl_trace.h b/drivers/gpu/msm/kgsl_trace.h
|
||||
index c7690a14..919fd045 100644
|
||||
--- a/drivers/gpu/msm/kgsl_trace.h
|
||||
+++ b/drivers/gpu/msm/kgsl_trace.h
|
||||
@@ -17,7 +17,7 @@
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM kgsl
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
-#define TRACE_INCLUDE_PATH .
|
||||
+#define TRACE_INCLUDE_PATH ../../drivers/gpu/msm
|
||||
#undef TRACE_INCLUDE_FILE
|
||||
#define TRACE_INCLUDE_FILE kgsl_trace
|
||||
|
||||
diff --git a/drivers/platform/msm/ipa/ipa_clients/rndis_ipa_trace.h b/drivers/platform/msm/ipa/ipa_clients/rndis_ipa_trace.h
|
||||
index bf66c1e2..3719740b 100644
|
||||
--- a/drivers/platform/msm/ipa/ipa_clients/rndis_ipa_trace.h
|
||||
+++ b/drivers/platform/msm/ipa/ipa_clients/rndis_ipa_trace.h
|
||||
@@ -77,5 +77,5 @@ TRACE_EVENT(
|
||||
|
||||
/* This part must be outside protection */
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
-#define TRACE_INCLUDE_PATH .
|
||||
+#define TRACE_INCLUDE_PATH ../../drivers/platform/msm/ipa/ipa_clients
|
||||
#include <trace/define_trace.h>
|
||||
diff --git a/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h b/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
|
||||
index a03a49a3..ab32a1cc 100644
|
||||
--- a/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
|
||||
+++ b/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
|
||||
@@ -148,5 +148,5 @@ TRACE_EVENT(
|
||||
|
||||
/* This part must be outside protection */
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
-#define TRACE_INCLUDE_PATH .
|
||||
+#define TRACE_INCLUDE_PATH ../../drivers/platform/msm/ipa/ipa_v2
|
||||
#include <trace/define_trace.h>
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
From b91a8942f1d391fcc050188d2334b288f1e7b642 Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Min <alexey.min@gmail.com>
|
||||
Date: Wed, 11 Sep 2019 21:51:40 +0300
|
||||
Subject: [PATCH 8/8] Add config option to fix bootloader cmdline args
|
||||
|
||||
Android bootloader passes some arguments in kernel command
|
||||
line, that make booting custom OSes harder:
|
||||
|
||||
* skip_initramfs
|
||||
* root=PARTUUID=...
|
||||
* init=/init
|
||||
|
||||
Those parameters override default boot partition to hardcoded,
|
||||
set init binary to /init, disable booting from initramfs.
|
||||
|
||||
If enabled, those parameters will be erased from bootloader's
|
||||
command line, and custom OS can boot the way it likes.
|
||||
|
||||
Signed-off-by: Alexey Min <alexey.min@gmail.com>
|
||||
---
|
||||
arch/arm64/Kconfig | 17 +++++++++++++++++
|
||||
drivers/of/fdt.c | 14 ++++++++++++++
|
||||
2 files changed, 31 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
|
||||
index 29035f3a..87d86b98 100644
|
||||
--- a/arch/arm64/Kconfig
|
||||
+++ b/arch/arm64/Kconfig
|
||||
@@ -1134,6 +1134,23 @@ config CMDLINE_FORCE
|
||||
command-line options your boot loader passes to the kernel.
|
||||
endchoice
|
||||
|
||||
+config CMDLINE_DROP_DANGEROUS_ANDROID_OPTIONS
|
||||
+ bool "Drop certain dangerous options from cmdline"
|
||||
+ default n
|
||||
+ help
|
||||
+ Android bootloader passes some arguments in kernel command
|
||||
+ line, that make booting custom OSes harder:
|
||||
+
|
||||
+ * skip_initramfs
|
||||
+ * root=PARTUUID=...
|
||||
+ * init=/init
|
||||
+
|
||||
+ Those parameters override default boot partition to hardcoded,
|
||||
+ set init binary to /init, disable booting from initramfs.
|
||||
+
|
||||
+ If enabled, those parameters will be erased from bootloader's
|
||||
+ command line, and custom OS can boot the way it likes.
|
||||
+
|
||||
config EFI_STUB
|
||||
bool
|
||||
|
||||
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
|
||||
index 744f6250..f5d720c3 100644
|
||||
--- a/drivers/of/fdt.c
|
||||
+++ b/drivers/of/fdt.c
|
||||
@@ -1128,6 +1128,20 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
|
||||
|
||||
pr_debug("Command line is: %s\n", (char*)data);
|
||||
|
||||
+#ifdef CONFIG_CMDLINE_DROP_DANGEROUS_ANDROID_OPTIONS
|
||||
+ pr_err("Replacing dangerous cmdline options...");
|
||||
+ cmdline = strstr((const char *)data, "skip_initramfs");
|
||||
+ if (cmdline)
|
||||
+ *cmdline = '_';
|
||||
+ cmdline = strstr((const char *)data, "root=");
|
||||
+ if (cmdline)
|
||||
+ *cmdline = '_';
|
||||
+ cmdline = strstr((const char *)data, "init=");
|
||||
+ if (cmdline)
|
||||
+ *cmdline = '_';
|
||||
+ pr_err("Command line now is: %s\n", (char*)data);
|
||||
+#endif
|
||||
+
|
||||
/* break now */
|
||||
return 1;
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
# Unmaintained: Downstream port, only for testing. Use mainline port (xiaomi-tissot)!
|
||||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/tissot_defconfig
|
||||
|
||||
pkgname=linux-xiaomi-tissot-downstream
|
||||
pkgver=4.9.188
|
||||
pkgrel=0
|
||||
pkgdesc="Xiaomi A1 kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="xiaomi-tissot"
|
||||
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 openssl-dev"
|
||||
|
||||
# Source
|
||||
_repository="android_kernel_xiaomi_msm8953"
|
||||
_commit="b9d144f1c1eb3b959f3cc1c1d8eef87b4383a238"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
0001-use-relative-includes-for-btfs_slim.patch
|
||||
0002-use-relative-include-for-including-msm_camera.patch
|
||||
0003-use-relative-include-for-u_ncm.patch
|
||||
0004-use-relative-include-for-kgsl_device.patch
|
||||
0005-narrow-down-include-path-for-msm_isp.patch
|
||||
0006-narrow-down-include-path-for-msm_camera.patch
|
||||
0007-narrow-down-trace-include-paths.patch
|
||||
0008-Add-config-option-to-fix-bootloader-cmdline-args.patch
|
||||
fix-xorg-mdss-update-fb-info.patch
|
||||
linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
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="
|
||||
4d1b8b87369af2eac7f0856f07514d1b3f7caab4234da21fc49d2b3c8d1677e758586933a114f34ec31a8d46d0dbef225bc3d140c5996464f4ea5ffab8c8454b linux-xiaomi-tissot-downstream-b9d144f1c1eb3b959f3cc1c1d8eef87b4383a238.tar.gz
|
||||
134c3a05af45d67bb4b97105b91f9d8d864c2bf09e204391c509949e4df088ca8a308dd48a452c278d9071f35374ac31e1a9f1d0ab4954765862daccff860a57 config-xiaomi-tissot.aarch64
|
||||
8a17e5b943383f87f26fd548087c6a38886f768f207825b30cab193ed7af6b32abb12775964669d5a143f43dc772dc4265f5de3c3c7f6ec0296b18d2c68e0344 0001-use-relative-includes-for-btfs_slim.patch
|
||||
3645cc9e4c14442409e842de7f508352a8549a1189fa36931d8835b998b1a6fa1e8b7ddf20cad5597713639a6b708e1318dcadf3d8e07c67d6b3b2f3f412c33d 0002-use-relative-include-for-including-msm_camera.patch
|
||||
fdf3b03b706234d1b71f5031f6c857e2773bb0b08157945f17d9724303f0878173d994bea610869d7c814706927c24502017ecfeefe02bd9e0e24595ecec1c79 0003-use-relative-include-for-u_ncm.patch
|
||||
c9f5e6de01ce31bdf0c599a5a8569d901d35d767c3965183f706670cc5c4823cf60af90ea9867e3a632f73a26c774c4a50b84b1e2d5bc0c21d0fece4292fb194 0004-use-relative-include-for-kgsl_device.patch
|
||||
d2da0e6d6945e7396d2cb7e30e64806be2473f0fb67e0117a0b9dc5204a105873828bd8d0c6cfbec26881deb31184db3f42d19e8700ac9226822fcf6d2eec6e3 0005-narrow-down-include-path-for-msm_isp.patch
|
||||
34d588925668b730aad131ec6b899d0f06538fffeb4a913ed0d1765e2caea417a8711a98c4a06bb100e98c0dd3ab43b762dc3a36a288b664af337ff1803eeeb6 0006-narrow-down-include-path-for-msm_camera.patch
|
||||
0ee10f54d0a66d4ee4b32599847e977262a3d906093efd34216b91aa12b9f7b46bcd28fffa8b054931eb77c82496d474eee9c5d28c59fc33f8903e6c536189e2 0007-narrow-down-trace-include-paths.patch
|
||||
cf5c7f3df4bb62617f0d6e3ece29fe2f316fd8d6d38ca352706cb207947ded2bfe7a6b65f9480843204610d6dffe52e6b11df24d3d0cae7812de56bc41081b20 0008-Add-config-option-to-fix-bootloader-cmdline-args.patch
|
||||
4f73a06557207733707ca08c9991e04734e56386f3ce8e9cc5b640f4b47e1ae607ae3ea14a7003cb98a04f9df943e22c1baf316d520724237533c2c337cc56f2 fix-xorg-mdss-update-fb-info.patch
|
||||
eaf2e61fcb508cdd239b8fed209d2a09ecac77287f6b46d003918fdf1c6fa2ee63f7390f3ff7c49029b8ed6cbcdd81c7e9a4b1ece9f5060b6fc84e322bd47f41 linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
||||
"
|
File diff suppressed because it is too large
Load diff
|
@ -1,118 +0,0 @@
|
|||
From d47aab08a1bdb726976bd657411fcae58c40d038 Mon Sep 17 00:00:00 2001
|
||||
From: Ion Agorria <ion@agorria.com>
|
||||
Date: Thu, 24 Jan 2019 18:52:58 +0100
|
||||
Subject: [PATCH] mdss: update fb mode at mdss_panelinfo_to_fb_var to fix Xorg
|
||||
|
||||
When mdss_panelinfo_to_fb_var is called at
|
||||
screen unblank it updates the values in fb_info->var,
|
||||
meanwhile the fb_info->mode and modelist remain with old
|
||||
values set at registering the fb causing mismatch when
|
||||
Xorg attempts to set mode.
|
||||
---
|
||||
drivers/video/fbdev/msm/mdss_fb.c | 25 ++++++++++++++++------
|
||||
drivers/video/fbdev/msm/mdss_fb.h | 3 +--
|
||||
drivers/video/fbdev/msm/mdss_mdp_overlay.c | 2 +-
|
||||
3 files changed, 20 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
|
||||
index dcb068813e88..c64ff1cd75c7 100644
|
||||
--- a/drivers/video/fbdev/msm/mdss_fb.c
|
||||
+++ b/drivers/video/fbdev/msm/mdss_fb.c
|
||||
@@ -1923,7 +1923,7 @@ static void mdss_panel_validate_debugfs_info(struct msm_fb_data_type *mfd)
|
||||
if (is_panel_split(mfd) && pdata->next)
|
||||
mdss_fb_validate_split(pdata->panel_info.xres,
|
||||
pdata->next->panel_info.xres, mfd);
|
||||
- mdss_panelinfo_to_fb_var(panel_info, var);
|
||||
+ mdss_panelinfo_to_fb_var(mfd);
|
||||
if (mdss_fb_send_panel_event(mfd, MDSS_EVENT_CHECK_PARAMS,
|
||||
panel_info))
|
||||
pr_err("Failed to send panel event CHECK_PARAMS\n");
|
||||
@@ -2053,7 +2053,7 @@ static int mdss_fb_blank_unblank(struct msm_fb_data_type *mfd)
|
||||
* programmed in the controller.
|
||||
* Update this info in the upstream structs.
|
||||
*/
|
||||
- mdss_panelinfo_to_fb_var(panel_info, var);
|
||||
+ mdss_panelinfo_to_fb_var(mfd);
|
||||
|
||||
/* Start the work thread to signal idle time */
|
||||
if (mfd->idle_time)
|
||||
@@ -2787,7 +2787,7 @@ static int mdss_fb_register(struct msm_fb_data_type *mfd)
|
||||
return ret;
|
||||
}
|
||||
|
||||
- mdss_panelinfo_to_fb_var(panel_info, var);
|
||||
+ mdss_panelinfo_to_fb_var(mfd);
|
||||
|
||||
fix->type = panel_info->is_3d_panel;
|
||||
if (mfd->mdp.fb_stride)
|
||||
@@ -3512,7 +3512,7 @@ static void mdss_fb_update_resolution(struct msm_fb_data_type *mfd,
|
||||
}
|
||||
var->xres_virtual = var->xres;
|
||||
var->yres_virtual = pinfo->yres * mfd->fb_page;
|
||||
- mdss_panelinfo_to_fb_var(pinfo, var);
|
||||
+ mdss_panelinfo_to_fb_var(mfd);
|
||||
}
|
||||
|
||||
int mdss_fb_atomic_commit(struct fb_info *info,
|
||||
@@ -3743,9 +3743,14 @@ static void mdss_fb_var_to_panelinfo(struct fb_var_screeninfo *var,
|
||||
pinfo->mipi.dsi_pclk_rate = pinfo->clk_rate;
|
||||
}
|
||||
|
||||
-void mdss_panelinfo_to_fb_var(struct mdss_panel_info *pinfo,
|
||||
- struct fb_var_screeninfo *var)
|
||||
+void mdss_panelinfo_to_fb_var(struct msm_fb_data_type *mfd)
|
||||
{
|
||||
+ if (!mfd)
|
||||
+ return -EINVAL;
|
||||
+
|
||||
+ struct mdss_panel_info *pinfo = mfd->panel_info;
|
||||
+ struct fb_info *fbi = mfd->fbi;
|
||||
+ struct fb_var_screeninfo *var = &fbi->var;
|
||||
u32 frame_rate;
|
||||
|
||||
var->xres = mdss_fb_get_panel_xres(pinfo);
|
||||
@@ -3780,7 +3785,13 @@ void mdss_panelinfo_to_fb_var(struct mdss_panel_info *pinfo,
|
||||
if (pinfo->physical_height)
|
||||
var->height = pinfo->physical_height;
|
||||
|
||||
- pr_debug("ScreenInfo: res=%dx%d [%d, %d] [%d, %d]\n",
|
||||
+ //Hack to update current fbi->mode according to fbi->var when var is updated from panel info
|
||||
+ if (fbi->mode) {
|
||||
+ printk("Updating mdss fb mode from fb var\n");
|
||||
+ fb_var_to_videomode(fbi->mode, var);
|
||||
+ }
|
||||
+
|
||||
+ printk("ScreenInfo: res=%dx%d [%d, %d] [%d, %d]\n",
|
||||
var->xres, var->yres, var->left_margin,
|
||||
var->right_margin, var->upper_margin,
|
||||
var->lower_margin);
|
||||
diff --git a/drivers/video/fbdev/msm/mdss_fb.h b/drivers/video/fbdev/msm/mdss_fb.h
|
||||
index b068d96044d0..1a55482d99ce 100644
|
||||
--- a/drivers/video/fbdev/msm/mdss_fb.h
|
||||
+++ b/drivers/video/fbdev/msm/mdss_fb.h
|
||||
@@ -479,8 +479,7 @@ int mdss_fb_async_position_update(struct fb_info *info,
|
||||
|
||||
u32 mdss_fb_get_mode_switch(struct msm_fb_data_type *mfd);
|
||||
void mdss_fb_report_panel_dead(struct msm_fb_data_type *mfd);
|
||||
-void mdss_panelinfo_to_fb_var(struct mdss_panel_info *pinfo,
|
||||
- struct fb_var_screeninfo *var);
|
||||
+void mdss_panelinfo_to_fb_var(struct msm_fb_data_type *mfd);
|
||||
void mdss_fb_calc_fps(struct msm_fb_data_type *mfd);
|
||||
void mdss_fb_idle_pc(struct msm_fb_data_type *mfd);
|
||||
#endif /* MDSS_FB_H */
|
||||
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
|
||||
index 7c8a273ce538..606200e5f2a9 100644
|
||||
--- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c
|
||||
+++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
|
||||
@@ -3846,7 +3846,7 @@ int mdss_mdp_dfps_update_params(struct msm_fb_data_type *mfd,
|
||||
* data, so any further call to get the screen
|
||||
* info has the updated timings.
|
||||
*/
|
||||
- mdss_panelinfo_to_fb_var(&pdata->panel_info, var);
|
||||
+ mdss_panelinfo_to_fb_var(mfd);
|
||||
|
||||
MDSS_XLOG(dfps);
|
||||
mutex_unlock(&mdp5_data->dfps_lock);
|
||||
--
|
||||
2.28.0
|
||||
|
|
@ -1 +0,0 @@
|
|||
../../.shared-patches/linux/linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
Loading…
Reference in a new issue