From patchwork Sun Nov 12 17:45:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 837226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LvVSR39S"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yZh5v4q1Gz9sRq for ; Mon, 13 Nov 2017 04:46:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3982E87FA0; Sun, 12 Nov 2017 17:46:25 +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 Xq2JXUDiqcWG; Sun, 12 Nov 2017 17:46:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B58D28846D; Sun, 12 Nov 2017 17:46:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A81CB1C3EFF for ; Sun, 12 Nov 2017 17:46:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A37C08770A for ; Sun, 12 Nov 2017 17:46:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S9XSVGnuopAa for ; Sun, 12 Nov 2017 17:46:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 07F12876D6 for ; Sun, 12 Nov 2017 17:46:08 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id z3so11037346wme.5 for ; Sun, 12 Nov 2017 09:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=fTdf/l1+jBePcXlkDjQrR7MZ8beslYW8Rz7lEt7q/T4=; b=LvVSR39SH+SJcaJSnImGyFCaeFkMUnD9nrLQrEppWFFfZSc75AiLLWglAyufyUrSlh BOQtr/aaRIBsY1djHpJC/dEzEZ0ilrYhByxg01dvNor6A91HkK8BsrkGdPkr+6y3TkI4 Hr+sJx3aQzUXewSJBo0kE9qDUlTYoS1ovbTpndOMy/jD4ECp+d8CEZDn42Qt/25GVdvy XCPGxiCvzKBF4B0J/eV8YD7E9rkw2797naqZ6nC9+CQdRgfxR6IDVv9CudmrMo+FUmWt YW1ohD8JPOra9PVAweckCdQbpP1zmdhVfHB2Y1gMpBCf5HfXoJXjAPZTE4MWd4otNpJg E1tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=fTdf/l1+jBePcXlkDjQrR7MZ8beslYW8Rz7lEt7q/T4=; b=V1vCKxYob33Ixs0e8y1R+Lc+VCG3XqjrpPbIortn6ouvQgyH7o1FPXuNDt5MKsfwGe puaqsN0edJp1QgMLXz/nHJDLonvgL49DZ7huZflWjVq62Ef5t/o/1HPTxfjO/ad0u6O6 DeB4bbBN1rZiFeQhv3QINvcfc7NNnSFlH6li3pEyJ+40t2JQUpbau2V44dtTmKdP/a+E YabLSKQwpwDBYO/cM4Ocb8n5p3BbRxaJRJdN4t+sK20vDyN+m34P3d0YlJWtt3shZwp/ M4+WhHN47qsrFbo9FKypCa1Hf/WmsYhfEjRGJtbAXHQUm6WnB8UKJdZ1/imR0s3OpDLz SraA== X-Gm-Message-State: AJaThX61IsSceHL3E1Xz0omKCAuXktehsJuxPpGMSpkuJsUcDFY+7ejn SRW/LYXb8L/yR2xINbzRYs2k5A== X-Google-Smtp-Source: AGs4zMamkhrDXpf7a5aC9i7yS7f3uiwITAGSr70PiNNNChr7Fe6l5cEmMXrzl4vtQg8OWoBp0i2Hmw== X-Received: by 10.28.96.130 with SMTP id u124mr4575522wmb.121.1510508766291; Sun, 12 Nov 2017 09:46:06 -0800 (PST) Received: from localhost.localdomain (2a01cb0886107300fc501d253e69f7ad.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:fc50:1d25:3e69:f7ad]) by smtp.gmail.com with ESMTPSA id b15sm14334449wrh.35.2017.11.12.09.46.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Nov 2017 09:46:05 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 12 Nov 2017 18:45:46 +0100 Message-Id: <37cdd5eac486a60b2657a8a0e53fcf6bedac976e.1510508733.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [Buildroot] [PATCH 08/14] fs: remove TARGET_DIR_WARNING_FILE late X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Remove it just before generating the filesystem image. This way, removing-and-recreating the file encloses the actual image generation as tightly as possible. Signed-off-by: "Yann E. MORIN" --- fs/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/common.mk b/fs/common.mk index 378907e9ed..d4d5c183a5 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -70,7 +70,6 @@ $$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES) @$$(call MESSAGE,"Generating root filesystem image rootfs.$(1)") $$(foreach hook,$$(ROOTFS_$(2)_PRE_GEN_HOOKS),$$(call $$(hook))$$(sep)) rm -f $$(FAKEROOT_SCRIPT) - rm -f $$(TARGET_DIR_WARNING_FILE) rm -f $$(USERS_TABLE) echo '#!/bin/sh' > $$(FAKEROOT_SCRIPT) echo "set -e" >> $$(FAKEROOT_SCRIPT) @@ -100,6 +99,7 @@ endif $$(foreach hook,$$(ROOTFS_POST_CMD_HOOKS),\ $$(call PRINTF,$$($$(hook))) >> $$(FAKEROOT_SCRIPT)$$(sep)) chmod a+x $$(FAKEROOT_SCRIPT) + rm -f $$(TARGET_DIR_WARNING_FILE) PATH=$$(BR_PATH) $$(HOST_DIR)/bin/fakeroot -- $$(FAKEROOT_SCRIPT) $$(INSTALL) -m 0644 support/misc/target-dir-warning.txt $$(TARGET_DIR_WARNING_FILE) -@rm -f $$(FAKEROOT_SCRIPT) $$(FULL_DEVICE_TABLE)