Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Noé Rubinstein" <noe.rubinstein@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fs/common: add <fs>_POST_GEN_HOOKS support
Date: Fri, 31 Jul 2015 10:23:20 +0200	[thread overview]
Message-ID: <1438331000-26534-1-git-send-email-nrubinstein@aldebaran.com> (raw)

From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

The common filesystem infrastructure already supports a
<fs>_PRE_GEN_HOOKS variable, which allows filesystem makefiles to
register some actions to be done before the root filesystem image is
generated.

This commit adds a similiar <fs>_POST_GEN_HOOKS variable, which will
allow filesystem makefiles to do some actions after the filesystem
image has been generated. It will initially be used by the iso9660
filesystem to delete the temporary directory it creates.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: No? Rubinstein <nrubinstein@aldebaran.com>
---
Re-sending this patch to fix hybrid ISO generation as added by patch 
5bac06e8810eb86e7bddc771fda68f0c59a3c3fa.

 fs/common.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/common.mk b/fs/common.mk
index ad1bcf3..528e194 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -16,6 +16,9 @@
 #  ROOTFS_$(FSTYPE)_PRE_GEN_HOOKS, a list of hooks to call before
 #  generating the filesystem image
 #
+#  ROOTFS_$(FSTYPE)_POST_GEN_HOOKS, a list of hooks to call after
+#  generating the filesystem image
+#
 #  ROOTFS_$(FSTYPE)_POST_TARGETS, the list of targets that should be
 #  run after running the main filesystem target. This is useful for
 #  initramfs, to rebuild the kernel once the initramfs is generated.
@@ -96,6 +99,7 @@ endif
 ifneq ($$(ROOTFS_$(2)_COMPRESS_CMD),)
 	PATH=$$(BR_PATH) $$(ROOTFS_$(2)_COMPRESS_CMD) $$@ > $$@$$(ROOTFS_$(2)_COMPRESS_EXT)
 endif
+	$$(foreach hook,$$(ROOTFS_$(2)_POST_GEN_HOOKS),$$(call $$(hook))$$(sep))
 
 rootfs-$(1)-show-depends:
 	@echo $$(ROOTFS_$(2)_DEPENDENCIES)
-- 
2.1.4

             reply	other threads:[~2015-07-31  8:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31  8:23 Noé Rubinstein [this message]
2015-08-06  7:10 ` [Buildroot] [PATCH] fs/common: add <fs>_POST_GEN_HOOKS support Thomas Petazzoni
2015-08-10 17:09   ` Yann E. MORIN
2015-08-10 17:11 ` Yann E. MORIN
2015-08-10 18:58 ` Thomas Petazzoni

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=1438331000-26534-1-git-send-email-nrubinstein@aldebaran.com \
    --to=noe.rubinstein@gmail.com \
    --cc=buildroot@busybox.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox