mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Changes done: 1. Add support for hotplug event generation 2. Fix pipeline and static code analysis error/warnings 3. Rectify package source URL.
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2018-2024 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_NAME:=dslmngr
|
|
PKG_VERSION:=1.2.1
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=cb8b8fd2549751bcd38808391b76a1a9a908c4de
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/hal/dslmngr.git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MAINTAINER:=Rahul Thakur <rahul.thakur@iopsys.eu>
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
ifeq ($(CONFIG_TARGET_brcmbca),y)
|
|
TARGET_PLATFORM=BROADCOM
|
|
else
|
|
$(info Unexpected CONFIG_TARGET)
|
|
endif
|
|
|
|
export TARGET_PLATFORM
|
|
|
|
define Package/dslmngr
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=XDSL status and configration utility
|
|
DEPENDS:=+libdsl +libuci +libubox +ubus +libpthread +libnl-genl +libeasy
|
|
endef
|
|
|
|
define Package/dslmngr/description
|
|
This package can be used to configure and provide status about
|
|
the XDSL subsystem through UBUS.
|
|
endef
|
|
|
|
TARGET_CFLAGS += \
|
|
-I$(STAGING_DIR)/usr/include \
|
|
-I$(STAGING_DIR)/usr/include/libnl3 \
|
|
-I$(STAGING_DIR)/usr/include/xdsl \
|
|
-D_GNU_SOURCE
|
|
|
|
MAKE_FLAGS += \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
FPIC="$(FPIC)"
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
rsync -r --exclude=.* ./dslmngr/ $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
define Build/Compile
|
|
+$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)
|
|
endef
|
|
|
|
define Package/dslmngr/install
|
|
$(CP) ./files/common/* $(1)/
|
|
ifeq ($(CONFIG_TARGET_brcmbca),y)
|
|
$(CP) ./files/broadcom/* $(1)/
|
|
endif
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dslmngr $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dslmngr))
|