- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i want to add hello_world to uclinux,
the code is: # include <stdio.h> main() {char *str="Hello world !"; printf("%s\n",str); exit(0); i have 3 problems: 1.how to write makefile,can you give me the whole code?? 2.when i creat maketarget,there has a blanket(build target), what content should i fill in? 3.after build the application,how to upload the application to the linux? thanks!!!Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just a partial reply, but you'll want your Makefile to look something like (I'm assuming that you're using the eclipse IDE, and that you set up a project for this):
-------- include Settings.mak include Rules.mak OBJS = yourfile1.o yourfile2.o etc.o all: yourprogram.exe yourprogram.bin: $(OBJS) -------- (not including the dashes, obviously) then build the project and copy the yourprogram.exe file into /bin in the filesystem project, then build it and upload it. Not a complete response, but I hope that this helps. Chris Lansdown Solar Technology Inc.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it's great!! thank you!! clansdown http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a quicker way uploading an application to the board? Putting the exe file into the fs project and uploading takes a while. Thanks in advance for ur help.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page