what is the point of "dt-bindings" symlinks under some arches?
Robert P. J. Day
rpjday at crashcourse.ca
Sun May 22 03:25:37 EDT 2016
i'm curious about the value of the small number of "dt-bindings"
symlinks under some architectures that all simply link to the
top-level include/dt-bindings/ directory:
$ find . -name dt-bindings -exec ls -ld {} \;
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 26 13:07 ./arch/cris/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 25 10:58 ./arch/powerpc/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 25 10:57 ./arch/metag/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 25 10:57 ./arch/arm64/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 25 10:57 ./arch/arm/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
lrwxrwxrwx. 1 rpjday rpjday 34 Apr 25 10:57 ./arch/mips/boot/dts/include/dt-bindings -> ../../../../../include/dt-bindings
drwxrwxr-x. 26 rpjday rpjday 4096 Apr 26 13:07 ./include/dt-bindings
$
normally, i expect to see setups like that in cases where,
historically, an architecture kept track of its own content and, at
some point, it was centralized, so the previous directory (whatever it
contained) was simply replaced by a symlink.
but even without that arch-specific symlink, wouldn't the top-level
include/dt-bindings/ directory be searched, anyway? or maybe not, i
guess i'll check the Makefile to see if it would be.
thoughts? given that all those symlinks are absolutely identical,
couldn't they all just be removed?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the Kernelnewbies
mailing list