diff options
| author | Carey Sonsino <csonsino@gmail.com> | 2019-09-30 14:14:02 +0000 |
|---|---|---|
| committer | Carey Sonsino <csonsino@gmail.com> | 2019-10-09 14:53:01 +0000 |
| commit | 0f00bcb16efabfea0de52b1bcabea764e3396f78 (patch) | |
| tree | 68becba4871a7fb3d0622ef1a86762ff33d92389 /libs/libdcwsocket | |
| parent | d3012ecf08770171e02e46db38ff6e39d82ba4b5 (diff) | |
dcwifi: Update component versions
update package versions and hashes
remove bzero patches
remove uclibc++ patch
refactor directory structure
relocate mrmctl in menuconfig
update macremapper patch
Signed-off-by: Carey Sonsino <careys@edgewaterwireless.com>
Signed-off-by: Carey Sonsino <csonsino@gmail.com>
Diffstat (limited to 'libs/libdcwsocket')
| -rw-r--r-- | libs/libdcwsocket/Makefile | 56 | ||||
| -rw-r--r-- | libs/libdcwsocket/patches/02_fix_storage_size_error.patch | 10 |
2 files changed, 66 insertions, 0 deletions
diff --git a/libs/libdcwsocket/Makefile b/libs/libdcwsocket/Makefile new file mode 100644 index 000000000..73a4c3a62 --- /dev/null +++ b/libs/libdcwsocket/Makefile @@ -0,0 +1,56 @@ +# +# Copyright (C) 2019 EWSI +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libdcwsocket +PKG_VERSION:=1.1.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)? +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_HASH:=71383c4d8c5f58c1299a3717d7de9a8b5dabfd51a2dcf9993248f2709908d23a + +PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com> +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libdcwsocket + SECTION:=libs + CATEGORY:=Libraries + SUBMENU:=Networking + TITLE:=Dual-Channel socket library + URL:=https://www.edgewaterwireless.com +endef + +define Package/libdcwsocket/description + User-land C library for sending and receiving DCW "EtherType"d messages +endef + +TARGET_CFLAGS += -std=c89 -ffunction-sections -fdata-sections -flto +TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)*.so* $(1)/usr/lib/ +endef + +define Package/libdcwsocket/install + $(INSTALL_DIR) $(1)/usr/lib + # Note: $(INSTALL_BIN) does not keep symlinks, so use $(CP) + $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)*.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libdcwsocket)) diff --git a/libs/libdcwsocket/patches/02_fix_storage_size_error.patch b/libs/libdcwsocket/patches/02_fix_storage_size_error.patch new file mode 100644 index 000000000..431b093df --- /dev/null +++ b/libs/libdcwsocket/patches/02_fix_storage_size_error.patch @@ -0,0 +1,10 @@ +--- a/src/dcwsocket.c.linux ++++ b/src/dcwsocket.c.linux +@@ -31,6 +31,7 @@ + #include <sys/types.h> + #include <sys/socket.h> + #include <net/if.h> ++#include <linux/if.h> + #include <linux/if_packet.h> + #include <linux/if_ether.h> + #include <linux/filter.h> |
