From 4e6fd3a507f4305a24fd5406cc99f40da13ef7e5 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 17 Mar 2023 00:07:54 -0300 Subject: [PATCH] warn about KERNEL_CONFIGURE=yes being deprecated during image build; instructions on how to do it properly --- lib/functions/main/default-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/functions/main/default-build.sh b/lib/functions/main/default-build.sh index e29dfaa0b6..d874d752eb 100644 --- a/lib/functions/main/default-build.sh +++ b/lib/functions/main/default-build.sh @@ -11,6 +11,11 @@ function full_build_packages_rootfs_and_image() { error_if_kernel_only_set + # Detour, warn the user about KERNEL_CONFIGURE=yes if it is set. + if [[ "${KERNEL_CONFIGURE}" == "yes" ]]; then + display_alert "KERNEL_CONFIGURE=yes during image build is deprecated." "It still works, but please prefer the new way. First, run './compile.sh BOARD=${BOARD} BRANCH=${BRANCH} kernel-config'; then commit your changes; then build the image as normal. This workflow ensures consistent hashing results." "wrn" + fi + main_default_build_packages # has its own logging sections # requires aggregation # build rootfs and image