[Buildroot] Make problems

Kleegrewe, Christian christian.kleegrewe at siemens.com
Thu Jan 25 09:15:12 UTC 2007


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=false \
	    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 at 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://lists.busybox.net/pipermail/buildroot/attachments/20070125/2c29b208/attachment-0002.htm 


More information about the buildroot mailing list