build/patch/kernel/meson64-dev/kernel-odroidn2-current.patch
Igor Pečovnik 99a0630f47
Enable Meson64 DEV branch / kernel 5.4.y, tested for building (#1634)
* [AR-81] Enable Meson64 DEV branch / kernel 5.4.y, tested for building
* Adjust configs
2019-11-26 21:58:00 +01:00

16 lines
579 B
Diff

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 3b80bd3f6..79bb8de6d 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -285,6 +285,11 @@ if [ "$ARCH" != "um" ]; then
create_package "$dtb_packagename" "$dtb_dir"
fi
+sed -e "s/exit 0//g" -i $tmpdir/DEBIAN/postinst
+cat >> $tmpdir/DEBIAN/postinst <<EOT
+mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n "Linux" -d /$installed_image_path /boot/uImage > /dev/null 2>&1
+exit 0
+EOT
create_package "$packagename" "$tmpdir"
if [ -n "$BUILD_DEBUG" ] ; then