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
|
|
|
|
|
|
|
pkgname="linux-samsung-p4wifi"
|
2018-11-29 20:13:56 +00:00
|
|
|
pkgver=4.19.0
|
2018-12-22 19:03:50 +00:00
|
|
|
pkgrel=1
|
2018-03-05 20:55:05 +00:00
|
|
|
pkgdesc="Galaxy Tab 10.1 kernel"
|
|
|
|
arch="armhf"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-p4wifi"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
|
|
|
options="!strip !check !tracedeps"
|
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
|
|
|
|
|
|
|
# Compiler: latest GCC from Alpine
|
2018-03-05 20:55:05 +00:00
|
|
|
HOSTCC="${CC:-gcc}"
|
|
|
|
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="linux"
|
2018-11-29 20:13:56 +00:00
|
|
|
_rev="50d736b2875a8e777d2328ecffddf36f169d858a"
|
2018-03-05 20:55:05 +00:00
|
|
|
_config="config-${_flavor}.${arch}"
|
|
|
|
source="
|
|
|
|
$pkgname-$_rev.tar.gz::https://github.com/decatf/${_repository}/archive/${_rev}.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/${_repository}-${_rev}"
|
|
|
|
|
|
|
|
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
|
|
|
|
make -C "$builddir" O="$srcdir"/build ARCH="$_carch" HOSTCC="$HOSTCC" \
|
|
|
|
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}" \
|
2018-04-03 23:29:11 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-${_flavor}" \
|
|
|
|
CFLAGS_MODULE=-fno-pic
|
2018-03-05 20:55:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-04-03 23:29:11 +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
|
|
|
|
install -Dm644 "$srcdir/build/arch/${_carch}/boot/Image" \
|
|
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
else
|
|
|
|
install -Dm644 "$srcdir/build/arch/${_carch}/boot/"*zImage \
|
|
|
|
"$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
|
|
|
}
|
|
|
|
|
2018-04-03 23:29:11 +00:00
|
|
|
|
2018-11-29 20:13:56 +00:00
|
|
|
sha512sums="cf0d8ac1d2d57ecc8f2f866c43cf07cdb1e6d200e25a08c366b695734a50aeae1bc60e4f41340c4b9f1681ee901955ddee9443700df0e11f1c0cc4864007178a linux-samsung-p4wifi-50d736b2875a8e777d2328ecffddf36f169d858a.tar.gz
|
|
|
|
a347502fa0fb42b423e9f569cae18e118007478d962f423d12e491b6cfe6d5b6ac7cc9eec430f65658d55c15be47e8f91f88704f73210f859708c5d146d14b35 config-samsung-p4wifi.armhf"
|