v4l/scripts/make_config_compat.pl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the script doesn't work properly when the KDIR given is outside the
kernel source tree, like it is for most distros which build differently
configured kernel images from the same source tree.

I've therefore hacked it like that:

diff -r 5b19ac1cddb5 v4l/scripts/make_config_compat.pl
--- a/v4l/scripts/make_config_compat.pl Wed Oct 10 13:12:13 2007 +0400
+++ b/v4l/scripts/make_config_compat.pl Sun Oct 14 22:05:22 2007 +0200
@@ -6,6 +6,9 @@ my $outfile=shift or die "should specify
 my $outfile=shift or die "should specify an output config file";

 my $out;
+
+print STDERR "kdir: $kdir\n";
+$kdir='/usr/src/linux-2.6.21-3';

 sub check_spin_lock()
 {

After that, the build succeeds. The attached output shows the first few
lines after typing make. As you can see, I do build the dvb tree outside
of the kernel tree. This is on a openSUSE 10.2 system which uses a
kernel of openSUSE 10.3 alpha, due to some debugging issues.

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl@xxxxxx
video:/soft/src/multiproto # make
make -C /store/soft/src/multiproto/v4l
make[1]: Entering directory `/store/soft/src/multiproto/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.21-3-default/build ./.myconfig ./config-compat.h
kdir: /lib/modules/2.6.21-3-default/build
creating symbolic links...
make -C /lib/modules/2.6.21-3-default/build SUBDIRS=/store/soft/src/multiproto/v4l  modules
make[2]: Entering directory `/usr/src/linux-2.6.21-3-obj/i386/default'
make -C ../../../linux-2.6.21-3 O=../linux-2.6.21-3-obj/i386/default modules
  CC [M]  /store/soft/src/multiproto/v4l/flexcop-pci.o
  CC [M]  /store/soft/src/multiproto/v4l/flexcop-usb.o
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux