-#!/bin/bash -exu
+#!/bin/bash
#
-# Copyright (C) 2016-2019 - Michael Jeanson <mjeanson@efficios.com>
+# Copyright (C) 2016-2019 Michael Jeanson <mjeanson@efficios.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set -exu
+
# Parameters
arch=${arch:-}
cross_arch=${cross_arch:-}
# Disable riscv64 config generation, we don't have a toolchain on bionic
sed -i 's/riscv64 //' debian.master/etc/kernelconfig
+ # Hack for kernel Ubuntu-hwe-5.8
+ if [ ! -f "debian/compat" ]; then
+ echo "10" > "debian/compat"
+ fi
+
fakeroot debian/rules clean KW_DEFCONFIG_DIR=.
fakeroot debian/rules genconfigs KW_DEFCONFIG_DIR=.
cp CONFIGS/"${ubuntu_config}" .config