devicepkg-dev: implement out-of-tree build for kernel (!1084)

This commit is contained in:
Dolphin von Chips
2020-04-05 12:30:39 +02:00
committed by Oliver Smith
parent 8af4d8c27a
commit a4b1fb8371
3 changed files with 24 additions and 23 deletions
@@ -5,22 +5,23 @@ builddir=$1
pkgdir=$2
_carch=$3
_flavor=$4
_outdir=$5
if [ -z "$builddir" ] || [ -z "$pkgdir" ] || [ -z "$_carch" ] ||
[ -z "$_flavor" ]; then
echo "ERROR: missing argument!"
echo "Please call downstreamkernel_package() with \$builddir, \$pkgdir,"
echo "\$_carch and \$_flavor as arguments."
echo "\$_carch, \$_flavor (and optionally \$_outdir) as arguments."
exit 1
fi
# kernel.release
install -D "$builddir/include/config/kernel.release" \
install -D "$builddir/$_outdir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
# zImage (find the right one)
# shellcheck disable=SC2164
cd "$builddir/arch/$_carch/boot"
cd "$builddir/$_outdir/arch/$_carch/boot"
_target="$pkgdir/boot/vmlinuz-$_flavor"
if [ -n "$KERNEL_IMAGE_NAME" ]; then