All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem compiling local code
@ 2013-07-19  4:11 Ryan Wilkins
  2013-07-19  5:29 ` Thomas De Schampheleire
  0 siblings, 1 reply; 8+ messages in thread
From: Ryan Wilkins @ 2013-07-19  4:11 UTC (permalink / raw)
  To: buildroot

Hello,

I'm having an issue that I can't quite seem to figure out.  The problem I'm having is that I'm trying to add a custom package for buildroot to compile and add to a finished image.  It was simple to get the selection box show up for my sample project in menuconfig, but buildroot never seems to compile my code and install it.  I created a simple program, a hello world kind of thing, including a Makefile.  The program compiles and runs properly if I run "make" manually from the directory and run the executable.  I've created the Config.in and .mk files according to the buildroot documentation online or so I think.

My environment is a x86_64 host cross compiling for x86.  Buildroot is 2013.05.  Toolchain is Sourcery CodeBench 2012.09.  Everything else in buildroot appears to build properly as I've had the produced image loaded and running on the target device and it works fine.  It just lacks my simple program

I'm guessing the issue is with my hello.mk so below is that file.  Can anyone point me in a direction of what I might be doing wrong?

Thanks much!

Ryan Wilkins



#####
#
# hello test program
#
#####

HELLO_VERSION = 0.1
HELLO_SOURCE = hello-$(HELLO_VERSION).tar.gz
HELLO_SITE = /vm/omnia/src/hello/
HELLO_SITE_METHOD = file
#HELLO_LICENSE = Proprietary
#HELLO_LICENSE_FILES =
#HELLO_INSTALL_STAGING =
#HELLO_CONFIG_SCRIPTS =
#HELLO_DEPENDENCIES =

define HELLO_BUILD_CMDS
	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) hello
endef

define HELLO_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 $(@D)/hello $(TARGET_DIR)/usr/bin
endef

$(eval $(generic-package))

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

end of thread, other threads:[~2013-07-23 20:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19  4:11 [Buildroot] Problem compiling local code Ryan Wilkins
2013-07-19  5:29 ` Thomas De Schampheleire
2013-07-22 20:14   ` Ryan Wilkins
2013-07-22 20:38     ` Ryan Wilkins
2013-07-23  7:19       ` Thomas De Schampheleire
2013-07-23  7:27         ` Samuel Martin
2013-07-23 13:07           ` Thomas De Schampheleire
2013-07-23 20:43           ` Ryan Wilkins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.