summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-07-10 00:00:31 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2013-07-10 08:52:21 +0200
commitf1f97b3a0587df7a44249ccf3e47c6d0d3087fa0 (patch)
treeb41c703a1d62d56111d11704e4a836e4e958a960 /system
parent575dac6922e9a20153a4f3526929618271b226c8 (diff)
downloadbuildroot-novena-f1f97b3a0587df7a44249ccf3e47c6d0d3087fa0.tar.gz
buildroot-novena-f1f97b3a0587df7a44249ccf3e47c6d0d3087fa0.zip
system: add option to pass extra args to post-build and post-image scripts
It can be useful to have different configuration use the same post-build and/or post-image scripts as they share a common infrastructure, but yet have minor differentiation. This option allows passing zero or more additional arguments to each post-build or post-image script. The same set of extra arguments are passed to all scripts, it is not possible to pass different arguments to each script. [Peter: fix help text, post-image gets called with the images dir] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'system')
-rw-r--r--system/Config.in26
1 files changed, 21 insertions, 5 deletions
diff --git a/system/Config.in b/system/Config.in
index c0e4f4a82..d41f18475 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -272,9 +272,9 @@ config BR2_ROOTFS_POST_BUILD_SCRIPT
add-ons and the like, so the generated files can be used directly
without further processing.
- These scripts are called with the target directory name as first and
- only argument. Make sure the exit code of those scripts are 0,
- otherwise make will stop after calling them.
+ These scripts are called with the target directory name as first
+ argument. Make sure the exit code of those scripts are 0, otherwise
+ make will stop after calling them.
config BR2_ROOTFS_POST_IMAGE_SCRIPT
string "Custom scripts to run after creating filesystem images"
@@ -291,7 +291,23 @@ config BR2_ROOTFS_POST_IMAGE_SCRIPT
action.
These scripts are called with the images directory name as
- first and only argument. The script is executed from the
- main Buildroot source directory as the current directory.
+ first argument. The script is executed from the main Buildroot
+ source directory as the current directory.
+
+config BR2_ROOTFS_POST_SCRIPT_ARGS
+ string "Extra post-{build,image} arguments"
+ depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
+ help
+ Pass these aditional arguments to each post-build or 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 arguments to
+ each script.
+
+ Note also, as stated in their respective help text, that the first
+ argument to each post-build or post-image script is the target
+ directory / images directory. The arguments in this option will be
+ passed *after* those.
endmenu