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:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::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 A832022393624 for ; Wed, 31 Jan 2018 13:43:47 -0800 (PST) Received: by mail-wr0-x241.google.com with SMTP id v31so16659242wrc.11 for ; Wed, 31 Jan 2018 13:49: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=dZiV7YuwY3JLoljDwJghAYUSqfbJXox/IdZoeBOAgGQ=; b=G41F02N809C6x6BKGZjW1Tvg8OAIbmGaGcFvqAVFl2RbGImEtIvCa1rtB2P0Jkne+w A8zcMJbUOetvYmh3ESWXgrXWgsWEWnMQFnvM2d9KA46l0o6AK5Elz3Yp1bJTVu6yV1vm yYN2H7wzIy6nRIUwzwOMCzZqrHtt24VFei3C0= 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=dZiV7YuwY3JLoljDwJghAYUSqfbJXox/IdZoeBOAgGQ=; b=hRvZKrii1gpPWBV61Spi9KH8Qv870VNI+3HCvlkUwg+8xzHeUXDNTrz0sf1/SqarOS ZTeuyKc8RuBB/fXMyQrGtFRCUh7J6blS9H6/e/rQjVFxhUPrAcyz+JnuDhpAMpZRkSh5 oOFiSvMEv6Kut553wFKegmo9Iv0ml8595ZqT4RHWS9p+cKSTvodlXOi6B2UtvEbZDEV4 E/CazICmDJ7hlEDQbGYGNT/WkQkhGnIvecrCgAKYh5FnEUwrTNFTArx9fBSL2qX8cIn/ 01MEw10cshCJTrmN4gNFMwQJ2CKXpFYUtkwNi/KztoOFfgp2la2G0MmLgqjhqIwgxj1+ EOVA== X-Gm-Message-State: AKwxyte2SlPyxWoJ5rXgV6JCKbWq+9ABQWu2D5o7MnH3GWOAzth4N9To 1n/IYEFLgGx0hCW8nwLtGQp65oQNAmw= X-Google-Smtp-Source: AH8x225xbvcAaq60s1maszrucdVy3sAaw+7/E2qlhdW1OhfGA6tB/BYnESD4gx3LYJ+EpzEheplD6Q== X-Received: by 10.223.177.150 with SMTP id q22mr11995815wra.20.1517435361230; Wed, 31 Jan 2018 13:49:21 -0800 (PST) Received: from localhost.localdomain ([160.164.249.13]) by smtp.gmail.com with ESMTPSA id o82sm758750wmo.30.2018.01.31.13.49.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 13:49:20 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: liming.gao@intel.com, yonghong.zhu@intel.com, lersek@redhat.com, Ard Biesheuvel Date: Wed, 31 Jan 2018 21:49:09 +0000 Message-Id: <20180131214909.1103-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device tree compiler 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: Wed, 31 Jan 2018 21:43:48 -0000 To allow device tree compilation to be customized at the platform or module level, pass the contents of the DTC_FLAGS variable on the dtc command line. 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..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] -- 2.11.0