2019-01-03 11:14:16 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/carbon_huawei_cmr_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-huawei-cameron
|
2019-01-03 11:14:16 +00:00
|
|
|
pkgver=4.4.23
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=4
|
2019-01-03 11:14:16 +00:00
|
|
|
pkgdesc="Huawei Mediapad M5 Pro kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="huawei-cameron"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-05-02 00:25:16 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev python3 dtc"
|
2019-01-03 11:14:16 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_huawei_hi3660"
|
|
|
|
_commit="18cd8140ad09379365bcd9cb50e45662e8747834"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-01-03 11:14:16 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/JohnBergago/$_repository/archive/$_commit.tar.gz
|
2019-01-03 11:14:16 +00:00
|
|
|
$_config
|
|
|
|
01_use_linux_alpine_crosscompile.patch
|
|
|
|
03_add_compression_methods_to_Kconfig.patch
|
|
|
|
04_make_rdr_hisi_adapter_compileable.patch
|
|
|
|
05-disable-huawei-bfmr.patch
|
2020-05-02 00:25:16 +00:00
|
|
|
06-py3-compat.patch
|
2020-11-04 12:48:12 +00:00
|
|
|
linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
2019-01-03 11:14:16 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2020-05-02 00:25:16 +00:00
|
|
|
_outdir="out"
|
2019-01-03 11:14:16 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-01-03 11:14:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-05-02 00:25:16 +00:00
|
|
|
mkdir -p "$_outdir"
|
|
|
|
cp "$srcdir/$_config" "$_outdir/.config"
|
|
|
|
rm -f "$builddir/.config"
|
|
|
|
make ARCH="$_carch" O="$_outdir" oldconfig
|
2019-01-03 11:14:16 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-05-02 00:25:16 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" O="$_outdir"
|
2019-01-03 11:14:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-05-02 00:25:16 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2019-01-03 11:14:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="1da7c7666f1bf8e3fd3931331b1ebf0ab9520fce47d44749c30abcef55856deaced0ffc74c025b323cc83eb36eb7cf9c514bc65eedbead5d40efd3e16ddc0486 linux-huawei-cameron-18cd8140ad09379365bcd9cb50e45662e8747834.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
8b7c46d0c9e288f18d298da6e90677c0c260427e7cf0fd2960d244c0f4b5b01494f4559070ea49bc184386d0ddd682d1763b985eed00d442fc1c2cf7f3f9eec7 config-huawei-cameron.aarch64
|
2019-01-03 11:14:16 +00:00
|
|
|
5473a038ca5703cf4119957ca3af66972c121aa66fe262a3165e5a0e5714037670a96600eedd0488150ff754ead93f43299587554ca6c05022bb55f780d1cd7a 01_use_linux_alpine_crosscompile.patch
|
|
|
|
86afc1337a34524c49e9beaad6506f7038a7413340abc473f8d209a4d3cd6ebbcf8315ae41902427edf97064742c02e2e5bb705a8bcd36d1cae19f76a509e235 03_add_compression_methods_to_Kconfig.patch
|
|
|
|
cdc60b6c829df3b014226b9cb506ed71cf005cf5fec8d4339b54a23f052465501aaa4983ec00f33ef301db2e6a70b24a30439b3f6ce8f7c00348c05d3132ec3f 04_make_rdr_hisi_adapter_compileable.patch
|
2020-05-02 00:25:16 +00:00
|
|
|
6e420722576111a7ba49f265a66de632631c13d1bdb67553916d2156149226526daedc8298d83a38115c0a7189497cdb92b0daa0a263a92e6093f575e855a6e5 05-disable-huawei-bfmr.patch
|
2020-11-04 12:48:12 +00:00
|
|
|
e783a5a775797efd229b049dba9a4eacd74b6dd7de2f37dfc0f9ead7c2ca3e617c162d8b28cec2d68fe5c51bff67a7045441b36b055582f07ff531f1dc445809 06-py3-compat.patch
|
|
|
|
eaf2e61fcb508cdd239b8fed209d2a09ecac77287f6b46d003918fdf1c6fa2ee63f7390f3ff7c49029b8ed6cbcdd81c7e9a4b1ece9f5060b6fc84e322bd47f41 linux4.2-gcc10-extern_YYLOC_global_declaration.patch"
|