From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6B10A21939304 for ; Mon, 10 Apr 2017 23:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491893076; x=1523429076; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=xuVKF54HinLXE/StYVdstGJpCY/8f4KEoxG5bnvBA4w=; b=LurDfxfFf9jNdH3k0agNCP7zHus6XqlhTgnnGvQ0lmAO37a/0IjpE9co KC0XXPnBuMt1RP7nnRkCh6zrgUSAeg==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2017 23:44:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,184,1488873600"; d="scan'208";a="87604306" Received: from shwdeopenpsi168.ccr.corp.intel.com ([10.239.158.121]) by fmsmga006.fm.intel.com with ESMTP; 10 Apr 2017 23:44:35 -0700 From: Yonghong Zhu To: edk2-devel@lists.01.org Cc: Derek Lin Date: Tue, 11 Apr 2017 14:44:28 +0800 Message-Id: <1491893068-8560-2-git-send-email-yonghong.zhu@intel.com> X-Mailer: git-send-email 2.6.1.windows.1 In-Reply-To: <1491893068-8560-1-git-send-email-yonghong.zhu@intel.com> References: <1491893068-8560-1-git-send-email-yonghong.zhu@intel.com> Subject: [PATCH 2/2] BaseTools: Fix re-build issue after tools_def/build_rule updated. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 06:44:36 -0000 From: Derek Lin Add tools_def.txt and build_rule.txt to workspace autogen timestamp file. Now it will not skip autogen if this two file is updated. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Derek Lin Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 70c6c91186..3d3dfefdbc 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -64,6 +64,9 @@ gMakeTypeMap = {"MSFT":"nmake", "GCC":"gmake"} ## Build rule configuration file gDefaultBuildRuleFile = 'Conf/build_rule.txt' +## Tools definition configuration file +gDefaultToolsDefFile = 'Conf/tools_def.txt' + ## Build rule default version AutoGenReqBuildRuleVerNum = "0.1" @@ -721,6 +724,11 @@ class WorkspaceAutoGen(AutoGen): AllWorkSpaceMetaFiles.add(self.MetaFile.Path) # + # add build_rule.txt & tools_def.txt + # + AllWorkSpaceMetaFiles.add(gDefaultBuildRuleFile) + AllWorkSpaceMetaFiles.add(gDefaultToolsDefFile) + # add BuildOption metafile # AllWorkSpaceMetaFiles.add(os.path.join(self.BuildDir, 'BuildOptions')) -- 2.11.1.windows.1