Skip to content

chore(build-linux-deb): small drive-by changes to kernel build script - #610

Draft
Christopher Obbard (obbardc) wants to merge 5 commits into
qualcomm-linux:mainfrom
obbardc:wip/obbardc/nitpicks-kernel-build-script
Draft

Christopher Obbard (obbardc) wants to merge 5 commits into
qualcomm-linux:mainfrom
obbardc:wip/obbardc/nitpicks-kernel-build-script

Conversation

@obbardc

Copy link
Copy Markdown
Contributor

Some small changes while using the scripts/build-linux-deb.py:

  • document that config fragments are merged into defconfig from the kernel source.
  • improve how the config fragments path is generated
  • add an option --skip-build (useful for inspecting final generated config without building)
  • add dwarves dependency check
  • honour --local-dir everywhere if set

The merge_config.sh and olddefconfig invocations hardcoded cwd="linux",
so a tree passed via --local-dir was configured in the wrong directory
(or failed outright when ./linux does not exist). Pass linux_dir to
every subprocess and hoist its default out of the else branch so the
variable is defined on both paths.

Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
CONFIG_DEBUG_INFO_BTF needs pahole from the dwarves package; without it
the build fails late, after the kernel has already been compiled. Check
for it up-front along with the other build-dependencies.

Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Allow stopping after the source tree has been fetched and configured,
which is useful when iterating on config fragments or when the build
itself is driven separately.

Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Build the kernel/configs path once and reuse it for both the copy
destination and the merge_config.sh target, instead of repeating the
literal. The log now reports the path relative to the source tree,
which is what gets passed to merge_config.sh.

Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Spell out that FRAGMENT is merged with the defconfig, and drop the
stray blank line so the add_argument() calls are formatted alike.

Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Test Results

  7 files  ±0   21 suites  ±0   14m 22s ⏱️ ±0s
 21 tests ±0   21 ✅ ±0  0 💤 ±0  0 ❌ ±0 
184 runs  ±0  184 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 339b439. ± Comparison against base commit 1e8566f.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

@lool

Copy link
Copy Markdown
Contributor

ah I also did your first commit #539

meh

@obbardc
Christopher Obbard (obbardc) marked this pull request as draft September 16, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants