Files
linux/fs/ocfs2
Larry Chen 066206bc6e ocfs2: improve ocfs2 Makefile
[ Upstream commit 9e6aea2280 ]

Included file path was hard-wired in the ocfs2 makefile, which might
causes some confusion when compiling ocfs2 as an external module.

Say if we compile ocfs2 module as following.
cp -r /kernel/tree/fs/ocfs2 /other/dir/ocfs2
cd /other/dir/ocfs2
make -C /path/to/kernel_source M=`pwd` modules

Acutally, the compiler wil try to find included file in
/kernel/tree/fs/ocfs2, rather than the directory /other/dir/ocfs2.

To fix this little bug, we introduce the var $(src) provided by kbuild.
$(src) means the absolute path of the running kbuild file.

Link: http://lkml.kernel.org/r/20181108085546.15149-1-lchen@suse.com
Signed-off-by: Larry Chen <lchen@suse.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:47:18 +01:00
..
2019-02-12 19:47:18 +01:00
2019-02-12 19:47:18 +01:00
2017-09-06 17:27:24 -07:00
2018-08-17 16:20:27 -07:00
2018-10-13 09:31:02 +02:00
2018-12-17 09:24:41 +01:00
2018-01-31 17:18:35 -08:00
2018-01-31 17:18:35 -08:00
2018-07-06 23:57:03 +02:00
2018-08-17 16:20:27 -07:00
2018-06-07 17:34:33 -07:00
2018-06-12 16:19:22 -07:00
2015-12-29 17:45:49 -08:00
2019-02-12 19:47:18 +01:00
2012-05-29 23:28:40 -04:00
2018-06-12 16:19:22 -07:00
2016-05-12 15:52:50 -07:00