kbuild: use $(src) instead of $(srctree)/$(src) for source directoryKbuild conventionally uses $(obj)/ for generated files, and $(src)/ forchecked-in source files. It is merely a convention withou
kbuild: use $(src) instead of $(srctree)/$(src) for source directoryKbuild conventionally uses $(obj)/ for generated files, and $(src)/ forchecked-in source files. It is merely a convention without any functionaldifference. In fact, $(obj) and $(src) are exactly the same, as definedin scripts/Makefile.build: src := $(obj)When the kernel is built in a separate output directory, $(src) doesnot accurately reflect the source directory location. While Kbuildresolves this discrepancy by specifying VPATH=$(srctree) to search forsource files, it does not cover all cases. For example, when adding aheader search path for local headers, -I$(srctree)/$(src) is typicallypassed to the compiler.This introduces inconsistency between upstream and downstream Makefilesbecause $(src) is used instead of $(srctree)/$(src) for the latter.To address this inconsistency, this commit changes the semantics of$(src) so that it always points to the directory in the source tree.Going forward, the variables used in Makefiles will have the followingmeanings: $(obj) - directory in the object tree $(src) - directory in the source tree (changed by this commit) $(objtree) - the top of the kernel object tree $(srctree) - the top of the kernel source treeConsequently, $(srctree)/$(src) in upstream Makefiles need to be replacedwith $(src).Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
show more ...
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
csky: remove deprecated arch/csky/boot/dts/include/dt-bindingsHaving a symbolic link arch/*/boot/dts/include/dt-bindings wasdeprecated by commit d5d332d3f7e8 ("devicetree: Move includeprefixes fr
csky: remove deprecated arch/csky/boot/dts/include/dt-bindingsHaving a symbolic link arch/*/boot/dts/include/dt-bindings wasdeprecated by commit d5d332d3f7e8 ("devicetree: Move includeprefixes from arch to separate directory").Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
csky: use common dtb build rulesRemove the Kbuild rules in arch/csky and use common dtb build rules.This modification is based on:commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build
csky: use common dtb build rulesRemove the Kbuild rules in arch/csky and use common dtb build rules.This modification is based on:commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules")Signed-off-by: Guo Ren <ren_guo@c-sky.com>Reviewed-by: Rob Herring <robh@kernel.org>Acked-by: Arnd Bergmann <arnd@arndb.de>
csky: remove builtin-dtb KbuildRemove the builtin-dtb implementation in arch/csky.Signed-off-by: Guo Ren <ren_guo@c-sky.com>Reviewed-by: Rob Herring <robh@kernel.org>Reviewed-by: Arnd Bergmann
csky: remove builtin-dtb KbuildRemove the builtin-dtb implementation in arch/csky.Signed-off-by: Guo Ren <ren_guo@c-sky.com>Reviewed-by: Rob Herring <robh@kernel.org>Reviewed-by: Arnd Bergmann <arnd@arndb.de>
csky: Build infrastructureThis patch adds Makefile, Kconfig for build infrastructure.Signed-off-by: Guo Ren <ren_guo@c-sky.com>Acked-by: Arnd Bergmann <arnd@arndb.de>