From patchwork Thu Aug 31 13:08:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 111387 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp2521273qge; Thu, 31 Aug 2017 06:08:44 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6VuuZrm+Mr8H36utVVmdbd/wllQ/U1Id7U8C2Lmy86dY5JXw9y404tv3TLZn8EiiRlH9ay X-Received: by 10.84.210.196 with SMTP id a62mr2539294pli.382.1504184924730; Thu, 31 Aug 2017 06:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504184924; cv=none; d=google.com; s=arc-20160816; b=YjtfmFoB3JFivYPXH97zQCwqI5DyoDH/IBJwgBaDPzOv1RMcNxEdyCqNDaGcR8BVeW skkBKmp2z57ANR7T2VFz00NuKFviGUyaDCMxc5qSUDBNCGVmjzTW6NP0tIQHlscgbtqf jCsCtlIW+yWmccaFVioGKdHiGDU9RksRbdmGRT0BEkh5T1PhuLsB2vNjrk65TULixfgP XtFsgqhgGL5nDNkPjkun4OIknKva4rEKDT76SU9Vgmj2qB08zgEOWqHg37fNvYpd7Lmu AZ67tcHOrDv8XU3kfkiQlp/cI1phCoaPc9ho2JceOHgUGJIRrEKni3mQvCvdaX4ErDW9 ug0w== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=z9cBE+ouWn3xFiPRCvovPedFQ4zlm7eEZxbLSopYofM=; b=yJz6zlzDeCn9oNUzy1wtCmqy8cYrjbGOy5WwbUe0AbVfUsZhk5ujOUPG5PKY1j5ZH8 ltA3ZWkZzuVebofEID/N9x/6pY0gM24OpT2MT7lxYkMa6+CeII/3tAuPPtSnaUo+0bzs lHHQyYX8JQnFBSJQg3NtGK4lNJG32S86t8OIG4IVwh2HODyAtsJXvIt17nVdbto0xmh6 UAf/KjvQPYe+GzgmPQCZyCuwRdzBNqQmM4ST3vm6VI+5nm28TtL48deY8s0i15UugkR7 rnd652jHrT6CgfHMQ5R4qGkXSHjjueWwMbI2jtvjiIlkJbLVkBksLazOKhWe8M599aeY sYzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=E8bczuc/; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id b7si6453681pge.727.2017.08.31.06.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2017 06:08:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=E8bczuc/; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 AF38321EB529D; Thu, 31 Aug 2017 06:05:59 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 570F621EB529B for ; Thu, 31 Aug 2017 06:05:58 -0700 (PDT) Received: by mail-wm0-x22a.google.com with SMTP id v2so4507104wmf.0 for ; Thu, 31 Aug 2017 06:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sOpO9EmG8qTqsE7+miruXtj8DT3wH5zN2mGDgyOGSrY=; b=E8bczuc/VK29k6U7AmMOH0YPmo0FI5ETFRyOG+PmosmxPohD+keQvSITI0WF5v9zng 3kW9hpy+OzZ8XGeW7T+SMoZUirAdFiogtKSRqxQcoQjY02WOjht1M5Cx+4/oDvwkSo2H 9uO4CQTRHcYV5pOAAAT6r/OOHuFbLcFZsE4zk= 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:in-reply-to :references; bh=sOpO9EmG8qTqsE7+miruXtj8DT3wH5zN2mGDgyOGSrY=; b=JfO3f7/eLmqZpXP+qt77iUTLEVcyrdSabhnTuB7L8darTAyH8NYG+qpzTnMxI5vHDC uolmCPN5qKuElM95VdrBJzy6zaQrHoG2YDKAjz2UsoteRGmi5ZRec6dxXCcn2sPBbNJG S4rywqG1VqG7N92mzT17XtFDYTK99pRNI1D7MgR2U+tDLWj4UrRLJe+Mer4TpnSJ+VjW 4YDzZrqo7eBVhoxi7QPUWg39ZR+vceJ5onwrK7Tb+M+Yd1H4F7knHrYFHkCcSeO297Th z6R5irDSjF/ycP3ihzdwWOKf2nQ4zXn5qBCPfts9Np2x+X4p7OUjF2xKW4ziS8Bd1J/1 tn4A== X-Gm-Message-State: AHPjjUgE+SwRqqkt7BAYFKxf97e8CNYiY80oePk4HsOdI9RduRbvqGzJ yA/YbgEugcA3s2usV8sTTQ== X-Received: by 10.28.153.202 with SMTP id b193mr470382wme.117.1504184919625; Thu, 31 Aug 2017 06:08:39 -0700 (PDT) Received: from localhost.localdomain ([154.144.95.132]) by smtp.gmail.com with ESMTPSA id u38sm5571203wrb.12.2017.08.31.06.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2017 06:08:38 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 31 Aug 2017 14:08:27 +0100 Message-Id: <20170831130830.12833-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170831130830.12833-1-ard.biesheuvel@linaro.org> References: <20170831130830.12833-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 1/4] Platform/OverdriveBoard: move device tree compilation into build 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: , Cc: alan@softiron.com, Ard Biesheuvel , liming.gao@intel.com, leif.lindholm@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Use the proposed BaseTools support for device tree compilation to build the device tree binary from source at build time. Give it its own .inf and a build rule so the tools take care of everything. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dtb | Bin 9357 -> 0 bytes Platform/AMD/OverdriveBoard/OverdriveBoard.dsc | 1 + Platform/AMD/OverdriveBoard/OverdriveBoard.fdf | 9 ++++--- Platform/AMD/OverdriveBoard/{FdtBlob/styx-overdrive.dts => OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.dts} | 0 Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.inf | 28 ++++++++++++++++++++ 5 files changed, 34 insertions(+), 4 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dtb b/Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dtb deleted file mode 100644 index c8e5fd980bce305186214aab10a7d399faa22500..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9357 zcmdT~O>7-k6`rw)A*6q4AOZx68>b{vrSMPo6pFwcq`#}(#4}ym-;d%e>`K#U!qCFXYpJ__@2FbM7^7V1BMQld1p?MBm$Ds5ad}xfF@t2T|YT2sY7j8RrH{5Pg!KMhmsiH-m1D>f)@g2B zC)A(B#<;AXkD6N65u@he-XM6Je%P=3JpPc!zt`~+r^>r970j>+rm8eAG81*zDyl_K zf5%a1ulRL-Q6>>8dFK8Flok<=P?%(^n0fiil_g0n+i)DGmeWnsi;`@ZtkO{9yhs70 z@~;m3dt2rE!CZ@b**ttMS*NVB`Gao$u?55tm9*bioTJYidIe1x7kLb>B}u_BzE8;? z=}9)xLAS`eVR3Ls@Yw+(}+P@)w!Oj3qdVBsIigokDv< z98Q7#=hcfNdF|!WT`x@2pScB@C+BV}&V7G>`KrSw{mIiRVSlVsx@_hY^NMxT$jmEc z&8wTQx7S~9zH@rl}uQ?56u3PRQpzw?M;hG0EytcUxC9zN@y@8^2#Lh8Qnb;}& z*pq!@e+3>$d&B+(SSohq70<1(bDpRzu~W9#u_lrC`4)EeZK@g+)tTN#62&V?3I&Kh zM!9zbCEjcu$4hgafG1v!`xf|d`9+)X0O}Z%bPUDE)@xzIc^KZ)ORKn>nVz(;G4_V} zRo8+UxDj&~y8U3bUOdd{T!LE=L9E$f|9RrOe3~ll4>sb`M6iW=XHMk=pmubo`Z?uB z*2dSYXNleEV878NB)<0?dyAtW#37cpe(bM8w`=Umlxdu?>(Y5`&$TCKdy#c!XXVbT zC~^EJCd<@@!6Xseb{#+*8~<~t(D=Ob;Cy0kwH(I0IKn*$8&D7z-6fuCs3+O^R22j$ zdyG{}TOZ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*kF#EU=u+0S2sWOYQq_htuB^z3;6A&&6WeC7E@m@FFxK+!nR9}448{48J?4-nGyjx#dguf79_U7p?sN`sLsJ_II$bdC>fGZzs<-d&$4< z7kkY==QXLFf38Ix59XgT^DkqN;9=bGEs?ds9H0EqBly$zkufi$wM|haZYqdhd9LTZ zGWAjCtb6_27`fP!C#yVR9F2W2ANEX!yW+fv>lA-P1f!1;3cTAN)WJ;L>*3b9iukU( z3TCSGigEnNcJ$#wFym>ZMQQpYuT@aSgTASPEFG+Eo+(!1K@U;$D)l~o2(T(5XE!7N zH@kqA$DRDMYi5vK4y-&}tBbWd8sMLP;Ol3@Zk$C83aHW{AH6Jox=w~GM*1f0t3c|j zpsM2<|EXK2)*D~#dVL$L%c(0w0CgP61{S z^vrsin5Fu1VFG+KU_naC-4HjqqB%;nIvOzXfFX409huq$v4%4u5T=NebkMh-#1sY} z3sk0dAIOwFQ$^iuBk|>=R{~9Kd|mNuRIQo~Uxh5hdEsk%%O FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf b/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf index 23e57befcdd9..aa2a1a6fa053 100644 --- a/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf +++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf @@ -145,10 +145,7 @@ READ_LOCK_STATUS = TRUE # FDT support # INF EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf - - FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 { - SECTION RAW = Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dtb - } + INF RuleOverride = DTB Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.inf # # PCI support @@ -413,3 +410,7 @@ READ_LOCK_STATUS = TRUE RAW ASL |.aml } +[Rule.Common.USER_DEFINED.DTB] + FILE FREEFORM = $(NAMED_GUID) { + RAW BIN |.dtb + } diff --git a/Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dts b/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.dts similarity index 100% rename from Platform/AMD/OverdriveBoard/FdtBlob/styx-overdrive.dts rename to Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.dts diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.inf b/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.inf new file mode 100644 index 000000000000..9ecf993cafac --- /dev/null +++ b/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceTree.inf @@ -0,0 +1,28 @@ +## @file +# +# Device tree description of the AMD Seattle Overdrive platform +# +# Copyright (c) 2017, Linaro Ltd. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + INF_VERSION = 0x00010019 + BASE_NAME = OverdriveBoardDeviceTree + FILE_GUID = 25462CDA-221F-47DF-AC1D-259CFAA4E326 # gDtPlatformDefaultDtbFileGuid + MODULE_TYPE = USER_DEFINED + VERSION_STRING = 1.0 + +[Sources] + OverdriveBoardDeviceTree.dts + +[Packages] + MdePkg/MdePkg.dec