arm64: dts: create an include directory for DT bindings
PATCH 1/1 arm64: dts: create an include directory for DT bindings
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
--- arch/arm64/boot/dts/include/dt-bindings | 1 + 1 file changed, 1 insertion(+) create mode 120000 arch/arm64/boot/dts/include/dt-bindings
arch/arm64/boot/dts/include/dt-bindings new file +1 -0
@@ -0,0 +1 @@ +../../../../../include/dt-bindings
Signature · 1 line
1.9.1
PATCH 1/1 arm64: dts: create an include directory for DT bindings
Hi,
Am 11.11.2014 um 14:21 schrieb Bintian Wang:
Quoted 27 lines
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 directoryIn 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-bindingsSigned-off-by Bintian Wang <[email protected]>--- arch/arm64/boot/dts/include/dt-bindings | 1 + 1 file changed, 1 insertion(+) create mode 120000 arch/arm64/boot/dts/include/dt-bindingsarch/arm64/boot/dts/include/dt-bindings new file +0
-0
arch/arm64/boot/dts/include/dt-bindings line 1
Quoted 2 lines
arch/arm64/boot/dts/include/dt-bindings new file +1
-0@@ -0,0 +1 @@ +../../../../../include/dt-bindings
Such a patch was already on the list for the Juno board.
Regards,
Andreas
Signature · 2 lines
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 21284 AG N?rnberg