Jing Leng 23a0cb8e32 kbuild: Fix include path in scripts/Makefile.modpost
When building an external module, if users don't need to separate the
compilation output and source code, they run the following command:
"make -C $(LINUX_SRC_DIR) M=$(PWD)". At this point, "$(KBUILD_EXTMOD)"
and "$(src)" are the same.

If they need to separate them, they run "make -C $(KERNEL_SRC_DIR)
O=$(KERNEL_OUT_DIR) M=$(OUT_DIR) src=$(PWD)". Before running the
command, they need to copy "Kbuild" or "Makefile" to "$(OUT_DIR)" to
prevent compilation failure.

So the kernel should change the included path to avoid the copy operation.

Signed-off-by: Jing Leng <jleng@ambarella.com>
[masahiro: I do not think "M=$(OUT_DIR) src=$(PWD)" is the official way,
but this patch is a nice clean up anyway.]
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2022-05-27 15:51:48 +09:00
..
2022-01-15 12:15:35 +01:00
2022-04-22 12:32:03 +02:00
2022-05-26 12:09:50 -07:00
2022-05-26 12:09:50 -07:00
2022-03-21 08:13:03 -07:00
2021-05-02 00:43:35 +09:00
2022-03-07 13:54:59 +01:00
2022-01-19 11:15:19 +02:00
2020-12-08 23:30:04 +09:00
2022-02-04 16:43:01 +01:00
2020-12-08 23:30:04 +09:00
2021-05-03 17:23:06 -06:00