* [Buildroot] Make problems
@ 2007-01-25 9:15 Kleegrewe, Christian
2007-01-25 10:55 ` Bernhard Fischer
2007-01-25 16:50 ` Nathanael D. Noblet
0 siblings, 2 replies; 3+ messages in thread
From: Kleegrewe, Christian @ 2007-01-25 9:15 UTC (permalink / raw)
To: buildroot
Hi all,
I tried to integrate a simple software project into the buildroot, but it does not compile. The problem is, that the compilation process is not started. The target is added correctly to TARGETS and the copying at the beginning of the hello.mk is performed correctly, but the $(MAKE) is never called. I suspect that it is a problem with the definition of the corresponding target.
Here are my Config.in
config BR2_PACKAGE_HELLO
bool "hello"
default y
help
hello world test programm to test integration of a
third party software to the buildroot
And my hello.mk File
#############################################################
#
# Any custom stuff you feel like doing....
#
#############################################################
HELLO_DIR=package/hello
HELLO_SOURCE_DIR=$(HOME)/embedded_p2p/hello
HELLO=hello
HELLO_BINARY=hello
$(HELLO):
-cp -af $(HELLO_SOURCE_DIR)/* $(HELLO_DIR)/
touch $@
touch -c $(HELLO_DIR)/hello.cpp
$(HELLO_DIR)/$(HELLO_BINARY): $(HELLO_DIR)/hello.cpp $(HELLO_DIR)
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" DEBUG=true KLIBC?lse \
KERNEL_INCLUDE_DIR=$(STAGING_DIR)/include \
TARGET_DIR=$(TARGET_DIR) -C $(HELLO_SOURCE_DIR) -o $(HELLO_BINARY);
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_HELLO)),y)
TARGETS+=hello
Endif
I tried to find a sollution for my problem in the mailing list archives, but it is difficult to search.
Any help will be appreciated
Thanks Christian
--------------------------------------8<-----------------------------------------------------
Christian Kleegrewe
CT IC 6
Fon: +49 89 636 42722
Fax: +49 89 636 41423
Mail: mailto:christian.kleegrewe@siemens.com
> Siemens Aktiengesellschaft:
> Vorsitzender des Aufsichtsrats: Heinrich v. Pierer;
> Vorstand: Klaus Kleinfeld, Vorsitzender; Johannes Feldmayer, Joe Kaeser, Rudi Lamprecht, Eduardo Montes, J?rgen Radomski, Erich R. Reinhardt, Hermann Requardt, Uriel J. Sharef, Klaus Wucherer
> Sitz der Gesellschaft: Berlin und M?nchen
> Registergericht: Berlin Charlottenburg, HRB 12300, M?nchen, HRB 6684
> WEEE-Reg.-Nr. DE 23691322
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070125/2c29b208/attachment-0001.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Make problems
2007-01-25 9:15 [Buildroot] Make problems Kleegrewe, Christian
@ 2007-01-25 10:55 ` Bernhard Fischer
2007-01-25 16:50 ` Nathanael D. Noblet
1 sibling, 0 replies; 3+ messages in thread
From: Bernhard Fischer @ 2007-01-25 10:55 UTC (permalink / raw)
To: buildroot
On Thu, Jan 25, 2007 at 10:15:12AM +0100, Kleegrewe, Christian wrote:
>Hi all,
>
>I tried to integrate a simple software project into the buildroot, but it does not compile. The problem is, that the compilation process is not started. The target is added correctly to TARGETS and the copying at the beginning of the hello.mk is performed correctly, but the $(MAKE) is never called. I suspect that it is a problem with the definition of the corresponding target.
>I tried to find a sollution for my problem in the mailing list archives, but it is difficult to search.
http://buildroot.uclibc.org/lists.html
http://buildroot.uclibc.org/buildroot.html#add_software
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Make problems
2007-01-25 9:15 [Buildroot] Make problems Kleegrewe, Christian
2007-01-25 10:55 ` Bernhard Fischer
@ 2007-01-25 16:50 ` Nathanael D. Noblet
1 sibling, 0 replies; 3+ messages in thread
From: Nathanael D. Noblet @ 2007-01-25 16:50 UTC (permalink / raw)
To: buildroot
Kleegrewe, Christian wrote:
>
> And my hello.mk File
>
> #############################################################
> #
> # Any custom stuff you feel like doing....
> #
> #############################################################
> HELLO_DIR=package/hello
> HELLO_SOURCE_DIR=$(HOME)/embedded_p2p/hello
> HELLO=hello
> HELLO_BINARY=hello
>
> $(HELLO):
> -cp -af $(HELLO_SOURCE_DIR)/* $(HELLO_DIR)/
> touch $@
> touch -c $(HELLO_DIR)/hello.cpp
>
> $(HELLO_DIR)/$(HELLO_BINARY): $(HELLO_DIR)/hello.cpp $(HELLO_DIR)
> $(MAKE) CFLAGS="$(TARGET_CFLAGS)" DEBUG=true KLIBC=false \
> KERNEL_INCLUDE_DIR=$(STAGING_DIR)/include \
> TARGET_DIR=$(TARGET_DIR) -C $(HELLO_SOURCE_DIR) -o
> $(HELLO_BINARY);
>
if you look at other makefiles in buildroot, you'll see usually the last
line (though position isn't important)
programname: $(PROGRAM_DIR)/$(TARGET_BINARY) ....
make deals with dependancies and dependency trees, so the line is like so
target: dependancy1 dependancy2
tasks for target
tasks for target
dependancy1: dependancy3
tasks for dependency1
dependancy2:
tasks for dependency2
dependancy3:
tasks for dependency3
if I used this makefile directly and did `make target` I would get
tasks for dependency3
tasks for dependency1
tasks for dependency2
tasks for target
so with your makefile, you've made the end target of program name =
hello, the only thing to run. In your
ifeq ($(strip $(BR2_PACKAGE_HELLO)),y)
TARGETS+=hello
Endif
hello: is added as a target, but your makefile has hello: as a
dependency free target. it does the first part, but that is it. so
change it so it is something like
$(HELLO_DIR):
mkdir $(HELLO_DIR)
$(HELLO_DIR)/hello.cpp: $(HELLO_DIR)
tasks including your touch $HELLO_DIR/hello.cpp
$(HELLO_DIR)/$(HELLO_BINARY): $(HELLO_DIR)/hello.cpp
tasks...
hello: $(HELLO_DIR)/$(HELLO_BINARY)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-25 16:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25 9:15 [Buildroot] Make problems Kleegrewe, Christian
2007-01-25 10:55 ` Bernhard Fischer
2007-01-25 16:50 ` Nathanael D. Noblet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox