From patchwork Fri Jul 31 08:23:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?No=C3=A9=20Rubinstein?= X-Patchwork-Id: 502422 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 42232140328 for ; Fri, 31 Jul 2015 18:23:35 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=CfDIxiWl; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E1DB733B86; Fri, 31 Jul 2015 08:23:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VmXlwo33fR-r; Fri, 31 Jul 2015 08:23:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1C5FF33B62; Fri, 31 Jul 2015 08:23:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C4BB01C1FE0 for ; Fri, 31 Jul 2015 08:23:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BCC9E921DC for ; Fri, 31 Jul 2015 08:23:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IkVMgoEfYKKa for ; Fri, 31 Jul 2015 08:23:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 65FC7921BC for ; Fri, 31 Jul 2015 08:23:30 +0000 (UTC) Received: by wibud3 with SMTP id ud3so48891857wib.1 for ; Fri, 31 Jul 2015 01:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=DVuFuFNk2+ptp98aNR9pdJIMLP4mMOEWQnkrK3ldzwg=; b=CfDIxiWlJezx9o26nrWbhm895MF96FTJA2b9vlbAZLOaGNxMtXmzehBJuch6Ya6IGN 2c+DbblRzD1W6ROfkVYqgUukMnJ2zH4Z+HnurgbKPQrqpGqnump38q/Z2m4eDiV1GKwf WoEloU49yg7nG+VZGTUiRvNBqjTb7dxK6qXXie540jaFpWlddKP7/fGVKKWTODQG4eP/ 1s8hRbuSeSOqSfi4V/sJHwKSGa6m0nueqgVi8XOOh2e1yEopnhCXJP7LOKlisMAOMJ80 sRhzUvKXgk28MkVdcZ/pep/L41690TB29KsHfGuH6uIzjT3Edy37HcEtpcCdMfbMBInQ xBIg== X-Received: by 10.194.172.130 with SMTP id bc2mr3633357wjc.85.1438331008785; Fri, 31 Jul 2015 01:23:28 -0700 (PDT) Received: from nrubinstein-de.aldebaran.lan ([195.190.86.18]) by smtp.gmail.com with ESMTPSA id r19sm3257037wib.7.2015.07.31.01.23.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Jul 2015 01:23:27 -0700 (PDT) From: "=?UTF-8?q?No=C3=A9=20Rubinstein?=" X-Google-Original-From: =?UTF-8?q?No=C3=A9=20Rubinstein?= To: buildroot@busybox.net Date: Fri, 31 Jul 2015 10:23:20 +0200 Message-Id: <1438331000-26534-1-git-send-email-nrubinstein@aldebaran.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH] fs/common: add _POST_GEN_HOOKS support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas Petazzoni The common filesystem infrastructure already supports a _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 _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 Signed-off-by: NoƩ Rubinstein Acked-by: "Yann E. MORIN" --- 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)