Skip to content

Commit fe0769a

Browse files
author
Prakash Surya
authored
CP-6002 minimize Linux kernel build to only include necessary kernel modules (#247)
1 parent d5891f2 commit fe0769a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

default-package-config.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ function kernel_build() {
155155
local build_deps_tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes"
156156
logmust sudo mk-build-deps --install debian/control --tool "${build_deps_tool}"
157157

158+
#
159+
# Here we update the configs used to control the kernel's build
160+
# system. This is useful as it allows us to override various
161+
# kernel config options via an OVERRIDES file, which we use to
162+
# disable varous kernel modules that we don't need or want.
163+
#
164+
logmust fakeroot debian/rules updateconfigs "${debian_rules_args[@]}"
165+
158166
logmust fakeroot debian/rules "binary" "${debian_rules_args[@]}"
159167

160168
logmust cd "$WORKDIR"

0 commit comments

Comments
 (0)