Makefile 914 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-radvd
  3. PKG_VERSION:=3
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(INCLUDE_DIR)/package.mk
  6. define Package/gluon-radvd
  7. SECTION:=gluon
  8. CATEGORY:=Gluon
  9. TITLE:=Advertise an IPv6 prefix from the node
  10. DEPENDS:=+gluon-core +gluon-ebtables +gluon-mesh-batman-adv +librt
  11. endef
  12. define Package/gluon-radvd/description
  13. Gluon community wifi mesh firmware framework: Advertise an IPv6 prefix from the node
  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. define Build/Compile
  22. CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  23. endef
  24. define Package/gluon-radvd/install
  25. $(CP) ./files/* $(1)/
  26. $(INSTALL_DIR) $(1)/usr/sbin
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radvd $(1)/usr/sbin/
  28. endef
  29. $(eval $(call BuildPackage,gluon-radvd))