Commit dbf4978e authored by Philippe Reynes's avatar Philippe Reynes Committed by Peter Korsgaard
Browse files

Allow to run severals post build scripts instead of only one



Using severals post build scripts is usefull to share
script between severals boards/projects.

[Peter: fix trailing spaces in Config.in]
Signed-off-by: default avatarPhilippe Reynes <philippe.reynes@sagemcom.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 27abfbb4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -470,8 +470,9 @@ endif
	) >  $(TARGET_DIR)/etc/os-release

ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
	@$(call MESSAGE,"Executing post-build script")
	$(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
	@$(call MESSAGE,"Executing post-build script\(s\)")
	@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \
		$(s) $(TARGET_DIR)$(sep))
endif

ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
+6 −5
Original line number Diff line number Diff line
@@ -170,15 +170,16 @@ config BR2_ROOTFS_POST_BUILD_SCRIPT
	string "Custom script to run before creating filesystem images"
	default ""
	help
	  Specify a script to be run after the build has finished and before
	  Buildroot starts packing the files into selected filesystem images.
	  Specify a space-separated list of scripts to be run after the build
	  has finished and before Buildroot starts packing the files into
	  selected filesystem images.

	  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.
	  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.

endmenu