From patchwork Sat Nov 26 03:15:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 699451 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tQdRb6txYz9sD6 for ; Sat, 26 Nov 2016 14:17:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="mhlCGEHk"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D18FA7600; Sat, 26 Nov 2016 04:17:17 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PkgfLqZut66a; Sat, 26 Nov 2016 04:17:17 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9CC23A75E6; Sat, 26 Nov 2016 04:16:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4972FA7594 for ; Sat, 26 Nov 2016 04:16:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30MIDOKmQe_C for ; Sat, 26 Nov 2016 04:16:27 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by theia.denx.de (Postfix) with ESMTPS id AD4E1A75B7 for ; Sat, 26 Nov 2016 04:16:20 +0100 (CET) Received: by mail-oi0-f53.google.com with SMTP id y198so98461602oia.1 for ; Fri, 25 Nov 2016 19:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=FY7bRH2npMHHtTCwWzDwov8JBZAtzxqCqSsUP7s+R5M=; b=mhlCGEHkV9Uartq+gfQyo5HTSu2qJRgtEko4zywIs9LRyU8QJfg4v2kGajP8H1FNoD vQzOMpvGz9C/aHkc+x7b7w/0PTkXiSvoJ8eYclgj5meD55+6lh1W3YPOBBTuB48H6qMW MyJjNia/8FBGgc/wW22aqHf0DiVMztDQBH9FB/1QpMBbberKl0EUlfsAfox11X8sZjv8 imydiRiNK4BR7B+XKotUlqEUEjAuxSdUSX3TkBOHPkMiZfWdGLQ8khnqy2SYzlb4bVFO 5bXS42AQv2sUGQ5QvqqeL/UKDvDe6vsjfjOQNbv3E9TpOJO5FUoV3WypZdU0T2sVP08S 63HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=FY7bRH2npMHHtTCwWzDwov8JBZAtzxqCqSsUP7s+R5M=; b=ABb2qdKDJe4jQ5nt85F//KVJ6wCOY9DVKr/PQHDwWVjq9rq+kKpHI7md9DYyDo7ujH jD7SbP3J8xLgVR8jvMLmUTBYBLcr76/+5Q/NDAuEHSPVHz7Pk0YFymB3mRvtnYJuTx8r HEvvphdiIEgqz1/S/8H4XiU1VUjy6HTUP9/7YOapYmPD3ZZUW2OHRBK0Hd464x0PuLqX fQIhGC1FI87Mv+PaePr+R/yA6tb7idY/+8eV4RwCswCYMmgZjbYVL4VPT8uWXG8ZiROM aAbKiS/R3lnJIPFBMFm0kOPYo8QjaHGRhpJ7xj9vj3/U7oR8vO24Adbok2mJSz2tBOyJ MdSQ== X-Gm-Message-State: AKaTC03c2TtrrGyQx+3Ox1Qr5NNEjOsNumRvZvS+USd6/WzNstuvstczDJKDe2fH8jfxnD6v X-Received: by 10.202.44.81 with SMTP id s78mr5721377ois.89.1480130179545; Fri, 25 Nov 2016 19:16:19 -0800 (PST) Received: from kaki.bld.corp.google.com ([100.100.197.48]) by smtp.gmail.com with ESMTPSA id 17sm13965554oty.17.2016.11.25.19.16.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 19:16:19 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 8476E4039C; Fri, 25 Nov 2016 20:16:18 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 25 Nov 2016 20:15:58 -0700 Message-Id: <1480130164-15709-9-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1480130164-15709-1-git-send-email-sjg@chromium.org> References: <1480130164-15709-1-git-send-email-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH v6 08/13] binman: Allow configuration options to be used in .dts files X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" It is sometimes useful to be able to reference configuration options in a device tree source file. Add the necessary includes so that this works. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Tested-by: Bin Meng --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None scripts/Makefile.lib | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 956a8a9..a237b7b 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -168,6 +168,11 @@ ld_flags = $(LDFLAGS) $(ldflags-y) dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ -I$(srctree)/arch/$(ARCH)/dts \ -I$(srctree)/arch/$(ARCH)/dts/include \ + -Iinclude \ + -I$(srctree)/include \ + -I$(srctree)/arch/$(ARCH)/include \ + -include $(srctree)/include/linux/kconfig.h \ + -D__ASSEMBLY__ \ -undef -D__DTS__ # Finds the multi-part object the current object will be linked into