Browse Source

switchdev-poller: makefile cleanup

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
lilik-openwrt-22.03
Luiz Angelo Daros de Luca 6 years ago
parent
commit
b83212e67e
3 changed files with 7 additions and 6 deletions
  1. +7
    -6
      net/switchdev-poller/Makefile
  2. +0
    -0
      net/switchdev-poller/files/switchdev-poller
  3. +0
    -0
      net/switchdev-poller/files/switchdev-poller.init

+ 7
- 6
net/switchdev-poller/Makefile View File

@ -12,7 +12,6 @@ PKG_RELEASE:=1
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/switchdev-poller
@ -24,17 +23,19 @@ define Package/switchdev-poller
endef
define Package/switchdev-poller/description
This service monitors switchdev ports and brings down CPU ports when
all related non-CPU vlan ports are also down. Otherwise, it brings
the port up.
This service monitors switchdev ports and brings down CPU ports when
all related non-CPU vlan ports are also down. Otherwise, it brings
the port up.
endef
define Build/Compile
endef
define Package/switchdev-poller/install
$(CP) ./files/* $(1)
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/switchdev-poller.init $(1)/etc/init.d/switchdev-poller
$(INSTALL_DIR) $(1)/usr/lib/switchdev-poller
$(INSTALL_BIN) ./files/switchdev-poller $(1)/usr/lib/switchdev-poller/switchdev-poller
endef
$(eval $(call BuildPackage,switchdev-poller))

net/switchdev-poller/files/usr/lib/switchdev-poller/switchdev-poller → net/switchdev-poller/files/switchdev-poller View File


net/switchdev-poller/files/etc/init.d/switchdev-poller → net/switchdev-poller/files/switchdev-poller.init View File


Loading…
Cancel
Save