Skip to content

Commit 6b45e66

Browse files
authored
Revert "Don't fail build if config doesn't exist"
1 parent 9618a4c commit 6b45e66

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

build-kernel.sh

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DEB_PATH="${SCRIPT_PATH}/debian/wlanpi-kernel"
1515

1616
# Set default values for configurations
1717
KERNEL_URL="https://github.com/raspberrypi/linux.git"
18-
KERNEL_BRANCH="rpi-6.7.y"
18+
KERNEL_BRANCH="rpi-6.9.y"
1919
KERNEL_ARCH="arm64"
2020
KERNEL_DEFCONFIG="bcm2711_defconfig"
2121
WLANPI_DEFCONFIG="wlanpi_v7l_defconfig"
@@ -292,27 +292,10 @@ generate_config()
292292
log "ok" "Customize defconfig"
293293
scripts/kconfig/merge_config.sh "${KERNEL_PATH}"/arch/"${ARCH}"/configs/{${KERNEL_DEFCONFIG},${WLANPI_DEFCONFIG}} | tee "${LOG_PATH}"/update-config.log 2>&1
294294

295-
requested_values=$(grep "Requested value:" "${LOG_PATH}"/update-config.log)
296-
actual_values=$(grep "Actual value:" "${LOG_PATH}"/update-config.log)
297-
298-
mapfile -t requested_array <<< "$requested_values"
299-
mapfile -t actual_array <<< "$actual_values"
300-
301-
for (( i=0; i < ${#requested_array[@]}; i++ )); do
302-
value_requested="$(sed 's/Requested value: //g' <<< "${requested_array[$i]}")"
303-
value_actual="$(sed 's/Actual value: //g' <<< "${actual_array[$i]}")"
304-
305-
is_request_disable="$( [ "${value_requested#*=}" == "n" ] || grep -q "is not set" <<< "$value_requested" && echo disable || echo enable )"
306-
is_actual_empty=$(awk '{$1=$1;print}' <<< "$value_actual" | wc -c)
307-
308-
if [ "$is_request_disable" == "disable" ] && [ $is_actual_empty -le 1 ]; then
309-
log "warn" "Following config requested to be disabled, but is not even present in this kernel."
310-
echo Config: "$value_requested"
311-
else
312-
log "error" "Error updating defconfig. One or more configs could not be configured. See above log to check which ones had conflicts."
313-
exit 1
314-
fi
315-
done;
295+
if grep -q "Actual value:" "${LOG_PATH}"/update-config.log; then
296+
log "error" "Error updating defconfig. See above log to check which configs had conflicts."
297+
exit 1
298+
fi
316299

317300
popd >/dev/null
318301
}

0 commit comments

Comments
 (0)