1
0

Makefile 889 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=osafeloader
  9. PKG_RELEASE:=1
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/osafeloader
  12. SECTION:=utils
  13. CATEGORY:=Base system
  14. TITLE:=Utility for handling TP-LINK SafeLoader images
  15. MAINTAINER:=Rafał Miłecki <rafal@milecki.pl>
  16. DEPENDS:=@TARGET_bcm53xx
  17. endef
  18. define Package/osafeloader/description
  19. This package contains an utility that allows handling SafeLoader images.
  20. endef
  21. define Build/Compile
  22. $(MAKE) -C $(PKG_BUILD_DIR) \
  23. CC="$(TARGET_CC)" \
  24. CFLAGS="$(TARGET_CFLAGS) -Wall"
  25. endef
  26. define Package/osafeloader/install
  27. $(INSTALL_DIR) $(1)/usr/bin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/osafeloader $(1)/usr/bin/
  29. endef
  30. $(eval $(call BuildPackage,osafeloader))