mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: barebox@lists.infradead.org
Subject: [Question] device-tree-rebasing include path
Date: Mon, 10 Aug 2015 08:05:59 +0900	[thread overview]
Message-ID: <CAK7LNAQ5jJLpkszp5iT65zfcaQsfPqqvk0U=p+cB+E+tqN-oEQ@mail.gmail.com> (raw)

Hi Sascha,

I have a question about the include path
of device-tree-rebasing.


When I saw scripts/Makefile.lib, I noticed that
"-I $(srctree)/dts/src" is included for pre-processor,
whereas "-i $(srctree)/dts/src/$(SRCARCH)" for DTC-native.

The root of device-tree-rebasing is dts/src/ when we use '#include',
but dts/src/$(SRCARCH) when we use '/include/'


Is this intentional?

In my opinion, #include and /include/
should be able to include files in the same way.


Here,

dtc_cpp_flags  = -Wp,-MD,$(depfile).pre -nostdinc  \
     -I$(srctree)/arch/$(SRCARCH)/dts/include      \
     -I$(srctree)/dts/include                      \
     -I$(srctree)/dts/src/                         \
     -undef -D__DTS__


cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
      $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
      -i $(srctree)/arch/$(SRCARCH)/dts $(DTC_FLAGS) \
      -i $(srctree)/dts/src/$(SRCARCH) \
      -d $(depfile).dtc $(dtc-tmp) ; \
      cat $(depfile).pre $(depfile).dtc > $(depfile)






-- 
Best Regards
Masahiro Yamada

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2015-08-09 23:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 23:05 Masahiro Yamada [this message]
2015-08-19 14:36 ` Sascha Hauer
2015-10-22  3:35   ` Masahiro Yamada

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='CAK7LNAQ5jJLpkszp5iT65zfcaQsfPqqvk0U=p+cB+E+tqN-oEQ@mail.gmail.com' \
    --to=yamada.masahiro@socionext.com \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox