From: Etienne Phelip <etienne.phelip@savoirfairelinux.com> To: buildroot@busybox.net Subject: [Buildroot] [RFC 2/4] system: add option to pass genimage config files Date: Wed, 29 Mar 2017 10:51:18 -0400 [thread overview] Message-ID: <20170329145120.11863-3-etienne.phelip@savoirfairelinux.com> (raw) In-Reply-To: <20170329145120.11863-1-etienne.phelip@savoirfairelinux.com> Add a new Kconfig entry to allow users to provide a list of genimage config files. A new target is added to the Makefile in order to execute the support/scripts/genimage.sh script for each provided config files. The new target-genimage target depends on target-post-image, thus update the world target dependency. Signed-off-by: Etienne Phelip <etienne.phelip@savoirfairelinux.com> --- Makefile | 9 +++++++-- system/Config.in | 11 +++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cceae92..71c750c 100644 --- a/Makefile +++ b/Makefile @@ -546,11 +546,11 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BR2_CONFIG) prepare: $(BUILD_DIR)/buildroot-config/auto.conf -world: target-post-image +world: target-genimage .PHONY: all world toolchain dirs clean distclean source outputmakefile \ legal-info legal-info-prepare legal-info-clean printvars help \ - list-defconfigs target-finalize target-post-image source-check + list-defconfigs target-finalize target-post-image target-genimage source-check # Populating the staging with the base directories is handled by the skeleton package $(STAGING_DIR): @@ -719,6 +719,11 @@ target-post-image: $(TARGETS_ROOTFS) target-finalize $(call MESSAGE,"Executing post-image script $(s)"); \ $(EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) +target-genimage: target-post-image + @$(foreach c, $(call qstrip,$(BR2_GENIMAGE_CFG_FILES)), \ + $(call MESSAGE,"Executing genimage with config $(c)"); \ + $(EXTRA_ENV) ./support/scripts/genimage.sh -c $(c)$(sep)) + source: $(foreach p,$(PACKAGES),$(p)-all-source) _external-deps: $(foreach p,$(PACKAGES),$(p)-all-external-deps) diff --git a/system/Config.in b/system/Config.in index 3ddf843..d95ba43 100644 --- a/system/Config.in +++ b/system/Config.in @@ -564,4 +564,15 @@ config BR2_ROOTFS_POST_SCRIPT_ARGS directory / images directory. The arguments in this option will be passed *after* those. +config BR2_GENIMAGE_CFG_FILES + string "genimage config files passed to genimage" + depends on BR2_PACKAGE_HOST_GENIMAGE + default "" + help + Specify a space-separated list of genimage config files to used by + genimage after the post-image script has been executed. + + This can be used to generate multiple binary image for one or more + mediums (e.g. SD card and flash). + endmenu -- 2.9.3
next prev parent reply other threads:[~2017-03-29 14:51 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-03-29 14:51 [Buildroot] [RFC 0/4] add genimage Kconfig entry Etienne Phelip 2017-03-29 14:51 ` [Buildroot] [RFC 1/4] support/scripts: add generic genimage script Etienne Phelip 2017-03-30 22:51 ` Arnout Vandecappelle 2017-04-01 13:50 ` Thomas Petazzoni 2017-03-29 14:51 ` Etienne Phelip [this message] 2017-03-29 14:51 ` [Buildroot] [RFC 3/4] configs/raspberrypi3_defconfig: set BR2_GENIMAGE_CFG_FILES Etienne Phelip 2017-03-29 14:51 ` [Buildroot] [RFC 4/4] board/acmesystems/aria-g25: " Etienne Phelip 2017-03-30 22:51 ` Arnout Vandecappelle 2017-03-31 7:46 ` Andreas Naumann 2017-03-31 16:34 ` Arnout Vandecappelle 2017-04-03 13:01 ` Andreas Naumann 2017-04-03 13:54 ` Arnout Vandecappelle 2017-04-05 6:38 ` Andreas Naumann 2017-04-05 12:38 ` Arnout Vandecappelle 2017-04-01 13:51 ` Thomas Petazzoni 2017-04-03 9:06 ` Peter Korsgaard 2017-04-03 9:35 ` Arnout Vandecappelle 2017-04-04 21:34 ` Peter Korsgaard 2017-04-05 15:02 ` Arnout Vandecappelle 2017-04-05 16:14 ` Thomas Petazzoni 2017-04-10 13:44 ` Étienne Phélip 2017-04-10 15:06 ` Arnout Vandecappelle
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170329145120.11863-3-etienne.phelip@savoirfairelinux.com \ --to=etienne.phelip@savoirfairelinux.com \ --cc=buildroot@busybox.net \ --subject='Re: [Buildroot] [RFC 2/4] system: add option to pass genimage config files' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.