From patchwork Thu Feb 1 11:15:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 126438 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1607287ljc; Thu, 1 Feb 2018 03:15:26 -0800 (PST) X-Google-Smtp-Source: AH8x2266OvwINonYqC7td577OszshArR68eJE1ttj2MwXmrH930oR6MfRQeD1gx2kqbeg5HJpn7l X-Received: by 10.98.155.157 with SMTP id e29mr36497414pfk.78.1517483726009; Thu, 01 Feb 2018 03:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517483726; cv=none; d=google.com; s=arc-20160816; b=INO2qdUN3AlOR3zHcipNSz8wknD4KrAfykIMarsseh2FdVCGFuJ0Ch3FhEsRD01OCd l/H2l4fqlWAp1DvkcPrb5G0RDhkNPFKbCFH3woatcCc3Igd3nG2x5zuioaEc5kWkpM7O BfDw5O8BYWYl29Vwoe2sN4sNxcz7aOPQOvD5UBv9tsZz3k+gxEtd6Ev0ixZgqhhet4vK JwGxYZAFjTq3Fshw4ndqrkHPVUwSo+SehmmDQn9mxQCd8/AQD8gwSN3WXc67z2Hhqyea sYRTSpqf9zuVb+zPftPK4NzuMyfQGVOgwE/PoNXMNEu/7zg9zHu2jXZh9byJPaWnhQmA sr+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=TzeFXNmUqnKCWPIKtd2+UmFHZz3S0xtk93Yb6HXo4Z8=; b=PyqZwNjuLt04npQP5+cXViMcQrH6XrSoMgx+7HmE9wAiRnRlaxNqAYlJkjYTyXtMmr YaHxzLsAvNBX9g0yEM/Y1llcMpplkgFwwH5g2P3ITEBNurdPeS4PLQ8KobZPGN0BzARp pJmZ6wNdeihPyummDmIzSxAY8hUCC+TpkXjVhMch1eYUtqZUpcYRqiMpJxY3m/WDYcWP pM34uvKP3Ihxg4Jo/ayW7mmIHcROWvLuSr09dA5Ie5rWJecqw1OOFIgYpGXDT2nxZGmH H8CLcLLa1tfawG3qIjHyudmm304NdOzLDcvb0XeFCWNp5ke46K9Gkc7DDLzDM4ED91Ie u8UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QF5LFuDb; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id n2si988298pgr.552.2018.02.01.03.15.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 03:15:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QF5LFuDb; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3919521E0BA00; Thu, 1 Feb 2018 03:09:48 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BD45121E0B9F4 for ; Thu, 1 Feb 2018 03:09:46 -0800 (PST) Received: by mail-wr0-x242.google.com with SMTP id 41so17099042wrc.9 for ; Thu, 01 Feb 2018 03:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gqjTY8AO1SzggQ66U4PF6mELBqdsdE+OJJSE/GzUqtI=; b=QF5LFuDbKdqqFNMcXE81mUTTwaaUww5H1zOhaVkHwSb917ENauh5VUMX/2fE+jYE0k AJW54te3UzybfHwMLzNiyHSe5ZDrsnNNlncZs78pUtrVaPIbBiPFsGu9CTJt/DXes6yR NR74oK4ypoMisbCWA1WKTzblz+W0yzsHtlckc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gqjTY8AO1SzggQ66U4PF6mELBqdsdE+OJJSE/GzUqtI=; b=itfx2ghUzHfToz4BHLF3gDZ6qhAMCgloQFBPk88t8WUpJ8WvjXzyor3qaDl74GCwcz O/Xy+7v+atdD9R29d3kd7zOhBiehHHRf4qg+VuS+PuLVyBCLLaEN93eu08RJ/vK3JEzw QhxywBrUXQ35VTSqPT5mKouTmTWAQrh3pd8FWY4eZjavQThFC4ZGv5yFUNSK+tjp4uf5 FFqGFqtylJ3FhWnI2i5GYXPoOXC3O7MRatE/B9tYVaaZC1SVE3b8Ietl8RQCzFwuoVav ho6fhZYGdarJekroWGl0YjNu9FLiW2yD76fuTncvS1RgdeR5uHYLFyuJraI6y47GRmnF kaWw== X-Gm-Message-State: AKwxytcoR2uc01XPJc+gMROd86b4mtK86pX3ufi0uM36YrFB+DbbZi87 3kq/e0Rf6/eN1vd592s9f8mKzAwnogM= X-Received: by 10.223.161.72 with SMTP id r8mr7469264wrr.55.1517483721884; Thu, 01 Feb 2018 03:15:21 -0800 (PST) Received: from localhost.localdomain ([160.164.249.13]) by smtp.gmail.com with ESMTPSA id h32sm21099552wrf.65.2018.02.01.03.15.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 03:15:21 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 1 Feb 2018 11:15:13 +0000 Message-Id: <20180201111513.13572-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v2] BaseTools/Conf: disable DTC legacy phandle format X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com, liming.gao@intel.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" By default, the device tree compiler emits phandle properties twice: one called 'phandle' and another called 'linux,phandle'. Given that Linux was updated in early 2010 [0] to accept the former (which is what is specified in the ePAPR and device tree specifications), there is no point in emitting both when compiling device trees for UEFI platforms. [0] 04b954a673dd02f585a2769c4945a43880faa989 "of/flattree: Make the kernel accept ePAPR style phandle information" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/build_rule.template | 2 +- BaseTools/Conf/tools_def.template | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 3e6aa8ff0f34..a5e471eb3c10 100755 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -250,7 +250,7 @@ "$(PP)" $(DTCPP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i - "$(DTC)" -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i + "$(DTC)" $(DTC_FLAGS) -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i [Visual-Form-Representation-File] diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 482ef263c274..99ad271471d9 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4467,6 +4467,7 @@ NOOPT_DDK3790xASL_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:REF DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG = NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug +*_*_*_DTC_FLAGS = -H epapr DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe