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

* [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 [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
  0 siblings, 1 reply; 12+ messages in thread
From: Arnout Vandecappelle @ 2013-11-19  8:26 UTC (permalink / raw)
  To: buildroot

On 18/11/13 17:00, Nils Koehler wrote:
> 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/

  Where did you get this variable from? We don't use SOURCE_DIR.

>
> 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

  Buildroot doesn't check if you change anything in the source code. You 
have to explicitly force a rebuild with

make helloworld-rebuild all


>
> I found hints at:
>
> http://buildroot.uclibc.org/downloads/manual/manual.html#customize-store-package-config

  Hm, that section doesn't say anything about adding packages to 
buildroot. You should refer to 
http://buildroot.net/downloads/manual/manual.html#_the_literal_mk_literal_file

>
> And openWRT:
>
> http://www.ccs.neu.edu/home/noubir/Courses/CS6710/S12/material/OpenWrt_Dev_Tutorial.pdf

  OpenWRT is a different project, that forked from buildroot many years 
ago. There are a few similarities, but the OpenWRT documentation is 
useless for buildroot questions and vice versa.

>
> 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/

  Err, you refer to /home/koehler/Desktop/Kernel/ldt/ in your 
helloworld.mk file...

>
> 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 looks good.


>
> 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

  This should be

HELLOWORLD_SITE = /home/koehler/Desktop/Kernel/ldt/
HELLOWORLD_SITE_METHOD = local


  Regards,
  Arnout

>
> 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
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [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-19  8:26 ` Arnout Vandecappelle
@ 2013-11-19 14:01   ` Nils Koehler
  2013-11-19 14:29     ` Thomas Petazzoni
  2013-11-19 22:03     ` Arnout Vandecappelle
  0 siblings, 2 replies; 12+ messages in thread
From: Nils Koehler @ 2013-11-19 14:01 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/
> 
>   Where did you get this variable from? We don't use SOURCE_DIR.

mhh... I think, I mixed up some things, I have no idea where I did found it.
I have changed now to the right keywords thank you...

But after...
make helloworld-rebuild all

It is compiling and I can see that the compiled code is updated and present
in the directory /buildroot-2013.08/Build/helloworld-1.0/ 
So far so fine, but it is missing in the /buildroot-2013.08/target/bin/
directory. 

What may be the problem right now?
This is my actual .mk file: 

HELLOWORLD_VERSION = 1.0
HELLOWORLD_SITE = /home/koehler/Desktop/Kernel/helloworld-1.0/
HELLOWORLD_SITE_METHOD = local
HELLOWORLD_LICENSE = GPLv3+
HELLOWORLD_INSTALL_TARGET = YES

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

define HELLOWORLD_INSTALL_TARGET_CMDS
    $(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin
endef

define HELLOWORLD_DEVICES
    /dev/ldt  c  666  0  0  42  0  -  -  -
endef

define HELLOWORLD_PERMISSIONS
    /bin/helloworld  f  4755  0  0  -  -  -  -  -
endef


#$(eval $(generic-package))

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

* [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-19 14:01   ` Nils Koehler
@ 2013-11-19 14:29     ` Thomas Petazzoni
  2013-11-19 16:59       ` Nils Koehler
  2013-11-19 22:03     ` Arnout Vandecappelle
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2013-11-19 14:29 UTC (permalink / raw)
  To: buildroot

Dear Nils Koehler,

On Tue, 19 Nov 2013 15:01:30 +0100, Nils Koehler wrote:

> It is compiling and I can see that the compiled code is updated and present
> in the directory /buildroot-2013.08/Build/helloworld-1.0/ 

There is no such thing as a /Build/ directory in Buildroot. Maybe
you're talking about output/build/helloworld-1.0/, right?

Please be *precise* in the paths you give. Even a single character
difference... makes a complete difference.

> So far so fine, but it is missing in the /buildroot-2013.08/target/bin/
> directory. 

Are you talking about output/target/bin/ instead?

> What may be the problem right now?
> This is my actual .mk file: 
> 
> HELLOWORLD_VERSION = 1.0
> HELLOWORLD_SITE = /home/koehler/Desktop/Kernel/helloworld-1.0/
> HELLOWORLD_SITE_METHOD = local
> HELLOWORLD_LICENSE = GPLv3+
> HELLOWORLD_INSTALL_TARGET = YES

This last line is not needed, that's the default;

> 
> define HELLOWORLD_BUILD_CMDS
>     $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
> endef
> 
> define HELLOWORLD_INSTALL_TARGET_CMDS
>     $(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin
> endef

It should be:

	$(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin/helloworld

If it still doesn't work, please post the file named "build.log" after
executing:

make helloworld-rebuild 2>&1 | tee build.log

> define HELLOWORLD_PERMISSIONS
>     /bin/helloworld  f  4755  0  0  -  -  -  -  -
> endef

Unless your binary needs to be setuid root, this part is not needed.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [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-19 14:29     ` Thomas Petazzoni
@ 2013-11-19 16:59       ` Nils Koehler
  2013-11-19 17:05         ` Thomas Petazzoni
  2013-11-19 22:17         ` Arnout Vandecappelle
  0 siblings, 2 replies; 12+ messages in thread
From: Nils Koehler @ 2013-11-19 16:59 UTC (permalink / raw)
  To: buildroot



> -----Urspr?ngliche Nachricht-----
> Von: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
> Gesendet: Dienstag, 19. November 2013 15:29
> An: Nils Koehler
> Cc: 'Arnout Vandecappelle'; buildroot at busybox.net
> Betreff: Re: [Buildroot] problem to configure to make helloworld program
> and helloworld module be compiled and added to the tartget with a local
> external source
> 
> Dear Nils Koehler,
> 
> On Tue, 19 Nov 2013 15:01:30 +0100, Nils Koehler wrote:
> 
> > It is compiling and I can see that the compiled code is updated and
> present
> > in the directory /buildroot-2013.08/Build/helloworld-1.0/
> 
> There is no such thing as a /Build/ directory in Buildroot. Maybe
> you're talking about output/build/helloworld-1.0/, right?


...sorry yes... /buildroot-2013.08/output/Build/helloworld-1.0/

> 
> Please be *precise* in the paths you give. Even a single character
> difference... makes a complete difference.
> 
> > So far so fine, but it is missing in the /buildroot-2013.08/target/bin/
> > directory.
> 
> Are you talking about /buildroot-2013.08/output/target/bin/ instead?
...sorry yes... /buildroot-2013.08/output/target/bin/

> 
> > What may be the problem right now?
> > This is my actual .mk file:
> >
> > HELLOWORLD_VERSION = 1.0
> > HELLOWORLD_SITE = /home/koehler/Desktop/Kernel/helloworld-1.0/
> > HELLOWORLD_SITE_METHOD = local
> > HELLOWORLD_LICENSE = GPLv3+
> > HELLOWORLD_INSTALL_TARGET = YES
> 
> This last line is not needed, that's the default;
> 
> >
> > define HELLOWORLD_BUILD_CMDS
> >     $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
> > endef
> >
> > define HELLOWORLD_INSTALL_TARGET_CMDS
> >     $(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin
> > endef
> 
> It should be:
> 
> 	$(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin/helloworld


After that change helloworld is still not available in
/buildroot-2013.08/output/target/bin/

> If it still doesn't work, please post the file named "build.log" after
> executing:
> 
> make helloworld-rebuild 2>&1 | tee build.log


I have attached the build.log file

I saw that inside:
/home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers
/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_users_table.txt
/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target >>
/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
/home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
Zeile 363: [: helloworld: Ganzzahliger Ausdruck erwartet.
/home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
Zeile 370: [: helloworld: Ganzzahliger Ausdruck erwartet.
/home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
Zeile 394: [: foo: Ganzzahliger Ausdruck erwartet.
/home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
Zeile 402: [: foo: Ganzzahliger Ausdruck erwartet.

There seems something to be in some old format...???
Could that be the issue?


> 
> > define HELLOWORLD_PERMISSIONS
> >     /bin/helloworld  f  4755  0  0  -  -  -  -  -
> > endef
> 
> Unless your binary needs to be setuid root, this part is not needed.
> 
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 29049 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131119/38795e17/attachment-0001.obj>

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

* [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-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
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2013-11-19 17:05 UTC (permalink / raw)
  To: buildroot

Dear Nils Koehler,

On Tue, 19 Nov 2013 17:59:47 +0100, Nils Koehler wrote:

> > There is no such thing as a /Build/ directory in Buildroot. Maybe
> > you're talking about output/build/helloworld-1.0/, right?
> 
> ...sorry yes... /buildroot-2013.08/output/Build/helloworld-1.0/

Sorry, this still doesn't exist. I know I'm nitpicking, but
output/Build and output/build are two different things. output/Build
doesn't exist, while output/build does exist. May I suggest you to
copy/paste file paths instead of manually re-writing them and adding
mistakes in them?

See what I was saying earlier:

> > Please be *precise* in the paths you give. Even a single character
> > difference... makes a complete difference.


> > It should be:
> > 
> > 	$(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin/helloworld
> 
> 
> After that change helloworld is still not available in
> /buildroot-2013.08/output/target/bin/

Hum, strange.

> > If it still doesn't work, please post the file named "build.log" after
> > executing:
> > 
> > make helloworld-rebuild 2>&1 | tee build.log
> 
> I have attached the build.log file
> 
> I saw that inside:
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_users_table.txt
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target >>
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 363: [: helloworld: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 370: [: helloworld: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 394: [: foo: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 402: [: foo: Ganzzahliger Ausdruck erwartet.

That's in German, and I unfortunately don't read German. Please run your
build with "LANG=C make ..." so that we get error messages in english.

Moreover, this is not the useful part of the build log. Please run:

  make helloworld-rebuild 2>&1 | tee build.log

Then paste the *entire* output to http://code.bulix.org, and then send
us the URL at which it was posted.

Also, please post on http://code.bulix.org your entire .mk file, and
give us the URL at which it was posted.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [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-19 17:05         ` Thomas Petazzoni
@ 2013-11-19 17:56           ` Nils Koehler
  0 siblings, 0 replies; 12+ messages in thread
From: Nils Koehler @ 2013-11-19 17:56 UTC (permalink / raw)
  To: buildroot



> -----Urspr?ngliche Nachricht-----
> Von: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
> Gesendet: Dienstag, 19. November 2013 18:06
> An: Nils Koehler
> Cc: buildroot at busybox.net
> Betreff: Re: [Buildroot] problem to configure to make helloworld program
> and helloworld module be compiled and added to the tartget with a local
> external source
> 
> Dear Nils Koehler,
> 
> On Tue, 19 Nov 2013 17:59:47 +0100, Nils Koehler wrote:
> 
> > > There is no such thing as a /Build/ directory in Buildroot. Maybe
> > > you're talking about output/build/helloworld-1.0/, right?
> >
> > ...sorry yes... /buildroot-2013.08/output/Build/helloworld-1.0/


...sorry...sorry yes... /buildroot-2013.08/output/build/helloworld-1.0/


> 
> Sorry, this still doesn't exist. I know I'm nitpicking, but
> output/Build and output/build are two different things. output/Build
> doesn't exist, while output/build does exist. May I suggest you to
> copy/paste file paths instead of manually re-writing them and adding
> mistakes in them?
> 
> See what I was saying earlier:
> 
> > > Please be *precise* in the paths you give. Even a single character
> > > difference... makes a complete difference.
> 
> 
> > > It should be:
> > >
> > > 	$(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin/helloworld
> >
> >
> > After that change helloworld is still not available in
> > /buildroot-2013.08/output/target/bin/
> 
> Hum, strange.
> 
> > > If it still doesn't work, please post the file named "build.log" after
> > > executing:
> > >
> > > make helloworld-rebuild 2>&1 | tee build.log
> >
> > I have attached the build.log file
> >
> > I saw that inside:
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers
> > /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_users_table.txt
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target >>
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> > Zeile 363: [: helloworld: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> > Zeile 370: [: helloworld: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> > Zeile 394: [: foo: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> > Zeile 402: [: foo: Ganzzahliger Ausdruck erwartet.
> 
> That's in German, and I unfortunately don't read German. Please run your
> build with "LANG=C make ..." so that we get error messages in english.

Done...

> 
> Moreover, this is not the useful part of the build log. Please run:
> 
>   make helloworld-rebuild 2>&1 | tee build.log
> 
> Then paste the *entire* output to http://code.bulix.org, and then send
> us the URL at which it was posted.
> 
> Also, please post on http://code.bulix.org your entire .mk file, and
> give us the URL at which it was posted.

The website http://code.bulix.org  seems to have a problem:

Error: Antispam verification failed.

I will try again later to fetch an url. 

> 
> Thanks!
> 
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

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

* [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-19 14:01   ` Nils Koehler
  2013-11-19 14:29     ` Thomas Petazzoni
@ 2013-11-19 22:03     ` Arnout Vandecappelle
  1 sibling, 0 replies; 12+ messages in thread
From: Arnout Vandecappelle @ 2013-11-19 22:03 UTC (permalink / raw)
  To: buildroot

On 19/11/13 15:01, Nils Koehler wrote:
>
>>> 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/
>>
>>    Where did you get this variable from? We don't use SOURCE_DIR.
>
> mhh... I think, I mixed up some things, I have no idea where I did found it.
> I have changed now to the right keywords thank you...
>
> But after...
> make helloworld-rebuild all
>
> It is compiling and I can see that the compiled code is updated and present
> in the directory /buildroot-2013.08/Build/helloworld-1.0/
> So far so fine, but it is missing in the /buildroot-2013.08/target/bin/
> directory.
>
> What may be the problem right now?
> This is my actual .mk file:
>
> HELLOWORLD_VERSION = 1.0
> HELLOWORLD_SITE = /home/koehler/Desktop/Kernel/helloworld-1.0/
> HELLOWORLD_SITE_METHOD = local
> HELLOWORLD_LICENSE = GPLv3+
> HELLOWORLD_INSTALL_TARGET = YES
>
> define HELLOWORLD_BUILD_CMDS
>      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
> endef
>
> define HELLOWORLD_INSTALL_TARGET_CMDS
>      $(INSTALL) -D -m 0755 $(@D)/helloworld $(TARGET_DIR)/bin
> endef
>
> define HELLOWORLD_DEVICES
>      /dev/ldt  c  666  0  0  42  0  -  -  -
> endef
>
> define HELLOWORLD_PERMISSIONS
>      /bin/helloworld  f  4755  0  0  -  -  -  -  -
> endef
>
>
> #$(eval $(generic-package))

  Do you really have this line commented out? Without it, there will be 
no helloworld package, so 'make helloworld-dirclean' would give an error...


  Regards,
  Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [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-19 16:59       ` Nils Koehler
  2013-11-19 17:05         ` Thomas Petazzoni
@ 2013-11-19 22:17         ` Arnout Vandecappelle
  2013-11-19 22:30           ` Yann E. MORIN
  2013-11-20  8:32           ` Nils Koehler
  1 sibling, 2 replies; 12+ messages in thread
From: Arnout Vandecappelle @ 2013-11-19 22:17 UTC (permalink / raw)
  To: buildroot

On 19/11/13 17:59, Nils Koehler wrote:
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_rsynced
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_built
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_staging_installed
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_target_installed
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_images_installed
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/.stamp_host_installed
> ^[[7m>>> helloworld 1.0 Syncing from source dir /home/koehler/Desktop/Kernel/helloworld-1.0/^[[27m
> rsync -au --cvs-exclude --include core /home/koehler/Desktop/Kernel/helloworld-1.0// /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0
> ^[[7m>>> helloworld 1.0 Building^[[27m
> /usr/bin/make -j2 CC="/home/koehler/Desktop/Kernel/buildroot-2013.08/output/host/usr/bin/i586-buildroot-linux-uclibc-gcc" LD="/home/koehler/Desktop/Kernel/buildroot-2013.08/output/host/usr/bin/i586-buildroot-linux-uclibc-ld" -C /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0 all
> make[1]: Betrete Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0'

  Looks like your helloworld package is indeed built.

> /usr/bin/make -C /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/linux-3.10.17 M=$PWD modules
> make[2]: Betrete Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/linux-3.10.17'
>    Building modules, stage 2.
>    MODPOST 2 modules
> WARNING: "apic" [/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/misc_loop_drv.ko] undefined!
> make[2]: Verlasse Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/linux-3.10.17'
> make[1]: Verlasse Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0'
> ^[[7m>>> helloworld 1.0 Installing to target^[[27m
> #    /usr/bin/install -D -m 0755 /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0/helloworld.so* /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/usr/lib
> #    /usr/bin/install -d -m 0755 /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/etc/foo.d

  This is not at all consistent with the helloworld.mk file you posted 
earlier... It looks like somewhere, you have HELLOWORLD_TARGET_CMDS is 
defined as two install commands that are commented out...

  Anyway, if you're building a module, you probably want the install 
commands to be

$(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) M=$(@D) modules_install


[snip]
> ^[[7m>>>   Generating root filesystem image rootfs.cpio^[[27m
> if [ ! -e /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/init ]; then ln -sf sbin/init /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/init; fi
> rm -f/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> rm -f /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
> echo "chown -R 0:0/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target" >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> cat system/device_table.txt system/device_table_dev.txt >/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_device_table.txt
> printf '\n \n \n \n #/dev/foo  c  666  0  0  42  0  -  -  -\n \n \n' >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_device_table.txt
> printf '/bin/busybox			 f 4755	0 0 - - - - -\n/usr/share/udhcpc/default.script f 755  0 0 - - - - -\n \n \n \n #    /bin/foo  f  4755  0  0  -  -  -  -  -\n \n \n' >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_device_table.txt

  This is pretty fishy... the commented-out /dev/foo and /bin/foo 
definitions are completely different from what you posted earlier. Maybe 
another hint that you have another file that defines HELLOWORLD_DEVICES 
and HELLOWORLD_PERMISSIONS?

> echo "/home/koehler/Desktop/Kernel/buildroot-2013.08/output/host/usr/bin/makedevs -d/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_device_table.txt /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target" >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> printf '\n \n \n \n #    foo -1 helloworld -1 * - - - LibFoo daemon\n \n \n' >/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_users_table.txt

  The <PKG>_USERS definition doesn't support comments, that's why you get 
those errors below. Just remove the HELLOWORLD_USERS definition 
completely if you don't need it.


  Regards,
  Arnout

> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_users_table.txt /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers: Zeile 363: [: helloworld: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers: Zeile 370: [: helloworld: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers: Zeile 394: [: foo: Ganzzahliger Ausdruck erwartet.
> /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers: Zeile 402: [: foo: Ganzzahliger Ausdruck erwartet.
> echo "	cd/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target && find . | cpio --quiet -o -H newc > /home/koehler/Desktop/Kernel/buildroot-2013.08/output/images/rootfs.cpio" >> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> chmod a+x/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/host/usr/bin/fakeroot -- /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> rootdir=/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target
> table='/home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_device_table.txt'
> cp support/misc/target-dir-warning.txt /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
[snip]


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [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-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
  1 sibling, 1 reply; 12+ messages in thread
From: Yann E. MORIN @ 2013-11-19 22:30 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2013-11-19 23:17 +0100, Arnout Vandecappelle spake thusly:
>  The <PKG>_USERS definition doesn't support comments,

Yes, it does. Whatever comes as field #9 and after is treated as the
comment. See:
    http://buildroot.net/downloads/manual/manual.html#makeuser-syntax

But granted, without the *real* helloworld.mk and the *real* Config.in
(as Thomas has asked for), we can't do much to help... :-(

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [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-19 22:30           ` Yann E. MORIN
@ 2013-11-19 22:33             ` Arnout Vandecappelle
  0 siblings, 0 replies; 12+ messages in thread
From: Arnout Vandecappelle @ 2013-11-19 22:33 UTC (permalink / raw)
  To: buildroot

On 19/11/13 23:30, Yann E. MORIN wrote:
> Arnout, All,
>
> On 2013-11-19 23:17 +0100, Arnout Vandecappelle spake thusly:
>>   The <PKG>_USERS definition doesn't support comments,
>
> Yes, it does. Whatever comes as field #9 and after is treated as the
> comment. See:
>      http://buildroot.net/downloads/manual/manual.html#makeuser-syntax

  With 'comments', I didn't mean the GECOS comment field, but I meant 
'commenting out' a line by putting # in front of it.

>
> But granted, without the *real* helloworld.mk and the *real* Config.in
> (as Thomas has asked for), we can't do much to help... :-(

  I suspect that the problem is that there is some other file which 
defines HELLOWORLD_* in a different way, so the real helloworld.mk 
wouldn't help much...

  Regards,
  Arnout

>
> Regards,
> Yann E. MORIN.
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [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-19 22:17         ` Arnout Vandecappelle
  2013-11-19 22:30           ` Yann E. MORIN
@ 2013-11-20  8:32           ` Nils Koehler
  1 sibling, 0 replies; 12+ messages in thread
From: Nils Koehler @ 2013-11-20  8:32 UTC (permalink / raw)
  To: buildroot


Thank you for the hints... 

I am very surprised that comments are not allowed in the .mk file, as the
Header itself start with # comment...

In the past I gambled with the template .mk file from buildroot manual as
starting point, and yes I uncommented the not needed sections, and modified
the others, but indeed I have deleted the comments and fully removed the
unused sections. 

But after your hint that there must be a real and a wrong .mk file

I tried to search for names I have used at my first approaches, because i
started with the real production name but after I ran into problems I have
switched over and renamed it to a helloworld version to keep it simple:

find /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/ -name *rld.mk

find /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/ -name ibt*.mk

I found two .mk files depending on helloworld, the old one still with the
comments inside the define section from my first approaches in: 
/home/koehler/Desktop/Kernel/buildroot-2013.08/package/ibt-switch-it

and the real one in:
/home/koehler/Desktop/Kernel/buildroot-2013.08/package/helloworld-1.0

Removing the old stuff solved the problem.

This is my actual helloworld.mk file:
http://pastxt.com/P/5VO3ES67TK


And the depending build.log for it:
http://pastxt.com/P/6K6WTP30NM


Many thanks to all involved...


> On 19/11/13 17:59, Nils Koehler wrote:
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_rsynced
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_built
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_staging_installed
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_target_installed
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_images_installed
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/.stamp_host_installed
> > ^[[7m>>> helloworld 1.0 Syncing from source dir
> /home/koehler/Desktop/Kernel/helloworld-1.0/^[[27m
> > rsync -au --cvs-exclude --include core
> /home/koehler/Desktop/Kernel/helloworld-1.0//
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0
> > ^[[7m>>> helloworld 1.0 Building^[[27m
> > /usr/bin/make -j2 CC="/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/host/usr/bin/i586-buildroot-linux-uclibc-gcc"
> LD="/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/host/usr/bin/i586-buildroot-linux-uclibc-ld" -C
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/helloworld-1.0
> all
> > make[1]: Betrete Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0'
> 
>   Looks like your helloworld package is indeed built.
> 
> > /usr/bin/make -C /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/linux-3.10.17 M=$PWD modules
> > make[2]: Betrete Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/linux-3.10.17'
> >    Building modules, stage 2.
> >    MODPOST 2 modules
> > WARNING: "apic" [/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/misc_loop_drv.ko] undefined!
> > make[2]: Verlasse Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/linux-3.10.17'
> > make[1]: Verlasse Verzeichnis '/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0'
> > ^[[7m>>> helloworld 1.0 Installing to target^[[27m
> > #    /usr/bin/install -D -m 0755 /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/helloworld-1.0/helloworld.so*
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/usr/lib
> > #    /usr/bin/install -d -m 0755 /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/target/etc/foo.d
> 
>   This is not at all consistent with the helloworld.mk file you posted
> earlier... It looks like somewhere, you have HELLOWORLD_TARGET_CMDS is
> defined as two install commands that are commented out...
> 
>   Anyway, if you're building a module, you probably want the install
> commands to be
> 
> $(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) M=$(@D) modules_install
> 
> 
> [snip]
> > ^[[7m>>>   Generating root filesystem image rootfs.cpio^[[27m
> > if [ ! -e /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/target/init ]; then ln -sf sbin/init
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target/init; fi
> > rm -f/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_fakeroot.fs
> > rm -f /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
> > echo "chown -R 0:0/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/target" >> /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_fakeroot.fs
> > cat system/device_table.txt system/device_table_dev.txt
> >/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_device_table.txt
> > printf '\n \n \n \n #/dev/foo  c  666  0  0  42  0  -  -  -\n \n \n' >>
> /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_device_table.txt
> > printf '/bin/busybox			 f 4755	0 0 - - - - -
> \n/usr/share/udhcpc/default.script f 755  0 0 - - - - -\n \n \n \n #
> /bin/foo  f  4755  0  0  -  -  -  -  -\n \n \n' >>
> /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_device_table.txt
> 
>   This is pretty fishy... the commented-out /dev/foo and /bin/foo
> definitions are completely different from what you posted earlier. Maybe
> another hint that you have another file that defines HELLOWORLD_DEVICES
> and HELLOWORLD_PERMISSIONS?
> 
> > echo "/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/host/usr/bin/makedevs -
> d/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_device_table.txt
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target" >>
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> > printf '\n \n \n \n #    foo -1 helloworld -1 * - - - LibFoo daemon\n \n
> \n' >/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_users_table.txt
> 
>   The <PKG>_USERS definition doesn't support comments, that's why you get
> those errors below. Just remove the HELLOWORLD_USERS definition
> completely if you don't need it.
> 
> 
>   Regards,
>   Arnout
> 
> > /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/support/scripts/mkusers/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_users_table.txt
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/target >>
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 363: [: helloworld: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 370: [: helloworld: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 394: [: foo: Ganzzahliger Ausdruck erwartet.
> > /home/koehler/Desktop/Kernel/buildroot-2013.08/support/scripts/mkusers:
> Zeile 402: [: foo: Ganzzahliger Ausdruck erwartet.
> > echo "
cd/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target
> && find . | cpio --quiet -o -H newc >
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/images/rootfs.cpio"
> >> /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_fakeroot.fs
> > chmod a+x/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_fakeroot.fs
> > /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/host/usr/bin/fakeroot --
> /home/koehler/Desktop/Kernel/buildroot-2013.08/output/build/_fakeroot.fs
> > rootdir=/home/koehler/Desktop/Kernel/buildroot-2013.08/output/target
> > table='/home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/build/_device_table.txt'
> > cp support/misc/target-dir-warning.txt
> /home/koehler/Desktop/Kernel/buildroot-
> 2013.08/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
> [snip]
> 
> 
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ 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