Last active
February 27, 2020 16:00
-
-
Save z3ntu/cebe85fa15882e9b910e8638e4472688 to your computer and use it in GitHub Desktop.
downstreamkernel_package & downstreamkernel_prepare patches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-xiaomi-santoni/APKBUILD b/device/linux-xiaomi-santoni/APKBUILD | |
index 69dc4556..c9426910 100644 | |
--- a/device/linux-xiaomi-santoni/APKBUILD | |
+++ b/device/linux-xiaomi-santoni/APKBUILD | |
@@ -52,23 +52,7 @@ build() { | |
} | |
package() { | |
- # kernel.release | |
- install -D "$builddir/include/config/kernel.release" \ | |
- "$pkgdir/usr/share/kernel/$_flavor/kernel.release" | |
- | |
- # zImage (find the right one) | |
- cd "$builddir/arch/$_carch/boot" | |
- _target="$pkgdir/boot/vmlinuz-$_flavor" | |
- for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do | |
- [ -e "$_zimg" ] || continue | |
- msg "zImage found: $_zimg" | |
- install -Dm644 "$_zimg" "$_target" | |
- break | |
- done | |
- if ! [ -e "$_target" ]; then | |
- error "Could not find zImage in $PWD!" | |
- return 1 | |
- fi | |
+ downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" | |
} | |
sha512sums="d7a290e676aa40d35289cedbad5dd077accff4e1a2467223765a79f101ff4c1313315cbffd574ad74c648c4b8f5751d16a1fa1607c9939b373d3f2974a7b2326 linux-xiaomi-santoni-2dd8017f40290eb326e352cca254cd8bdd1614c9.tar.gz | |
-- | |
2.25.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-sony-seagull/APKBUILD b/device/linux-sony-seagull/APKBUILD | |
index d553827f..94faec66 100644 | |
--- a/device/linux-sony-seagull/APKBUILD | |
+++ b/device/linux-sony-seagull/APKBUILD | |
@@ -71,23 +71,7 @@ build() { | |
} | |
package() { | |
- # kernel.release | |
- install -D "$builddir/include/config/kernel.release" \ | |
- "$pkgdir/usr/share/kernel/$_flavor/kernel.release" | |
- | |
- # zImage (find the right one) | |
- cd "$builddir/arch/$_carch/boot" | |
- _target="$pkgdir/boot/vmlinuz-$_flavor" | |
- for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do | |
- [ -e "$_zimg" ] || continue | |
- msg "zImage found: $_zimg" | |
- install -Dm644 "$_zimg" "$_target" | |
- break | |
- done | |
- if ! [ -e "$_target" ]; then | |
- error "Could not find zImage in $PWD!" | |
- return 1 | |
- fi | |
+ downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" | |
# Master DTB (deviceinfo_bootimg_qcdt) | |
install -Dm644 "$builddir/arch/arm/boot/dt.img" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-amazon-thor/APKBUILD b/device/linux-amazon-thor/APKBUILD | |
index 76959c19c2..ceefeb3a91 100755 | |
--- a/device/linux-amazon-thor/APKBUILD | |
+++ b/device/linux-amazon-thor/APKBUILD | |
@@ -42,22 +42,7 @@ builddir="$srcdir/${_repository}-${_commit}" | |
prepare() { | |
default_prepare | |
- | |
- # gcc6 support | |
- cp -v "$srcdir/compiler-gcc6.h" "$builddir/include/linux/" | |
- | |
- # Remove -Werror from all makefiles | |
- local i | |
- local makefiles="$(find . -type f -name Makefile) | |
- $(find . -type f -name Kbuild)" | |
- for i in $makefiles; do | |
- sed -i 's/-Werror-/-W/g' "$i" | |
- sed -i 's/-Werror//g' "$i" | |
- done | |
- | |
- # Prepare kernel config ('yes ""' for kernels lacking olddefconfig) | |
- cp "$srcdir"/$_config "$builddir"/.config | |
- yes "" | make ARCH="$_carch" HOSTCC="$HOSTCC" oldconfig | |
+ downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC" | |
} | |
build() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-xiaomi-ido/APKBUILD b/device/linux-xiaomi-ido/APKBUILD | |
index 2863dfb91a..3317331cd8 100644 | |
--- a/device/linux-xiaomi-ido/APKBUILD | |
+++ b/device/linux-xiaomi-ido/APKBUILD | |
@@ -35,19 +35,7 @@ builddir="$srcdir/${_repository}-${_commit}" | |
prepare() { | |
default_prepare | |
- | |
- # gcc6 support | |
- cp -v "$srcdir/compiler-gcc6.h" "$builddir/include/linux/" | |
- | |
- # Remove -Werror from all makefiles | |
- find . -type f -name Makefile -print0 | \ | |
- xargs -0 sed -i 's/-Werror-/-W/g' | |
- find . -type f -name Makefile -print0 | \ | |
- xargs -0 sed -i 's/-Werror//g' | |
- | |
- # Prepare kernel config ('yes ""' for kernels lacking olddefconfig) | |
- cp "$srcdir"/$_config "$builddir"/.config | |
- yes "" | make ARCH="$_carch" HOSTCC="$HOSTCC" oldconfig | |
+ downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC" | |
} | |
build() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/device/linux-lg-dory/APKBUILD b/device/linux-lg-dory/APKBUILD | |
index c055377208..93fba0c32c 100644 | |
--- a/device/linux-lg-dory/APKBUILD | |
+++ b/device/linux-lg-dory/APKBUILD | |
@@ -57,12 +57,7 @@ builddir="$srcdir/kernel_msm-${_hash}" | |
prepare() { | |
default_prepare | |
- | |
- # gcc6 support | |
- cp -v "$srcdir/compiler-gcc6.h" "$builddir/include/linux/" | |
- | |
- cp "$srcdir"/$_config "$builddir"/.config | |
- make ARCH="$_carch" HOSTCC="$HOSTCC" silentoldconfig | |
+ downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC" | |
} | |
build() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment