From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 20C4A222EDCD8 for ; Fri, 5 Jan 2018 01:31:31 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id f206so1306712wmf.5 for ; Fri, 05 Jan 2018 01:36:38 -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=tbEISpjdYoKo5uH3Rweri1F+mzw3mF0hcmWtZ1uzDwE=; b=QDMbmEOZsK/3eQtN1M9a/gRQbzZ75/7/Z9dVIBiHQNHgWfwBOdI8Pu82awh38U7FMA RlmbPCSTEH1i+EPFPeOVMijm6V2iynRhRYZAdWSClt1LCM4e/byWRNcTjJ/uhYn2l0lO TCmxxD4gOOs8f5R7BljK83qTzQbUuqOJPAs1k= 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=tbEISpjdYoKo5uH3Rweri1F+mzw3mF0hcmWtZ1uzDwE=; b=gDtx1izTaE0k8NLboO4rQcwGqoaFcj8ReI9NfOSRLpJ90AeHViBAH7gpFLsKvRifGZ drfK+p9R06yKZLPb5y/wLuLijIKZeQvvyP5/xSUPZwFEVgGV+KT648HbW8Xkn6PtaLgW ILIi0SwXjK8aa5A/4qmEybLfA3gJAzJ30UPrWtSo+M0qLTxRx4L/yeOglggK06hKCxBa ydjtI3+Jm2oA/WY40BcYcNbqvV8WG9nekFFYK1R8Gnisveazvfg3ZL6RnuOr0nQ3XmZy g/R25GH2IANFvt1GQ8XwDjj9N17JFDixpPEWBXt4Xv/fylgaleTK60ZDA0eQLFEx4zGf sXCA== X-Gm-Message-State: AKGB3mL6pVR0lR+e86kXbuuwD9dcLD44QKQ0igcBV/nouW93tiqdD7AD PYGpya9d8TN+/aaX9+8wIy2o7U0rc50= X-Google-Smtp-Source: ACJfBotsJ+NcQ521GNd5i55ZP7nG13pu1YI2CbrpPtv/cnEHOtt/IKbcsIobBgMu6ry30hq/QVdMyw== X-Received: by 10.28.239.5 with SMTP id n5mr1822384wmh.9.1515144996587; Fri, 05 Jan 2018 01:36:36 -0800 (PST) Received: from localhost.localdomain ([160.167.54.240]) by smtp.gmail.com with ESMTPSA id 15sm7326454wrt.18.2018.01.05.01.36.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 01:36:35 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, liming.gao@intel.com Cc: yonghong.zhu@intel.com, Ard Biesheuvel Date: Fri, 5 Jan 2018 09:36:29 +0000 Message-Id: <20180105093629.7885-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [PATCH] BaseTools/build_rule: 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: , X-List-Received-Date: Fri, 05 Jan 2018 09:31:32 -0000 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 3e6aa8ff0f34..10a91fe3a6c6 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)" -H epapr -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i [Visual-Form-Representation-File] -- 2.11.0