Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] problem to configure to make helloworld program and helloworld module be compiled and added to the tartget with a local external source
@ 2013-11-18 16:00 Nils Koehler
  2013-11-19  8:26 ` Arnout Vandecappelle
  0 siblings, 1 reply; 12+ messages in thread
From: Nils Koehler @ 2013-11-18 16:00 UTC (permalink / raw)
  To: buildroot

Hi,

 

I have goggled a lot the last three days to find out how to implement a own
program and device driver, which is compiled and added to the target due
buildroot make command, but I did not had success to solve it.

 

Actually my problems is that:

 

HELLOWORLD_SOURCE_DIR = /home/koehler/Desktop/Kernel/ldt/

seems not to be computed.

 

In helloworld.c I have added a typo to force an error message if buildroot
try to compile helloworld.c but until now I did not see it

 

 

I found hints at:

http://buildroot.uclibc.org/downloads/manual/manual.html#customize-store-pac
kage-config

 

And openWRT:

http://www.ccs.neu.edu/home/noubir/Courses/CS6710/S12/material/OpenWrt_Dev_T
utorial.pdf

 

but the used Keywords are very different and no of the approaches helped me
right now.

So I think I need some help from outside...

 

The outgoing situation is I have a helloworld.c program and a Hello world
module. 

Located in /home/koehler/ldt/

 

I can compile them from outside buildroot for Kernel 3.10.17 

 

To be able to make it cinfigurable I have added in
/buildroot-2013.08/package/Config.in     :

 

menu "Hardware handling"

menu "Misc devices firmwares"

source "package/helloworld/Config.in"

endmenu

 

And in /buildroot-2013.08/package/helloworld/Config.in     :

config BR2_PACKAGE_HELLOWORLD

        bool "helloworld"

        help

    This is a comment that explains what libfoo is.

 

 

This is the in /buildroot-2013.08/package/helloworld/heloworld.mk     

Based on the example of builroot manual:

 

############################################################################
####

#

# helloworld

#

############################################################################
####

 

HELLOWORLD_VERSION = 1.0

HELLOWORLD_SOURCE_DIR = /home/koehler/Desktop/Kernel/ldt/

#HELLOWORLD_SITE = http://www.foosoftware.org/download

HELLOWORLD_LICENSE = GPLv3+

HELLOWORLD_LICENSE_FILES = COPYING

HELLOWORLD_INSTALL_STAGING = YES

#HELLOWORLD_CONFIG_SCRIPTS = helloworld-config

#HELLOWORLD_DEPENDENCIES = host-libaaa libbbb

 

define HELLOWORLD_BUILD_CMDS

    $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

endef

 

define HELLOWORLD_INSTALL_STAGING_CMDS

#    $(INSTALL) -D -m 0755 $(@D)/helloworld.a
$(STAGING_DIR)/usr/lib/helloworld.a

#    $(INSTALL) -D -m 0644 $(@D)/foo.h $(STAGING_DIR)/usr/include/foo.h

#    $(INSTALL) -D -m 0755 $(@D)/helloworld.so* $(STAGING_DIR)/usr/lib

endef

 

define HELLOWORLD_INSTALL_TARGET_CMDS

#    $(INSTALL) -D -m 0755 $(@D)/helloworld.so* $(TARGET_DIR)/usr/lib

#    $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/foo.d

endef

 

define HELLOWORLD_DEVICES

#    /dev/foo  c  666  0  0  42  0  -  -  -

endef

 

define HELLOWORLD_PERMISSIONS

#    /bin/foo  f  4755  0  0  -  -  -  -  -

endef

 

define HELLOWORLD_USERS

#    foo -1 helloworld -1 * - - - LibFoo daemon

endef

 

$(eval $(generic-package))

 

 

 

 

 

Regards

 

Nils

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131118/693dd02b/attachment-0001.html>

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

end of thread, other threads:[~2013-11-20  8:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-18 16:00 [Buildroot] problem to configure to make helloworld program and helloworld module be compiled and added to the tartget with a local external source Nils Koehler
2013-11-19  8:26 ` Arnout Vandecappelle
2013-11-19 14:01   ` Nils Koehler
2013-11-19 14:29     ` Thomas Petazzoni
2013-11-19 16:59       ` Nils Koehler
2013-11-19 17:05         ` Thomas Petazzoni
2013-11-19 17:56           ` Nils Koehler
2013-11-19 22:17         ` Arnout Vandecappelle
2013-11-19 22:30           ` Yann E. MORIN
2013-11-19 22:33             ` Arnout Vandecappelle
2013-11-20  8:32           ` Nils Koehler
2013-11-19 22:03     ` Arnout Vandecappelle

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