* [Buildroot] Makefile for user applications
@ 2010-11-11 11:18 Abhishek Ashtekar
2010-11-23 22:39 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Abhishek Ashtekar @ 2010-11-11 11:18 UTC (permalink / raw)
To: buildroot
Hello,
I would like to add a precompiled/built application to the Linux 2.6.34.1 running on the at91sam9260ek board.
I have done the following steps
i) Add to /package /package/myapp
ii) introduce Config.in and myapp.mk and the application binary to the folder
iii) added "source /package/ myapp/ Config.in" line to the /package/Config.in and also select it through menuconfig
Questions:-
Actually I just want the makefile to copy the binary from the package to /targert/usr/bin
However it goes to download myapp 1.0 Downloading ....... To a sourceforge.net link and stops.
What exactly do I need to mention in the make file ?
Pasted below ....
#############################################################
#
# myapp
#
#############################################################
MYAPP_VERSION = 1.0
MYAPP _BINARY = myapp
MYAPP _TARGET_BINARY =usr/bin/myapp
MYAPP_INSTALL_TARGET = YES
define MYAPP_INSTALL_TARGET_CMDS
$(INSTALL) -D package/myapp/myapp $(TARGET_DIR)/usr/bin/
endef
define MYAPP_CLEAN_CMDS
$(MAKE) -C $(@D) clean
rm -f $(TARGET_DIR)/usr/bin
endef
$(eval $(call GENTARGETS,package,myapp))
#############################################################
Thanks a lot.
Regards,
Abhi
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 5609 (20101111) __________
E-Mail wurde gepr?ft mit ESET NOD32 Antivirus.
http://www.eset.com
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 5610 (20101111) __________
E-Mail wurde gepr?ft mit ESET NOD32 Antivirus.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101111/a0df8aa0/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] Makefile for user applications
2010-11-11 11:18 [Buildroot] Makefile for user applications Abhishek Ashtekar
@ 2010-11-23 22:39 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-11-23 22:39 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 11 Nov 2010 12:18:39 +0100
Abhishek Ashtekar <Abhishek.Ashtekar@ubitronix.com> wrote:
> Actually I just want the makefile to copy the binary from the package to /targert/usr/bin
>
> However it goes to download myapp 1.0 Downloading ....... To a sourceforge.net link and stops.
Yes, both the GENTARGETS and AUTOTARGETS infrastructure always download
the package source code if it's not already in the cache.
If you want a package that just copies a single tarball, you have to
make a manual Makefile.
Something like:
===================================================================
$(TARGET_DIR)/usr/bin/myapp: /somewhere/myapp
install -m 755 $^ $@
myapp: $(TARGET_DIR)/usr/bin/myapp
ifeq ($(BR2_PACKAGE_MYAPP),y)
TARGETS+=myapp
endif
===================================================================
We might extend the package infrastructure in the future to support
this kind of thing.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-23 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 11:18 [Buildroot] Makefile for user applications Abhishek Ashtekar
2010-11-23 22:39 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox