Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Willy <willy@willygroup.org>
To: buildroot@busybox.net
Subject: [Buildroot] Add rt squarewave example in buildroot
Date: Mon, 23 Jan 2012 14:43:06 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120123T152253-656@post.gmane.org> (raw)

Hi,
I've compiled and configured the 3.0.14 kernel with rt patch? 
in buildroot 11-2011.
I'm trying to build the rt example "squarewave"? in buildroot.
When I launch "make" I obtain the following error:
buildrootfolder/output/host/usr/bin/i586-unknown-linux-uclibc-gcc -c \
    rtpatchonoff.c 
buildrootfolder/output/host/usr/bin/i586-unknown-linux-uclibc-gcc \
    rtpatchonoff.o
-o rtpatchonoff -lrt -Wall
rtpatchonoff.o: In function `main':
rtpatchonoff.c:(.text+0x176): undefined reference to `clock_nanosleep'
collect2: ld returned 1 exit status
make[1]: *** [rtpatchonoff] Errore 1
...

The makefile included in the package rtpatchonoff is:
[makefile]
all: rtpatchonoff -lrt

rtpatchonoff: rtpatchonoff.o -lrt
	$(CC) rtpatchonoff.o -o rtpatchonoff -lrt -Wall

rtpatchonoff.o: rtpatchonoff.c
	$(CC) -c rtpatchonoff.c 

clean:
	rm -f rtpatchonoff
[/makefile]

The .mk file is:
[mk]
RTPATCHONOFF_VERSION = 1.0
RTPATCHONOFF_SOURCE = rtpatchonoff-$(RTPATCHONOFF_VERSION).tar.gz
RTPATCHONOFF_SITE = http://nonesiste.com

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

define RTPATCHONOFF_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 $(@D)/rtpatchonoff $(TARGET_DIR)/usr/bin 
endef

$(eval $(call GENTARGETS,package,rtpatchonoff))
[/mk]

Where is the problem?

clock_nanosleep is defined in
buildrootfolder/output/toolchain/uClibc-0.9.32/librt/clock_nanosleep.c


? - http://www.kernel.org/pub/linux/kernel/projects/rt/
? - https://rt.wiki.kernel.org/articles/s/q/u/Squarewave-example.html

             reply	other threads:[~2012-01-23 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23 14:43 Willy [this message]
2012-01-23 21:14 ` [Buildroot] Add rt squarewave example in buildroot Thomas Petazzoni
2012-01-24  8:07   ` Willy
2012-01-24  9:32     ` Thomas Petazzoni
2012-01-24 10:18       ` Willy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20120123T152253-656@post.gmane.org \
    --to=willy@willygroup.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox