public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included?
@ 2006-04-20  8:59 陈敏
  2006-04-20 10:05 ` Ganesh Ramachandran
  2006-04-20 22:09 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: 陈敏 @ 2006-04-20  8:59 UTC (permalink / raw)
  To: u-boot

Hello guys

I'm a beginner at u-boot porting and have a question about how can a file in directory "u-boot-1.1.4\include\configs", say pxa255_idp.h, be included in the whole project? I just can not find any code line like "#include <pxa255_idp.h>". The question is easy for non-beginners but hard for me. Any advice is appreciated.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included?
  2006-04-20  8:59 [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included? 陈敏
@ 2006-04-20 10:05 ` Ganesh Ramachandran
  2006-04-20 22:09 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Ganesh Ramachandran @ 2006-04-20 10:05 UTC (permalink / raw)
  To: u-boot

>I'm a beginner at u-boot porting and have a question about how can a file
in directory "u-boot-1.1.4\include\configs", say pxa255_idp.h, be
>included in the whole project? I just can not find any code line like
"#include <pxa255_idp.h>". The question is easy for non-beginners but >hard
for me. Any advice is appreciated.

Those files are being included through the make file. See the Makefile under
appropriate configuration section.

Thanks & Regards,

Ganesh Ramachandran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060420/53fa051d/attachment.htm 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included?
  2006-04-20  8:59 [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included? 陈敏
  2006-04-20 10:05 ` Ganesh Ramachandran
@ 2006-04-20 22:09 ` Wolfgang Denk
  2006-04-21 12:02   ` Jerry Van Baren
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2006-04-20 22:09 UTC (permalink / raw)
  To: u-boot

In message <200604200844.k3K8i3wk016937@scut.edu.cn> you wrote:
> 
> I'm a beginner at u-boot porting and have a question about how can
> a file in directory "u-boot-1.1.4\include\configs", say pxa255_idp.h,

There is no such file.  Both  '\i'  and  '\c'  are  undefined  escape
sequences in the C programming language.

> be included in the whole project? I just can not find any code line
> like "#include <pxa255_idp.h>". The question is
> easy for non-beginners but hard for me. Any advice is appreciated.

You just include <config.h> - this takes care of all you need.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I'd like to meet the man who invented sex and see what  he's  working
on now.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included?
  2006-04-20 22:09 ` Wolfgang Denk
@ 2006-04-21 12:02   ` Jerry Van Baren
  0 siblings, 0 replies; 4+ messages in thread
From: Jerry Van Baren @ 2006-04-21 12:02 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> In message <200604200844.k3K8i3wk016937@scut.edu.cn> you wrote:
>> I'm a beginner at u-boot porting and have a question about how can
>> a file in directory "u-boot-1.1.4\include\configs", say pxa255_idp.h,
> 
> There is no such file.  Both  '\i'  and  '\c'  are  undefined  escape
> sequences in the C programming language.

Hi Wolfgang,

The context here could be either cpp or shell.  Backslash \ is a valid 
escape in all shells that are worthy of being used at denx.de (I forgot 
if you prefer bash or csh).  Either way, your statement is still 
correct, there is no file "u-boot-1.1.4includeconfigs" (or 
"u-boot-1.1.4includeconfigspxa255_idp.h" to extrapolate the question).

$ ls -l u-boot-1.1.4\include\configs\pxa255_idp.h
/bin/ls: u-boot-1.1.4includeconfigspxa255_idp.h: No such file or directory

$ touch u-boot-1.1.4\include\configs\pxa255_idp.h

$ ls u-boot-1.1.4\include\configs\pxa255_idp.h
u-boot-1.1.4includeconfigspxa255_idp.h

$ cat x.c
/*
  * Test escaping in the C compiler
  */
#include "u-boot-1.1.4\include\configs\pxa255_idp.h"

int main(int argc, char *argv[])
{
         return(0);
}

$ make x
cc     x.c   -o x
x.c:4:53: u-boot-1.1.4\include\configs\pxa255_idp.h: No such file or 
directory
make: *** [x] Error 1

Geek humor.  I gotta get a life! ;-)
gvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-21 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20  8:59 [U-Boot-Users] How can a file in directory "u-boot-1.1.4\include\configs" be included? 陈敏
2006-04-20 10:05 ` Ganesh Ramachandran
2006-04-20 22:09 ` Wolfgang Denk
2006-04-21 12:02   ` Jerry Van Baren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox