55 lines
2 KiB
Text
55 lines
2 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm/configs/GT-I8160_defconfig
|
|
|
|
pkgname=linux-samsung-codina
|
|
pkgver=3.0.101
|
|
pkgrel=0
|
|
pkgdesc="Samsung Galaxy Ace 2 kernel"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-codina"
|
|
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 gcc4"
|
|
|
|
# Source
|
|
_repository="Samsung_STE_Kernel"
|
|
_commit="ada5cb730330749534576adcaad0df8ac9062e5a"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/TeamCanjica/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
00_fix_return_address.patch
|
|
01_reduce_lzo_compression.patch
|
|
02_fix_fb_rgb_mode.patch
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
_outdir="out"
|
|
|
|
if [ "${CC:0:5}" != "gcc4-" ]; then
|
|
CC="gcc4-$CC"
|
|
HOSTCC="gcc4-gcc"
|
|
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
|
|
fi
|
|
|
|
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="b436eeab728ba4ab3f536b89c7e3e7ac282836030daf8c37116df3ebb76b114f1111ec6392f8389e0729439ded09c04a4416491cc04b6a56d903b52e84aebb88 linux-samsung-codina-ada5cb730330749534576adcaad0df8ac9062e5a.tar.gz
|
|
0381c058e4c607dd6e969bb76f7ab150765c1d418f7933f4d1ff9abaa50fc9b658e5abdd33f41820c4c0f1ca129f5125b1b95d26f74bd6624dd6e911c7427709 config-samsung-codina.armv7
|
|
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
|
|
30ac7171fe2a5aa90c15e56465b35bfc84015079296df2ebbb4287a2848ac5e8cf8e0dbb00dfdf84acb6692587eefdfc338e65ef3170a1a3e5b279b317ba43f3 01_reduce_lzo_compression.patch
|
|
3a78bb5e250637a1c9dbba1b31a539f98d89c1ccaab54f100ca3c39345c99aa2243f700f38c06f71164a898914a2bf8c2de1ccee187922b062056c6a5ad3acbb 02_fix_fb_rgb_mode.patch"
|