Re: patchfile : cross compile build error

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

 



Hi,

Am Montag, 30. April 2007 03:20 schrieb Younghyun Jo:
> Here`s My diiff file.
>
> Christoph Pfister wrote:
> >Hi,
> >
> >Am Donnerstag, 26. April 2007 04:16 schrieb Younghyun Jo:
> >>HI..
> >>I found some build script bug from dvb-apps.
> >>In  generate-keynames.sh the kernel inlcude directory is static.
> >>it`s problem when cross compliling, if host linux version and target
> >>linux version is diffrent. :-(
> >>
> >>plz read my diff file and patch to annoying cross compile build error.
> >>
> >>Bye... :-)
> >
> >And what's your diff file (nothing is attached)?
> >
> >Christoph

[ adding linux-dvb to cc as that's the place to discuss such stuff; 
reattaching the patch so others can see it as well ]

The patch has some nastyness (wrong diff direction; unnecessary new-line 
change; no doc of the new stuff) which could be fixed ... but I see some more 
general issues:

1) What's exactly the problem when cross-compiling? The user space kernel 
headers should also work with kernels which are a bit newer / older.

2) What about linux/dvb/* ? Basically you have the same problem there when 
cross-compiling. On the other hand they haven't changed for quite a while 
now - but i think that also kinda applies to linux/input.h ...

Christoph
Binary files source_/dvb-apps/.hg/dirstate and source/dvb-apps/.hg/dirstate differ
diff -urN source_/dvb-apps/Make.rules source/dvb-apps/Make.rules
--- source_/dvb-apps/Make.rules	2007-04-26 10:27:40.000000000 +0900
+++ source/dvb-apps/Make.rules	2007-04-26 10:33:14.000000000 +0900
@@ -28,7 +28,6 @@
 endif
 
 prefix ?= /usr
-kernelinc ?= /usr/include/
 
 bindir     ?= $(prefix)/bin
 includedir ?= $(prefix)/include
diff -urN source_/dvb-apps/util/av7110_loadkeys/Makefile source/dvb-apps/util/av7110_loadkeys/Makefile
--- source_/dvb-apps/util/av7110_loadkeys/Makefile	2007-04-26 10:31:08.000000000 +0900
+++ source/dvb-apps/util/av7110_loadkeys/Makefile	2007-04-26 10:33:15.000000000 +0900
@@ -1,4 +1,3 @@
-
 # Makefile for linuxtv.org dvb-apps/util/av7110_loadkeys
 
 binaries = av7110_loadkeys
@@ -14,7 +13,7 @@
 $(binaries): input_keynames.h
 
 input_keynames.h:
-	$(SHELL) generate-keynames.sh $@ $(kernelinc)
+	$(SHELL) generate-keynames.sh $@
 
 include ../../Make.rules
 
diff -urN source_/dvb-apps/util/av7110_loadkeys/generate-keynames.sh source/dvb-apps/util/av7110_loadkeys/generate-keynames.sh
--- source_/dvb-apps/util/av7110_loadkeys/generate-keynames.sh	2007-04-26 10:29:43.000000000 +0900
+++ source/dvb-apps/util/av7110_loadkeys/generate-keynames.sh	2007-04-26 10:33:15.000000000 +0900
@@ -18,7 +18,7 @@
 echo >> $1
 echo >> $1
 echo "static struct input_key_name key_name [] = {" >> $1
-for x in $(cat $2/linux/input.h input_fake.h | \
+for x in $(cat /usr/include/linux/input.h input_fake.h | \
            egrep "#define[ \t]+KEY_" | grep -v KEY_MAX | \
            cut -f 1 | cut -f 2 -d " " | sort -u) ; do
     echo "        { \"$(echo $x | cut -b 5-)\", $x }," >> $1
@@ -26,7 +26,7 @@
 echo "};" >> $1
 echo >> $1
 echo "static struct input_key_name btn_name [] = {" >> $1
-for x in $(cat $2/linux/input.h input_fake.h | \
+for x in $(cat /usr/include/linux/input.h input_fake.h | \
            egrep "#define[ \t]+BTN_" | \
            cut -f 1 | cut -f 2 -d " " | sort -u) ; do
      echo "        { \"$(echo $x | cut -b 5-)\", $x }," >> $1
_______________________________________________
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