[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] How to check linux header files availability before compiling
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] How to check linux header files availability before compiling ? |
Date: |
Wed, 09 Jun 2010 17:51:03 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
Hi Franz,
I normally use this in the .spec file %build section:
%Build
KHDR_DIR=$DEV_IMAGE/usr/src/linux/include
if [ ! -f $KHDR_DIR/linux/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
fi
Regards, Stuart
Franz TRIERWEILER wrote:
> Hi,
>
> My package Makefile needs to set gcc include path to the kernel headers
> (rootfs/usr/src/linux/include). I would like the availability of these
> files to be checked before gcc prints a cryptic error.
>
> Is there a way of checking linux header availability before compiling?
> (my makefile is not generated by ./configure).
>
> Must I specify this in the package dependencies?
>
> Is there a LTIB parameter I can catch from the Makefile to set the path
> automatically ?
>
> Thanks,
> Franz
>
>
- [Ltib] How to check linux header files availability before compiling ?, Franz TRIERWEILER, 2010/06/09
- Re: [Ltib] How to check linux header files availability before compiling ?,
Stuart Hughes <=
- Message not available
- Re: [Ltib] How to check linux header files availability before compiling ?, Stuart Hughes, 2010/06/11
- Message not available
- Re: [Ltib] How to check linux header files availability before compiling ?, Stuart Hughes, 2010/06/11
- Message not available
- Re: [Ltib] How to check linux header files availability before compiling ?, Stuart Hughes, 2010/06/14
- Message not available
- Re: [Ltib] How to check linux header files availability before compiling ?, Stuart Hughes, 2010/06/15
- Message not available
- Re: [Ltib] How to check linux header files availability before compiling ?, Stuart Hughes, 2010/06/16