2008-11-23 12:03:16 add a user written application to the uClinux memory image
dee lock (SINGAPORE)
Message: 65727
Hi.
Is it possible to direct the uclinux memory image makefile to a user application makefile that is stored in a subdirectory of the user application source tree? i.e.
dir_$(CONFIG_USER_MYPROG_MYPROG_SRC) += myprog
BACKGROUND
My application is now running well on the blackfin target board. I want to add it to the uclinux memory image. My project files are organised in this way:
myproject/src
myproject/bin
myproject/obj
etc.
myproject makefile (stored in user/myproject/src ) refers to several project subdirectories via relative links. I.e.
VPATH = ../obj
Therefore I would like the uclinux memory image makefile to 1) locate my project makefile in /user/myproject/src/, and 2) locate the resulting binary in /user/myproject/bin/ .
any ideas?
-dee
QuoteReplyEditDelete
2008-11-23 12:22:16 Re: add a user written application to the uClinux memory image
Mike Frysinger (UNITED STATES)
Message: 65728
the process is documented here:
http://docs.blackfin.uclinux.org/doku.php?id=adding_user_applications
QuoteReplyEditDelete
2008-11-23 20:41:11 Re: add a user written application to the uClinux memory image
dee lock (SINGAPORE)
Message: 65732
hi.
i followed the process in that document, but uclinux image make failed to locate my program's makefile which is stored in /user/myprogram/src/ .
uclinux make can locate myprogram's make if it is in /user/myprogram/
Appreciate if you can advise how to direct uclinux make to locate user/myprogram/src/makefile, and the resulting binary in user/myprogram/bin/mybinary
otherwise i will have to rewrite my makefile which is not good as a other people use it.
cheers,
-dee
QuoteReplyEditDelete
2008-11-23 21:46:54 Re: add a user written application to the uClinux memory image
Jim Donelson (UNITED STATES)
Message: 65733
Don't know if it will work, but did you try:
dir_$(CONFIG_USER_MYPROG_MYPROG_SRC) += myprogram/src
QuoteReplyEditDelete
2008-11-24 02:57:27 Re: add a user written application to the uClinux memory image
Mike Frysinger (UNITED STATES)
Message: 65740
the document provided already shows how to hook into the uClinux dist build system and recurse into arbitrary directories. it also shows you the targets you must implement (all, clean, romfs) in order for things to install properly.
if you're getting an error, post the exact output.