mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
-------------------------------------------------------------------------------
* c1d337a Fix a crash when endptmngr runs in Iopsys 6 with Broadcom 5.04.
-------------------------------------------------------------------------------
commit c1d337a584b42b5872fb3f3d043d487299d4f826
Author: Ronny Nilsson <ronny.nilsson@iopsys.eu>
Date: 2020-11-23 16:41:10 +0100
Fix a crash when endptmngr runs in Iopsys 6 with Broadcom 5.04.
Base directory -> /
src/Makefile | 1 +
src/brcm-504-workaround.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++
src/line.c | 2 ++
src/main.c | 2 ++
4 files changed, 83 insertions(+)
-------------------------------------------------------------------------------
78 lines
1.9 KiB
Makefile
78 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2018 IOPSYS Software Solutions AB
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_RELEASE:=1
|
|
PKG_VERSION:=0.4
|
|
PKG_SOURCE_VERSION:=c1d337a584b42b5872fb3f3d043d487299d4f826
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
ifeq ($(CONFIG_ENDPT_OPEN),y)
|
|
BRCM_KERNEL_PROFILE=$(shell echo $(CONFIG_BCM_KERNEL_PROFILE) | sed s/\"//g)
|
|
PKG_SOURCE:=endptmngr-$(BRCM_KERNEL_PROFILE)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://download.iopsys.eu/iopsys/opensdk/
|
|
PKG_NAME:=endptmngr-open
|
|
PATCH_DIR:=
|
|
PKG_HASH:=skip
|
|
else
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/endptmngr.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_NAME:=endptmngr
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
endif
|
|
|
|
export BUILD_DIR
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
# All config variable that are passed to the make invocation, directly or
|
|
# indirectly. This ensures that the package is rebuilt on config-changes.
|
|
PKG_CONFIG_DEPENDS := \
|
|
CONFIG_TARGET_BOARD
|
|
|
|
export CONFIG_BRCM_SDK_VER_504001
|
|
export CONFIG_BRCM_SDK_VER_504002
|
|
export CONFIG_BRCM_SDK_VER_504003
|
|
export CONFIG_BRCM_SDK_VER_504004
|
|
export CONFIG_BRCM_SDK_VER_504005
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/endptmngr/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
define Package/endptmngr
|
|
CATEGORY:=Utilities
|
|
TITLE:=Brcmslic
|
|
URL:=
|
|
DEPENDS:= +libubox +ubus +libpicoevent +bcmkernel @TARGET_HAS_VOICE @BCM_VOICE
|
|
endef
|
|
|
|
define Package/endptmngr/description
|
|
endptmngr
|
|
endef
|
|
|
|
ifeq ($(CONFIG_ENDPT_OPEN),y)
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
define Package/endptmngr/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
cp $(PKG_BUILD_DIR)/files/etc/init.d/* $(1)/etc/init.d/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/endptmngr $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,endptmngr))
|