Discussion:
[Linuxptp-devel] incdefs.sh not working in crosscompile environments
Rohrer Hansjoerg
2014-01-08 06:31:36 UTC
Permalink
Hello

I just noticed that incdefs.sh is not working in crosscompile environments. It just checks
the host system and not the target system.

Brest regards
Hansjörg

__________________________________________________


Hansjoerg Rohrer
Deputy CTO
Engineering & Design
***@mobatime.com
Phone direct: +41 34 432 4635

Moser-Baer AG
Spitalstrasse 7
3454 Sumiswald
Switzerland

Phone: +41 34 432 4646
Fax: +41 34 432 4699

www.mobatime.com <http://www.mobatime.com>
www.mobatec.ch <http://www.mobatec.ch>
[cid:moser-baer_75years99824f]

__________________________________________________

Confidentiality:
The information contained in this e-mail and in any attached files is confidential and/or legally privileged. If you are not the intended recipient, please contact the sender and delete this e-mail. Any unauthorised copying or distribution of the information contained in this e-mail and/or in any attached file is prohibited. The sender and/or the sending company do not accept liability for the incorrect and/or incomplete transmission of the information, nor for any delay or interruption of the transmission, nor for the damages arising from the use of or reliance on the information unless mandatory law provides otherwise. E-mails may be interfered with, may contain computer viruses or other defects. The sender and/or the sending company give no warranties and do not accept liability in relation to these matters, unless mandatory law provides otherwise. Thank you for your cooperation.
Richard Cochran
2014-01-08 06:57:32 UTC
Permalink
Post by Rohrer Hansjoerg
Hello
I just noticed that incdefs.sh is not working in crosscompile environments. It just checks
the host system and not the target system.
Are you setting the KBUILD_OUTPUT environment variable?

You must set this in order to cross compile.

Thanks,
Richard
Rohrer Hansjoerg
2014-01-08 07:58:48 UTC
Permalink
Hello Richard

Yes, but my net_tstamp.h is in linux-3.x/include/linux. I have no /usr/include/linux.

Best regards
Hansjörg

___________________________________

Hansjoerg Rohrer
Deputy CTO
Engineering & Design
***@mobatime.com
Phone direct: +41 34 432 4635


Moser-Baer AG
Spitalstrasse 7
3454 Sumiswald
Switzerland

Phone: +41 34 432 4646
Fax: +41 34 432 4699
www.mobatime.com
www.mobatec.ch
___________________________________


Confidentiality:

The information contained in this e-mail and in any attached files is confidential and/or legally privileged. If you are not the intended recipient, please contact the sender and delete this e-mail. Any unauthorised copying or distribution of the information contained in this e-mail and/or in any attached file is prohibited. The sender and/or the sending company do not accept liability for the incorrect and/or incomplete transmission of the information, nor for any delay or interruption of the transmission, nor for the damages arising from the use of or reliance on the information unless mandatory law provides otherwise. E-mails may be interfered with, may contain computer viruses or other defects. The sender and/or the sending company give no warranties and do not accept liability in relation to these matters, unless mandatory law provides otherwise. Thank you for your cooperation.

-----Ursprüngliche Nachricht-----
Von: Richard Cochran [mailto:***@gmail.com]
Gesendet: Mittwoch, 8. Januar 2014 07:58
An: Rohrer Hansjoerg
Cc: 'linuxptp-***@lists.sourceforge.net'
Betreff: Re: [Linuxptp-devel] incdefs.sh not working in crosscompile environments
Post by Rohrer Hansjoerg
Hello
I just noticed that incdefs.sh is not working in crosscompile environments. It just checks
the host system and not the target system.
Are you setting the KBUILD_OUTPUT environment variable?

You must set this in order to cross compil
Richard Cochran
2014-01-08 08:36:52 UTC
Permalink
Post by Rohrer Hansjoerg
Hello Richard
Yes, but my net_tstamp.h is in linux-3.x/include/linux. I have no /usr/include/linux.
You need to do

make headers_install

on your cross built kernel. That will install the exported kernel
headers into ${KBUILD_OUTPUT}/usr/include

Thanks,
Richard
Rohrer Hansjoerg
2014-01-08 09:37:01 UTC
Permalink
Solved. Thanks a lot.

Best regards
Hansjörg

___________________________________

Hansjoerg Rohrer
Deputy CTO
Engineering & Design
***@mobatime.com
Phone direct: +41 34 432 4635


Moser-Baer AG
Spitalstrasse 7
3454 Sumiswald
Switzerland

Phone: +41 34 432 4646
Fax: +41 34 432 4699
www.mobatime.com
www.mobatec.ch
___________________________________


Confidentiality:

The information contained in this e-mail and in any attached files is confidential and/or legally privileged. If you are not the intended recipient, please contact the sender and delete this e-mail. Any unauthorised copying or distribution of the information contained in this e-mail and/or in any attached file is prohibited. The sender and/or the sending company do not accept liability for the incorrect and/or incomplete transmission of the information, nor for any delay or interruption of the transmission, nor for the damages arising from the use of or reliance on the information unless mandatory law provides otherwise. E-mails may be interfered with, may contain computer viruses or other defects. The sender and/or the sending company give no warranties and do not accept liability in relation to these matters, unless mandatory law provides otherwise. Thank you for your cooperation.

-----Ursprüngliche Nachricht-----
Von: Richard Cochran [mailto:***@gmail.com]
Gesendet: Mittwoch, 8. Januar 2014 09:37
An: Rohrer Hansjoerg
Cc: 'linuxptp-***@lists.sourceforge.net'
Betreff: Re: [Linuxptp-devel] incdefs.sh not working in crosscompile environments
Post by Rohrer Hansjoerg
Hello Richard
Yes, but my net_tstamp.h is in linux-3.x/include/linux. I have no /usr/include/linux.
You need to do

make headers_install

on your cross built kernel. That will install the exported kernel
headers into ${KBUILD_OUTPUT}/usr/include

Thanks,
R

Loading...