From 27e0a2e8659f2e3e37b7781c322647040d3566c3 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Sun, 7 May 2006 18:29:49 -0400 Subject: fix ability to pass compile-time build options when building from the hg repo From: Michael Krufky When building in-kernel, compile-time build options are passed into the compiler using '#include ' . This file #include's , which is created on the fly by the kbuild system. However, this does not work correctly when building from the mercurial repository, since the kernel is built indepentently of v4l/.myconfig This creates a "config-compat.h", which will be #include'd by compat.h and will emulate for the local build. Signed-off-by: Michael Krufky --- v4l/scripts/makelinks.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'v4l/scripts/makelinks.sh') diff --git a/v4l/scripts/makelinks.sh b/v4l/scripts/makelinks.sh index a66989771..03fd48849 100755 --- a/v4l/scripts/makelinks.sh +++ b/v4l/scripts/makelinks.sh @@ -39,10 +39,12 @@ done for x in `find include -type d | grep -v CVS` ; do ln -f -s $PWD/../v4l/compat.h $1/$x/compat.h + touch $1/$x/config-compat.h done for x in `find drivers/media -type d | grep -v CVS` ; do ln -f -s $PWD/../v4l/compat.h $1/$x/compat.h + touch $1/$x/config-compat.h done cd .. -- cgit v1.2.3