diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-07-08 22:46:58 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-07-25 23:15:18 +0200 |
commit | eed7d8737adf9669e1bcd032409595bfe7c3b119 (patch) | |
tree | d13130451b6fd7adf6000f7683f3fac62d37a716 /target | |
parent | 0cb591eb55a5071cd4db8c899e2d0edff7cbc110 (diff) |
Add support for custom post-build script
The config help text says it all:
Specify a script to be run after the build has finished and before
the BR2 starts packing the files into selected packages.
This gives users the oportunity to do board-specific cleanups,
add-ons and the like, so the generated files can be used directly
without further processing.
The script is called with the target directory name as first and
only argument. Make sure the exit code of that script is 0,
otherwise make will stop after calling it.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'target')
-rw-r--r-- | target/Config.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/Config.in b/target/Config.in index a25581baa..ab46dcb16 100644 --- a/target/Config.in +++ b/target/Config.in @@ -12,6 +12,21 @@ config BR2_ROOTFS_SUFFIX help Add a custom string to the end of the root file system name. +config BR2_ROOTFS_POST_BUILD_SCRIPT + string "Custom script to run before packing files" + default "" + help + Specify a script to be run after the build has finished and before + the BR2 starts packing the files into selected packages. + + This gives users the oportunity to do board-specific cleanups, + add-ons and the like, so the generated files can be used directly + without further processing. + + The script is called with the target directory name as first and + only argument. Make sure the exit code of that script is 0, + otherwise make will stop after calling it. + comment "filesystem for target device" source "target/cramfs/Config.in" |