* [PATCH] arm64: dts: create an include directory for DT bindings
@ 2014-11-11 13:21 Bintian Wang
2014-11-11 14:51 ` Andreas Färber
0 siblings, 1 reply; 2+ messages in thread
From: Bintian Wang @ 2014-11-11 13:21 UTC (permalink / raw)
To: linux-arm-kernel
Some header files may be used by both DT files and kernel, and we
usually put them under <include/dt-bindings/>, and also include them
in DT files just like:
#include <dt-bindings/xxx/xxx.h>
for exaple, some clock header files.
On arm64 platform, the compiler will report an error and terminate
when compiling DT files:
dt-bindings/xxx/xxx.h: No such file or directory
In order to fix the compile error, create an include directory and symlink
dt-bindings from there to the actual location of include/dt-bindings/:
arch/arm64/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
Signed-off-by: Bintian Wang <bintian.wang@huawei.com>
---
arch/arm64/boot/dts/include/dt-bindings | 1 +
1 file changed, 1 insertion(+)
create mode 120000 arch/arm64/boot/dts/include/dt-bindings
diff --git a/arch/arm64/boot/dts/include/dt-bindings b/arch/arm64/boot/dts/include/dt-bindings
new file mode 120000
index 0000000..08c00e4
--- /dev/null
+++ b/arch/arm64/boot/dts/include/dt-bindings
@@ -0,0 +1 @@
+../../../../../include/dt-bindings
\ No newline at end of file
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] arm64: dts: create an include directory for DT bindings
2014-11-11 13:21 [PATCH] arm64: dts: create an include directory for DT bindings Bintian Wang
@ 2014-11-11 14:51 ` Andreas Färber
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Färber @ 2014-11-11 14:51 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
Am 11.11.2014 um 14:21 schrieb Bintian Wang:
> Some header files may be used by both DT files and kernel, and we
> usually put them under <include/dt-bindings/>, and also include them
> in DT files just like:
> #include <dt-bindings/xxx/xxx.h>
> for exaple, some clock header files.
>
> On arm64 platform, the compiler will report an error and terminate
> when compiling DT files:
> dt-bindings/xxx/xxx.h: No such file or directory
>
> In order to fix the compile error, create an include directory and symlink
> dt-bindings from there to the actual location of include/dt-bindings/:
>
> arch/arm64/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
>
> Signed-off-by: Bintian Wang <bintian.wang@huawei.com>
> ---
> arch/arm64/boot/dts/include/dt-bindings | 1 +
> 1 file changed, 1 insertion(+)
> create mode 120000 arch/arm64/boot/dts/include/dt-bindings
>
> diff --git a/arch/arm64/boot/dts/include/dt-bindings b/arch/arm64/boot/dts/include/dt-bindings
> new file mode 120000
> index 0000000..08c00e4
> --- /dev/null
> +++ b/arch/arm64/boot/dts/include/dt-bindings
> @@ -0,0 +1 @@
> +../../../../../include/dt-bindings
> \ No newline at end of file
Such a patch was already on the list for the Juno board.
Regards,
Andreas
--
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 21284 AG N?rnberg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-11 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 13:21 [PATCH] arm64: dts: create an include directory for DT bindings Bintian Wang
2014-11-11 14:51 ` Andreas Färber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).