2018-05-28 21:44:56 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/tegra_defconfig
|
2018-03-05 20:55:05 +00:00
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-p4wifi
|
2019-03-04 16:52:47 +00:00
|
|
|
pkgver=5.0
|
2020-07-12 14:21:38 +00:00
|
|
|
pkgrel=2
|
2018-03-05 20:55:05 +00:00
|
|
|
pkgdesc="Galaxy Tab 10.1 kernel"
|
2019-03-04 16:52:47 +00:00
|
|
|
arch="armv7"
|
2018-03-05 20:55:05 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-p4wifi"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2018-12-22 19:03:50 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev xz flex bison openssl-dev"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
2018-03-05 20:55:05 +00:00
|
|
|
# Source
|
|
|
|
_repository="linux"
|
2019-03-04 16:52:47 +00:00
|
|
|
_rev="8de8fd48d3a4765b7cef982e550cc06b806d5977"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-03-05 20:55:05 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_rev.tar.gz::https://github.com/decatf/$_repository/archive/$_rev.tar.gz
|
2018-03-05 20:55:05 +00:00
|
|
|
$_config
|
2020-11-04 12:48:12 +00:00
|
|
|
linux4.17-gcc10-extern_YYLOC_global_declaration.patch
|
2018-03-05 20:55:05 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_rev"
|
2018-03-05 20:55:05 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-11-29 20:13:56 +00:00
|
|
|
default_prepare
|
2018-04-03 23:29:11 +00:00
|
|
|
|
|
|
|
mkdir -p "$srcdir"/build
|
|
|
|
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
2020-02-28 09:22:58 +00:00
|
|
|
make -C "$builddir" O="$srcdir"/build ARCH="$_carch" \
|
2018-04-03 23:29:11 +00:00
|
|
|
olddefconfig
|
2018-03-05 20:55:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-04-03 23:29:11 +00:00
|
|
|
cd "$srcdir"/build
|
2018-03-05 20:55:05 +00:00
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-02-28 09:59:56 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
2018-04-03 23:29:11 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic
|
2018-03-05 20:55:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-28 09:59:56 +00:00
|
|
|
cd "$srcdir/build/arch/$_carch/boot"
|
2018-03-05 20:55:05 +00:00
|
|
|
|
2018-04-03 23:29:11 +00:00
|
|
|
if [ "$CARCH" == "aarch64" ]; then
|
2020-02-28 09:59:56 +00:00
|
|
|
install -Dm644 "$srcdir/build/arch/$_carch/boot/Image" \
|
2018-04-03 23:29:11 +00:00
|
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
else
|
2020-02-28 09:59:56 +00:00
|
|
|
install -Dm644 "$srcdir/build/arch/$_carch/boot/"*zImage \
|
2018-04-03 23:29:11 +00:00
|
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
2018-03-05 20:55:05 +00:00
|
|
|
fi
|
2018-03-13 19:39:07 +00:00
|
|
|
|
2018-04-03 23:29:11 +00:00
|
|
|
install -D "$srcdir/build/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
cd "$srcdir"/build
|
|
|
|
|
|
|
|
local _install
|
|
|
|
case "$CARCH" in
|
|
|
|
aarch64*|arm*) _install="modules_install dtbs_install" ;;
|
|
|
|
*) _install="modules_install" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
make -j1 $_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
2018-03-05 20:55:05 +00:00
|
|
|
}
|
|
|
|
|
2019-03-04 16:52:47 +00:00
|
|
|
sha512sums="2fdcb7ecefc09dfe763f58bae085740b0279ec255e082f663b49e5d324f5af83a5691d681204a0ff07d3e89d0666728007ce620aa921f79c43f5b3481756320b linux-samsung-p4wifi-8de8fd48d3a4765b7cef982e550cc06b806d5977.tar.gz
|
2020-11-04 12:48:12 +00:00
|
|
|
e648f295e554ecd360b8e4f60093482c807cedd3dcb5c6d05dd7efbc1fe3bc1de92d32bb913d7db1d66bd5efcf239a7dd465e302106bc9fd585c01faf7d7c124 config-samsung-p4wifi.armv7
|
|
|
|
27827877040007fc1c4c719f7e2e19e5c272d44972415cfc53feba0313d87e4074f8204bdb13cbc5fe21ea61bf595314b68f10c081e7b7bac3c888b60f008acf linux4.17-gcc10-extern_YYLOC_global_declaration.patch"
|