[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Spec changes for later kernel header copies
From: |
Kevin Wells |
Subject: |
[Ltib] Spec changes for later kernel header copies |
Date: |
Tue, 3 Aug 2010 19:37:38 +0200 |
Hi Staurt,
The autoconf.h file is now located in the ./include/generated directory
instead of the ./include/linux directory in later kernel source. This
breaks the directfb spec which searches for it in ./include/linux.
address@hidden BUILD]$ pwd
/home/usb10132/dev/ltib/rpm/BUILD
address@hidden BUILD]$ find . -name autoconf.*
./linux-2.6.34/include/generated/autoconf.h
./linux-2.6.27.8/include/linux/autoconf.h
address@hidden BUILD]$
This currently seems to only break the directfb build for LPC32xx and
LPC313x platforms using the later kernels (2.6.34 and 2.6.33(?)).
I've attached a possible fix. This has been build tested with kernel
Versions 2.6.34 (LPC32xx), 2.6.27 (LPC32xx), and 2.6.15 (epx93xx).
Is this something that can be placed into the respective specs?
thanks,
Kevin
Index: DirectFB/DirectFB.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/DirectFB/DirectFB.spec,v
retrieving revision 1.5
diff -U 4 -r1.5 DirectFB.spec
--- DirectFB/DirectFB.spec 5 Dec 2008 16:32:13 -0000 1.5
+++ DirectFB/DirectFB.spec 3 Aug 2010 17:25:33 -0000
@@ -27,17 +27,20 @@
%Build
KHDR_DIR=$DEV_IMAGE/usr/src/linux/include
if [ ! -f $KHDR_DIR/linux/autoconf.h ]
then
- cat <<TXT
+ if [ ! -f $KHDR_DIR/generated/autoconf.h ]
+ then
+ cat <<TXT
No file: $KHDR_DIR/linux/autoconf.h
You need to build the kernel and have 'Include kernel headers' set
to build this package
TXT
- exit 1
+ exit 1
+ fi
fi
export FREETYPE_CONFIG=${DEV_IMAGE}/usr/bin/freetype-config
export FREETYPE_CFLAGS="`${FREETYPE_CONFIG} --prefix=${DEV_IMAGE}/%{_prefix}
--cflags`"
export FREETYPE_LIBS="`${FREETYPE_CONFIG} --prefix=${DEV_IMAGE}/%{_prefix}
--libs`"
Index: kernel/kernel-common.tmpl
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/kernel/kernel-common.tmpl,v
retrieving revision 1.9
diff -U 4 -r1.9 kernel-common.tmpl
--- kernel/kernel-common.tmpl 6 Jul 2009 07:52:02 -0000 1.9
+++ kernel/kernel-common.tmpl 3 Aug 2010 17:25:33 -0000
@@ -320,8 +320,14 @@
cp -a $KBOUT/include/asm/arch/*
$RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch
else
echo "Don't know how to copy asm headers for this kernel"
fi
+
+ if [ -d "$KBOUT/include/generated" ]
+ then
+ mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/generated
+ cp -a $KBOUT/include/generated/*
$RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/generated
+ fi
fi
fi
- [Ltib] Spec changes for later kernel header copies,
Kevin Wells <=