summaryrefslogtreecommitdiff
path: root/v4l/scripts/makelinks.sh
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-05-07 18:29:49 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-05-07 18:29:49 -0400
commit27e0a2e8659f2e3e37b7781c322647040d3566c3 (patch)
tree65e55b7fafb8f554522129d2bb4d8029ed71912f /v4l/scripts/makelinks.sh
parentb6e187a6550c6685b2e52b2d37053ab3dfe7c2cd (diff)
downloadmediapointer-dvb-s2-27e0a2e8659f2e3e37b7781c322647040d3566c3.tar.gz
mediapointer-dvb-s2-27e0a2e8659f2e3e37b7781c322647040d3566c3.tar.bz2
fix ability to pass compile-time build options when building from the hg repo
From: Michael Krufky <mkrufky@linuxtv.org> When building in-kernel, compile-time build options are passed into the compiler using '#include <linux/config.h>' . This file #include's <linux/autoconf.h> , 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 <linux/config.h> for the local build. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'v4l/scripts/makelinks.sh')
-rwxr-xr-xv4l/scripts/makelinks.sh2
1 files changed, 2 insertions, 0 deletions
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 ..