Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-simple-tc
  3. PKG_VERSION:=4
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(GLUONDIR)/include/package.mk
  6. define Package/gluon-simple-tc
  7. SECTION:=gluon
  8. CATEGORY:=Gluon
  9. TITLE:=Bandwidth limit support
  10. DEPENDS:=+gluon-core +kmod-sched +libnl-tiny
  11. endef
  12. define Package/gluon-simple-tc/description
  13. Gluon community wifi mesh firmware framework: tc support
  14. endef
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. $(CP) ./src/* $(PKG_BUILD_DIR)/
  18. endef
  19. define Build/Configure
  20. endef
  21. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
  22. define Build/Compile
  23. CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  24. endef
  25. define Package/gluon-simple-tc/install
  26. $(CP) ./files/* $(1)/
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-simple-tc $(1)/usr/sbin/
  29. endef
  30. define Package/gluon-simple-tc/postinst
  31. #!/bin/sh
  32. $(call GluonCheckSite,check_site.lua)
  33. endef
  34. $(eval $(call BuildPackage,gluon-simple-tc))