Hi Jan

You are right, kbuild resolve it.

My mistake: I stored the kcflags in a variable and put this variable in the 
EXTRA_CFLAGS from the make file.
XENOMAI_K_CFLAGS  = $(shell /usr/xenomai/bin/xeno-config --rtdm --kcflags)
EXTRA_CFLAGS += $(XENOMAI_K_CFLAGS)
The result was: EXTRA_CFLAGS= -Iarch/$(SRCARCH)/xenomai/include.

So I need a second expand step from $(SRCARCH).
My solution is the eval function:
$(eval EXTRA_CFLAGS += $(XENOMAI_K_CFLAGS))
And now I get:  EXTRA_CFLAGS= -Iarch/arm/xenomai/include 
and now module builds are success full.

Thank you very much for your post.

Alex




_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to