All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Hunter <jon-hunter-l0cyMroinI0@public.gmane.org>
To: Padma Venkat <padma.kvr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
	Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	Sylwester Nawrocki
	<s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Subject: Re: Regarding dtc+cpp support
Date: Thu, 18 Apr 2013 09:49:26 -0500	[thread overview]
Message-ID: <517007F6.3010107@ti.com> (raw)
In-Reply-To: <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


On 04/18/2013 04:12 AM, Padma Venkat wrote:
> Hi Stephen,
> 
> I am trying to add a header file for samsung audio subsystem clk
> definitions, which can be used in kernel and dt files.
> I applied following patches posted by you in my working tree.
> 
> 
> [1/7] kbuild: create an "include chroot" for DT bindings
> [2/7] kbuild: fixdep: support concatenated dep files
> [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc
> [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp
> [5/7] ARM: dt: add header to define GPIO flags
> [6/7] ARM: dt: add header to define IRQ flags
> [7/7] ARM: dt: create a DT header for the GIC
> 
> I created a header file in
> arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this
> header in driver and dtsi files
> 
> Please see the code snippet in dtsi below.
> 
> #include <dt-bindings/clk/samsung-audss-clk.h>
> /include/ "skeleton.dtsi"
> /include/ "exynos5250-pinctrl.dtsi

Try making all of the above "#include" ...

#include <dt-bindings/clk/samsung-audss-clk.h>
#include "skeleton.dtsi"
#include "exynos5250-pinctrl.dtsi

> In driver it is compiling successfully but in dtsi files I am getting
> the follwing compilation error.
> 
> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
> FATAL ERROR: Unable to parse input tree
> make[1]: *** [arch/arm/boot/dts/exynos5250-arndale.dtb] Error 1
> make[1]: *** Waiting for unfinished jobs....
>   DTC     arch/arm/boot/dts/exynos5250-snow.dtb
> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
> FATAL ERROR: Unable to parse input tree
> make[1]: *** [arch/arm/boot/dts/exynos5250-smdk5250.dtb] Error 1
> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
> FATAL ERROR: Unable to parse input tree
> make[1]: *** [arch/arm/boot/dts/exynos5250-snow.dtb] Error 1
> make: *** [dtbs] Error 2
> make: *** Waiting for unfinished jobs....
> 
> where "#include <dt-bindings/clk/samsung-audss-clk.h>" is the 21st
> line in the dtsi file.
> 
> Please let me know if any extra patches are required to solve this
> compilation error?

I was seeing some compile errors when I had a mixture of /include/ and
#include.

Cheers
Jon

  parent reply	other threads:[~2013-04-18 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18  9:12 Regarding dtc+cpp support Padma Venkat
     [not found] ` <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-18 14:49   ` Jon Hunter [this message]
     [not found]     ` <517007F6.3010107-l0cyMroinI0@public.gmane.org>
2013-04-18 16:21       ` Padma Venkat
     [not found]         ` <CAAgF-BefLWjRz3TXb6ESVQVA1Xno-z-WW2QVg6pNa+6_YW7AUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-18 16:57           ` Jon Hunter
     [not found]             ` <5170260C.4000700-l0cyMroinI0@public.gmane.org>
2013-04-19  5:56               ` Padma Venkat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=517007F6.3010107@ti.com \
    --to=jon-hunter-l0cymroini0@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=padma.kvr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.