2020-11-23 10:06:36 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-09-06 10:27:14 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/lineageos_bacon_defconfig
|
|
|
|
|
2020-11-23 10:06:36 +00:00
|
|
|
pkgname=linux-oneplus-bacon
|
2017-09-06 10:27:14 +00:00
|
|
|
pkgver=3.4.113
|
2021-04-29 11:38:24 +00:00
|
|
|
pkgrel=17
|
2020-11-23 10:06:36 +00:00
|
|
|
pkgdesc="OnePlus One kernel fork"
|
2020-01-17 04:35:12 +00:00
|
|
|
arch="armv7"
|
2017-09-06 10:27:14 +00:00
|
|
|
_carch="arm"
|
2020-11-23 10:06:36 +00:00
|
|
|
_flavor="oneplus-bacon"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
|
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl dtbtool xz gcc6"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
|
|
|
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
|
|
|
# request if you find out that it is booting working with newer GCCs as
|
|
|
|
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
2018-11-30 20:56:06 +00:00
|
|
|
HOSTCC="gcc6-gcc"
|
2018-10-01 06:44:18 +00:00
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
2017-09-06 10:27:14 +00:00
|
|
|
|
2020-11-23 10:06:36 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_oneplus_msm8974"
|
|
|
|
_commit="dd65620ba04a8c6ba0e30553c9c95388daefae02"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
02_gpu-msm-fix-gcc5-compile.patch
|
|
|
|
0001-fix-video-argb-setting.patch
|
|
|
|
mdss_fb_refresh_rate.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-09-06 10:27:14 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-23 10:06:36 +00:00
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
2017-09-06 10:27:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-23 10:06:36 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-09-06 10:27:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-23 10:06:36 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-09-06 10:27:14 +00:00
|
|
|
|
|
|
|
unset LDFLAGS
|
2020-11-23 10:06:36 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
2017-10-04 15:05:00 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install
|
2020-11-23 10:06:36 +00:00
|
|
|
|
|
|
|
# Master DTB (deviceinfo_bootimg_qcdt)
|
|
|
|
dtbTool -p scripts/dtc/ -o "$_outdir/arch/$_carch/boot"/dt.img "$_outdir/arch/$_carch/boot/"
|
|
|
|
install -Dm644 "$_outdir/arch/$_carch/boot"/dt.img "$pkgdir"/boot/dt.img
|
2017-09-06 10:27:14 +00:00
|
|
|
}
|
|
|
|
|
2017-09-15 15:31:17 +00:00
|
|
|
sha512sums="94d0048439e70b11637a7a122e8652d4e997ee413d6e54ea0aed7f2c68e137fcc19b6784dcc0dedf0b80240ba16060634b517d5865ec6c7222e4dea44d3c059a linux-oneplus-bacon-dd65620ba04a8c6ba0e30553c9c95388daefae02.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
a436a2568bb8704cdbbe81fad9e3419aa0b2d2408e93e101ec8eda0fa0b0c36b26f148a981c5911991c1c1b33ac3b5aebf87222fee56202aad414449debb307a config-oneplus-bacon.armv7
|
2020-11-23 10:06:36 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
2019-03-06 08:32:51 +00:00
|
|
|
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch
|
2019-03-27 21:38:10 +00:00
|
|
|
a48336bbfead6ad0c84d2fce0c40a3f5530aebdff356a6835cceaf59a50a6f860d2f8027703a92927955fbb18857ba78788e010d017bf67730f069b36e96fe87 0001-fix-video-argb-setting.patch
|
2020-11-23 10:06:36 +00:00
|
|
|
a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 mdss_fb_refresh_rate.patch"
|