Skip to content

Fix LINUX_OUT defaults to prevent parallel kernel cross-contamination (#79)#109

Closed
stuartmhannon wants to merge 1 commit into
flipperdevices:devfrom
stuartmhannon:fix/linux-out-defaults-parallel-safety
Closed

Fix LINUX_OUT defaults to prevent parallel kernel cross-contamination (#79)#109
stuartmhannon wants to merge 1 commit into
flipperdevices:devfrom
stuartmhannon:fix/linux-out-defaults-parallel-safety

Conversation

@stuartmhannon

Copy link
Copy Markdown

Summary

Both build-kernel-mainline.sh and build-kernel-bsp.sh defaulted to LINUX_OUT=prebuilt/linux. Running them in parallel (even with --no-kernel on one) corrupted each other's output since both wrote to the same directory. This is the audit remediation from ponytail audit item in task 158.

Changes

  1. build-kernel-mainline.sh — changed default LINUX_OUT from prebuilt/linux to prebuilt/linux-mainline
  2. build-kernel-bsp.sh — changed default LINUX_OUT from prebuilt/linux to prebuilt/linux-bsp
  3. README.md — replaced the warning against parallel runs with a note explaining they now use separate output directories

Testing

The scripts continue to use the same LINUX_OUT env var override mechanism, so existing CI and manual builds that set LINUX_OUT explicitly are unaffected. Only the fallback default changes.

Closes #79

Both build-kernel-mainline.sh and build-kernel-bsp.sh defaulted to
LINUX_OUT=prebuilt/linux. Running them in parallel (even with
--no-kernel on one) corrupted each other's output since both wrote
to the same directory.

Change the defaults to distinct paths:
  build-kernel-mainline.sh  → prebuilt/linux-mainline
  build-kernel-bsp.sh       → prebuilt/linux-bsp

Update README to reflect that parallel runs are now safe.

Closes flipperdevices#79.
@stuartmhannon
stuartmhannon requested a review from a team July 8, 2026 16:34
@alchark

alchark commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Duplicate of #110

@alchark alchark marked this as a duplicate of #110 Jul 8, 2026
@alchark alchark closed this Jul 8, 2026
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.

Parallel kernel builds corrupt each other's output

2 participants