From a2ce536193d828f023b7315263143d2aa119a87d Mon Sep 17 00:00:00 2001 From: Heiko Thiery Date: Thu, 28 Mar 2024 21:32:31 +0100 Subject: [PATCH] system: expose BR2_ROOTFS_POST_SCRIPT_ARGS for PRE_BUILD scripts Currently, we pass BR2_ROOTFS_POST_SCRIPT_ARGS to each of the scripts in BR2_ROOTFS_PRE_BUILD_SCRIPT, but the option is not exposed in menuconfig when only pre-build scripts are used. Add the pre-build scripts to the condition exposing the extra args option. Signed-off-by: Heiko Thiery Signed-off-by: Yann E. MORIN (cherry picked from commit 96b3295ca1fc00973fa2754dafb80fe6db23f48f) Signed-off-by: Peter Korsgaard --- system/Config.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/Config.in b/system/Config.in index 33ca69b933..e590a8a3ff 100644 --- a/system/Config.in +++ b/system/Config.in @@ -695,12 +695,13 @@ config BR2_ROOTFS_POST_IMAGE_SCRIPT config BR2_ROOTFS_POST_SCRIPT_ARGS string "Extra arguments passed to custom scripts" - depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \ + depends on BR2_ROOTFS_PRE_BUILD_SCRIPT != "" \ + || BR2_ROOTFS_POST_BUILD_SCRIPT != "" \ || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \ || BR2_ROOTFS_POST_IMAGE_SCRIPT != "" help - Pass these additional arguments to each post-build or - post-image scripts. + Pass these additional arguments to each pre-build, post-build, + post-fakeroot and post-image scripts. Note that all the post-build and post-image scripts will be passed the same set of arguments, you can not pass different