diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-21 19:07:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-21 19:07:45 -0300 |
commit | 6ed34e3a513dd73f39d804e9416524bf5eb54be6 (patch) | |
tree | 3be7ba6924a23054420ef51376ffb91a75d9992d /v4l/scripts/make_kconfig.pl | |
parent | ba915ac86439f7c2e134346710e2c95835fa8b68 (diff) | |
download | mediapointer-dvb-s2-6ed34e3a513dd73f39d804e9416524bf5eb54be6.tar.gz mediapointer-dvb-s2-6ed34e3a513dd73f39d804e9416524bf5eb54be6.tar.bz2 |
building system fix: miropcm20 depends on sound/oss/aci.h
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Most V4L/DVB hg tree users are just compiling using kernel headers.
This is bad, due to:
1) the lack of support for make *config
2) the kernel itself have unknown patches from the distros
Anyway, it is useful to provide they some support.
This patch provides a "hack" for such users, by checking if the
sound/oss/aci.h file is present under kernel tree. If not, it will
disable miropcm20 and print a warning about the usage of a kernel-headers
only package.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/make_kconfig.pl')
-rwxr-xr-x | v4l/scripts/make_kconfig.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index 5f8866220..807fea2e6 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -400,6 +400,20 @@ close OUT; disable_config('DVB_AV7110_FIRMWARE'); disable_config('DVB_CINERGYT2_TUNING'); +# Hack for check sound/oss/aci.h header + +my $mirodep="$kernel/sound/oss/aci.h"; +if (!open IN, $mirodep) { + my $key="RADIO_MIROPCM20"; + printf "$key: $mirodep is missing.\n"; + printf "It seems that you are using a kernel-headers only package\n"; + printf "kernel-headers only won't provide you make menuconfig/xconfig/qconfig\n"; + + $kernopts{$key}='n'; +} +close IN; + +# Recursively check for broken dependencies my $i; do { $i=0; |