mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
- This allows us to deselect bcmkernel and have all the packages deselected. - Bcmkernel is the main package - these others are addons - therefore use hard dependency instead of appended one - only use +<dependency> for adding shared libraries or other shared packages - never for application packages
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# 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:=1.0.23
|
|
ifeq ($(CONFIG_BCM_OPEN),y)
|
|
PKG_SOURCE_URL:=http://ihgsp.inteno.se/git/dectmngr.git
|
|
else
|
|
PKG_SOURCE_URL:=git@iopsys.inteno.se:dectmngr.git
|
|
endif
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=5f6f0608b59484d76c6331279cc50104be5d8a95
|
|
PKG_NAME:=dectmngr
|
|
|
|
|
|
LDFLAGS+= \
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
-Wl,-rpath-link=$(STAGING_DIR)/lib
|
|
|
|
RSTRIP:=true
|
|
export BUILD_DIR
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/dectmngr
|
|
CATEGORY:=Utilities
|
|
TITLE:=Broadcom endpoint test application
|
|
URL:=
|
|
DEPENDS:= +libevent2 +libjson +natalie-dect-h bcmkernel
|
|
endef
|
|
|
|
define Package/dectmngr/description
|
|
Dect proxy, manager and tools
|
|
endef
|
|
|
|
|
|
define Package/dectmngr/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/dect
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_DIR) $(1)/etc/dect/
|
|
$(INSTALL_DIR) $(1)/etc/config/
|
|
|
|
cp $(PKG_BUILD_DIR)/dectmngr $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/atohx $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/dectproxy $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/dectdbgd $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/dect $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/dectcalib $(1)/usr/bin/
|
|
cp $(PKG_BUILD_DIR)/dect_testmode $(1)/usr/bin/
|
|
cp files/etc/init.d/* $(1)/etc/init.d/
|
|
cp files/etc/hotplug.d/dect/* $(1)/etc/hotplug.d/dect/
|
|
cp files/etc/dect/* $(1)/etc/dect/
|
|
cp files/etc/config/* $(1)/etc/config/
|
|
cp files/sbin/dectreg $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dectmngr))
|