Patch to build dazuko legacy against Linux-2.6.33
Miklos Vajna <[email protected]> Sat, 13 Mar 2010 00:43:06 +0100
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
--emaGbJjdcutbxKXT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
[ John, sorry for the double post, I did not realise I have to
subscribe. ]
I just noticed that dazuko legacy does not build on Linux-2.6.33. Here is a
small patch to fix the issue.
Opinions?
Please CC me as I have mail delivery disabled.
Thanks.
--emaGbJjdcutbxKXT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dazuko-linux2633.patch"
Content-Transfer-Encoding: quoted-printable
diff --git a/configure b/configure
index 1caa547..6e04b61 100755
--- a/configure
+++ b/configure
@@ -117,7 +117,7 @@ linux_check_objdir()
then
echo -n "kernel build source in ${LINUX_CHECK_OBJ}... "
=20
- if [ -f "${LINUX_CHECK_OBJ}/include/linux/version.h" -a -f "${LINUX_CHEC=
K_OBJ}/include/linux/autoconf.h" ]
+ if [ -f "${LINUX_CHECK_OBJ}/include/linux/version.h" -a \( -f "${LINUX_C=
HECK_OBJ}/include/linux/autoconf.h" -o -f "${LINUX_CHECK_OBJ}/include/gener=
ated/autoconf.h" \) ]
then
LINUX_OBJ=3D"$LINUX_CHECK_OBJ"
echo "yes"
@@ -834,6 +834,16 @@ do_linux26()
echo "EXTRA_CFLAGS +=3D -DUSE_CONFIG_H" >> Makefile
fi
=20
+ if [ ${LINUX_USE_GENERATED_AUTOCONF_H} -eq 1 ]
+ then
+ echo "EXTRA_CFLAGS +=3D -DUSE_GENERATED_AUTOCONF_H" >> Makefile
+ fi
+
+ if [ ${LINUX_USE_GENERATED_UTSRELEASE_H} -eq 1 ]
+ then
+ echo "EXTRA_CFLAGS +=3D -DUSE_GENERATED_UTSRELEASE_H" >> Makefile
+ fi
+
if [ ${DEBUG} -eq 1 ]
then
echo "EXTRA_CFLAGS +=3D -DDEBUG" >> Makefile
@@ -1558,6 +1568,8 @@ WITH_EXAMPLE_PERL=3D0
WITH_EXAMPLE_PYTHON=3D0
LINUX_USE_PARENT=3D0
LINUX_USE_CONFIG_H=3D1
+LINUX_USE_GENERATED_AUTOCONF_H=3D1
+LINUX_USE_GENERATED_UTSRELEASE_H=3D1
LINUX26_USE_SUSPEND=3D0
LINUX26_USE_FREEZER=3D0
LINUX26_USE_SYSCALLS_H=3D0
@@ -2018,6 +2030,18 @@ case ${OS} in
else
LINUX_USE_CONFIG_H=3D0
fi
+ if [ -f "$TEMPNAME/generated/autoconf.h" ]
+ then
+ echo "CFLAGS +=3D -DUSE_GENERATED_AUTOCONF_H" >> Makefile
+ else
+ LINUX_USE_GENERATED_AUTOCONF_H=3D0
+ fi
+ if [ -f "$TEMPNAME/generated/utsrelease.h" ]
+ then
+ echo "CFLAGS +=3D -DUSE_GENERATED_UTSRELEASE_H" >> Makefile
+ else
+ LINUX_USE_GENERATED_UTSRELEASE_H=3D0
+ fi
if [ -f "$TEMPNAME/linux/utsrelease.h" ]
then
echo "CFLAGS +=3D -DUSE_UTSRELEASE_H" >> Makefile
diff --git a/linux_conf.c b/linux_conf.c
index 70e9981..efd8b93 100644
--- a/linux_conf.c
+++ b/linux_conf.c
@@ -1,10 +1,14 @@
#ifdef USE_CONFIG_H
+#elif USE_GENERATED_AUTOCONF_H
+#include <generated/autoconf.h>
#else
#include <linux/autoconf.h>
#endif
#include <linux/version.h>
#ifdef USE_UTSRELEASE_H
#include <linux/utsrelease.h>
+#elif USE_GENERATED_UTSRELEASE_H
+#include <generated/utsrelease.h>
#endif
#include <stdio.h>
=20
--emaGbJjdcutbxKXT
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Dazuko-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dazuko-devel
--emaGbJjdcutbxKXT--