Skip to contentSkip to conversation

Adding libev to buildroot

Buildroot Bernhard Roth 4 participants 6 messages Aug 7, 2011 – Sep 10, 2011 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello all,

I am using buildroot for a while now and I always have to add the libev library for my projects. Libev is a lightweight and powerful alternative to livevent.
Maybe it's possible to add libev support to the next official version of buildroot.

Attached I send you the package config files for libev which I use (based on libevent files)
Please put them into package/libev.

Finally following line has to be added to package/Config.in just after libevent

source "package/libev/Config.in"

Best regards,

Bernhard Roth

Signature · 25 lines
____________________________________
Roth ITK Consulting GmbH
Landsberger Str. 398
81241 M?nchen
Germany

Fon: +49 89 461317-0
Fax: +49 89 461317-29
Email: broth at roth-itk.de
Web: http://www.roth-itk.de/

Gesch?ftsf?hrer: Bernhard Roth
HRB 174971, Amtsgericht M?nchen
UID: DE 261 708 872
____________________________________


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Config.in
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110807/7726e19d/attachment.in>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libev.mk
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110807/7726e19d/attachment.ksh>
#1 lore raw

Hello Bernhard,

Quoted 8 lines · Bernhard Roth

Hello all,

I am using buildroot for a while now and I always have to add the libev library for my projects. Libev is a lightweight and powerful alternative to livevent.
Maybe it's possible to add libev support to the next official version of buildroot.

Quoted 8 lines

Attached I send you the package config files for libev which I use (based on libevent files)
Please put them into package/libev.

Finally following line has to be added to package/Config.in just after libevent

source "package/libev/Config.in"

Please send a proper patch using git or quilt and add your Signed-off-by string.

Yegor

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAGm1_ktqDGmoRtbWuN8uDM3qiL00K+kS-VbyVcDV3p9sqav9Jg@mail.gmail.com

#4 lore raw

Hello Yegor,

I did a patch according to Linus' description.
I hope this works and describes clearly the changes I did.

Just today I was recompiling a new root filesystem and libev works just like a charm!
Keep your good work going, thank you!

Best regards,

Bernhard

Quoted 13 lines · Yegor Yefremov

Hello Bernhard,

you have following ways to get to the patch:

1. see kernel documentation on how to compare two src dirs:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/SubmittingPatches;hb=HEAD
2. using quilt: http://en.wikipedia.org/wiki/Quilt_%28software%29. It requires one clean src dir, your two files you sent to the list and changes to package/Config.in
3. git: clone buildroot repository, make your changes, git add, git commit, http://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html.
See http://progit.org/book/ for syntax and details

Quoted 1 line

Yegor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libev.patch
Type: text/x-patch
Size: 3325 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110808/40cdafee/attachment.bin>

#5 lore raw

Hello Bernhard,

Quoted 5 lines

I did a patch according to Linus' description.
I hope this works and describes clearly the changes I did.

Just today I was recompiling a new root filesystem and libev works just like a charm! Keep your good work going, thank you!

Thank you for the patch. Some remarks below:

1. the patches should be sent "inline", so it is easier to comment on them
2. your' Signed-off-by is still missing (see other patches on the list)
3. don't use :=, use = instead
4. this is autotools based package, so following template should be used http://buildroot.uclibc.org/buildroot.html#autotools-tutorial

I've reworked your patch. So please execute "make clean" or remove all files installed by installation of libev and test it with reworked patch.

Yegor

---
 package/Config.in       |    1 +
 package/libev/Config.in |    6 ++++++
 package/libev/libev.mk  |   11 +++++++++++
 3 files changed, 18 insertions(+)
package/Config.in +1 -0
Index: b/package/Config.in
===================================================================
@@ -341,6 +341,7 @@
 source "package/libdaemon/Config.in"
 source "package/libelf/Config.in"
 source "package/libevent/Config.in"
+source "package/libev/Config.in"
 source "package/libffi/Config.in"
 source "package/libglib2/Config.in"
 source "package/libnspr/Config.in"
package/libev/Config.in new file +6 -0
Index: b/package/libev/Config.in
===================================================================
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBEV
+	bool "libev"
+	help
+	  Userspace library for handling asynchronous notifications
+
+	  http://software.schmorp.de/pkg/libev.html
package/libev/libev.mk new file +11 -0
Index: b/package/libev/libev.mk
===================================================================
@@ -0,0 +1,11 @@
+#############################################################
+#
+# libev
+#
+#############################################################
+LIBEV_VERSION = 4.04
+LIBEV_SOURCE = libev-$(LIBEV_VERSION).tar.gz
+LIBEV_SITE = http://dist.schmorp.de/libev/
+LIBEV_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS,package,libev))
#6 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yegor" == Yegor Yefremov <[email protected]> writes:

Yegor> Hello Bernhard,

Quoted 5 lines
Quoted 5 lines

I did a patch according to Linus' description.
I hope this works and describes clearly the changes I did.

Just today I was recompiling a new root filesystem and libev works just like a charm! Keep your good work going, thank you!

Yegor> Thank you for the patch. Some remarks below:

Yegor> 1. the patches should be sent "inline", so it is easier to comment on them
Yegor> 2. your' Signed-off-by is still missing (see other patches on the list)
Yegor> 3. don't use :=, use = instead
Yegor> 4. this is autotools based package, so following template should be used http://buildroot.uclibc.org/buildroot.html#autotools-tutorial

Yegor> I've reworked your patch. So please execute "make clean" or remove all files installed by installation of libev and test it with reworked patch.

Thanks, committed. I took the liberty to add both your signed-off-by's, hope that's ok.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw
Quoted 16 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yegor" == Yegor Yefremov <[email protected]> writes:

?Yegor> Hello Bernhard,
?>> I did a patch according to Linus' description.
?>> I hope this works and describes clearly the changes I did.
?>>
?>> Just today I was recompiling a new root filesystem and libev works just like a charm! ?>> Keep your good work going, thank you!

?Yegor> Thank you for the patch. Some remarks below:

?Yegor> 1. the patches should be sent "inline", so it is easier to comment on them
?Yegor> 2. your' Signed-off-by is still missing (see other patches on the list)
?Yegor> 3. don't use :=, use = instead
?Yegor> 4. this is autotools based package, so following template should be used http://buildroot.uclibc.org/buildroot.html#autotools-tutorial

Quoted 4 lines

?Yegor> I've reworked your patch. So please execute "make clean" or remove all files installed by installation of libev and test it with reworked patch.

Thanks, committed. I took the liberty to add both your signed-off-by's, hope that's ok.

Thanks for committing.

Yegor