Skip to content

Commit

Permalink
ell: add package
Browse files Browse the repository at this point in the history
Add package for Embedded Linux Library (ell) from kernel.org.
Include patch to fix build with GCC 14 by Aditya Nugraha.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Oct 26, 2024
1 parent 24875c9 commit aa90924
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
49 changes: 49 additions & 0 deletions libs/ell/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ell
PKG_VERSION:=0.69
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/ell/ell.git
PKG_SOURCE_VERSION:=7bed251f8020ef896043f008276f41cd13fdd43f
PKG_MIRROR_HASH:=b462215391bf6f952b14743b4c54ac3538d4394c785f71c1bcb1623e2cb1cbc9

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

PKG_INSTALL:=1

PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/ell
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Embedded Linux Library
URL:=https://patchwork.kernel.org/project/ell/
endef

define Package/ell/description
ELL (Embedded Linux Library) provides core, low-level functionality for system daemons.
It integrates with standard libc functionality and replaces some parts of it with more optimal implementations.
endef

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/ell $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libell.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ell.pc $(1)/usr/lib/pkgconfig/
endef

define Package/ell/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libell.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,ell))
10 changes: 10 additions & 0 deletions libs/ell/patches/001-fix-build-with-gcc14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/ell/genl.h
+++ b/ell/genl.h
@@ -11,6 +11,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+#include "netlink.h"

#ifdef __cplusplus
extern "C" {

0 comments on commit aa90924

Please sign in to comment.