mobile: build-kernel.sh: olddefconfig alone, before the build
`make -j olddefconfig Image modules <dtb>` runs olddefconfig in parallel
with the compiles. When the config had changed, include/generated/* was
regenerated while sources were being compiled: the build died with an
empty LINUX_VERSION_CODE and an empty KERNEL_REL in unrelated drivers
fs/pstore/ram.c:809: error: expected expression before ','
drivers/usb/core/hcd.c:191: note: in expansion of macro 'KERNEL_REL'
(build/logs/update-root-2026-11-09.log). Two builds had passed before, so
it is a race, not a wrong config. Now olddefconfig runs first and alone;
the next build of the same tree exits 0
(build/logs/kernel-retry-2026-11-09.log).
This commit is contained in:
1 parent
544ad0b4a8
commit
0a9f83bd32
3 files changed
+10
-1
No files matched your search
@@ -0,0 +1,3 @@
|
||||
[submodule "refs/openbsd/src"]
|
||||
path = refs/openbsd/src
|
||||
url = https://github.com/openbsd/src.git
|
||||
@@ -16,7 +16,12 @@ load_device "$1"
|
||||
tree=$2
|
||||
|
||||
cmp -s "$KERNEL_CONFIG" "$tree/.config" || cp "$KERNEL_CONFIG" "$tree/.config"
|
||||
# olddefconfig FIRST and alone: in one -j invocation with the build targets it
|
||||
# runs in parallel with them, and a config change then regenerates
|
||||
# include/generated/* while sources compile -- the build failed with an empty
|
||||
# LINUX_VERSION_CODE and an empty KERNEL_REL (2026-11-09)
|
||||
make -C "$tree" ARCH="$ARCH" CROSS_COMPILE="$CROSS_COMPILE" olddefconfig
|
||||
make -C "$tree" ARCH="$ARCH" CROSS_COMPILE="$CROSS_COMPILE" \
|
||||
-j"$(nproc)" olddefconfig "$(basename "$KERNEL_IMAGE")" modules \
|
||||
-j"$(nproc)" "$(basename "$KERNEL_IMAGE")" modules \
|
||||
${KERNEL_DTB:+"$KERNEL_DTB"}
|
||||
echo "$tree/$KERNEL_IMAGE"
|
||||
Submodule
+1
Submodule refs/openbsd/src added at 6689907bdb.
Reference in new issue
Block a user