build/debian: Enable DRM in our custom kernel
The `cloud` flavor, on which our `avf` flavor is based,
disables several kernel configs.
In particular, it disabled the DRM which is necessary
for rendering the VM's display.
In this CL, we:
1. reorganize the "patches" and "configs" under kernel/
2. enable `CONFIG_DRM` for our `avf` flavor
Bug: 396003095
Test: ./build_in_container.sh -a aarch64 -k
Test: deployed on Komodo, and run `enable_display && weston-terminal`
Change-Id: Ied14f655e1d9016d987cf3b6334ba2c3befd547b
diff --git a/build/debian/build.sh b/build/debian/build.sh
index 6facfcf..616dd00 100755
--- a/build/debian/build.sh
+++ b/build/debian/build.sh
@@ -269,7 +269,7 @@
--extract "${dsc_file}"
pushd "linux-${debian_kver%-*}" > /dev/null
- local kpatches_src="$SCRIPT_DIR/kernel_patches"
+ local kpatches_src="$SCRIPT_DIR/kernel/patches"
cp -r "${kpatches_src}/avf" debian/patches/
cat "${kpatches_src}/series" >> debian/patches/series
./debian/rules orig
@@ -282,9 +282,8 @@
# 2. Define our custom flavour and regenerate control file
# NOTE: Our flavour extends Debian's `cloud` config on the `none` featureset.
- cat > debian/config/${debian_arch}/config.${debarch_flavour} <<EOF
-# TODO: Add our custom kernel config to this file
-EOF
+ cp "$SCRIPT_DIR/kernel/config" \
+ debian/config/${debian_arch}/config.${debarch_flavour}
sed -z "s;\[base\]\nflavours:;[base]\nflavours:\n ${debarch_flavour};" \
-i debian/config/${debian_arch}/none/defines