2013-10-03 11:59:45 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gluon-simple-tc
|
2014-07-29 15:44:07 +00:00
|
|
|
PKG_VERSION:=4
|
2013-10-03 11:59:45 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2014-07-16 15:31:40 +00:00
|
|
|
include $(GLUONDIR)/include/package.mk
|
2013-10-03 11:59:45 +00:00
|
|
|
|
|
|
|
define Package/gluon-simple-tc
|
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
|
|
|
TITLE:=Bandwidth limit support
|
2014-07-29 15:44:07 +00:00
|
|
|
DEPENDS:=+gluon-core +kmod-sched +libnl-tiny
|
2013-10-03 11:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-simple-tc/description
|
|
|
|
Gluon community wifi mesh firmware framework: tc support
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2014-07-29 15:44:07 +00:00
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
2013-10-03 11:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
2014-07-29 15:44:07 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
|
|
|
|
|
2013-10-03 11:59:45 +00:00
|
|
|
define Build/Compile
|
2014-07-29 15:44:07 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
|
2013-10-03 11:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-simple-tc/install
|
|
|
|
$(CP) ./files/* $(1)/
|
2014-07-29 15:44:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-simple-tc $(1)/usr/sbin/
|
2013-10-03 11:59:45 +00:00
|
|
|
endef
|
|
|
|
|
2014-07-16 15:31:40 +00:00
|
|
|
define Package/gluon-simple-tc/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
$(call GluonCheckSite,check_site.lua)
|
|
|
|
endef
|
|
|
|
|
2013-10-03 11:59:45 +00:00
|
|
|
$(eval $(call BuildPackage,gluon-simple-tc))
|