mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [Question] device-tree-rebasing include path
@ 2015-08-09 23:05 Masahiro Yamada
  2015-08-19 14:36 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2015-08-09 23:05 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Question] device-tree-rebasing include path
  2015-08-09 23:05 [Question] device-tree-rebasing include path Masahiro Yamada
@ 2015-08-19 14:36 ` Sascha Hauer
  2015-10-22  3:35   ` Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2015-08-19 14:36 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: barebox

Hi Masahiro,

On Mon, Aug 10, 2015 at 08:05:59AM +0900, Masahiro Yamada wrote:
> 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?

Nope, this is not intentional. Currently there is no user for /include/ for
something in dts/, so we could change this to be consistent without
breaking anything.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Question] device-tree-rebasing include path
  2015-08-19 14:36 ` Sascha Hauer
@ 2015-10-22  3:35   ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2015-10-22  3:35 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

Hi Sascha,


2015-08-19 23:36 GMT+09:00 Sascha Hauer <s.hauer@pengutronix.de>:
> Hi Masahiro,
>
> On Mon, Aug 10, 2015 at 08:05:59AM +0900, Masahiro Yamada wrote:
>> 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?
>
> Nope, this is not intentional. Currently there is no user for /include/ for
> something in dts/, so we could change this to be consistent without
> breaking anything.
>
> Sascha


OK, thanks.


I have sent a patch.



-- 
Best Regards
Masahiro Yamada

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-22  3:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-09 23:05 [Question] device-tree-rebasing include path Masahiro Yamada
2015-08-19 14:36 ` Sascha Hauer
2015-10-22  3:35   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox