1
0

Makefile 911 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. PKG_FLAGS:=nonshared
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/osafeloader
  13. SECTION:=utils
  14. CATEGORY:=Base system
  15. TITLE:=Utility for handling TP-LINK SafeLoader images
  16. MAINTAINER:=Rafał Miłecki <rafal@milecki.pl>
  17. DEPENDS:=@TARGET_bcm53xx
  18. endef
  19. define Package/osafeloader/description
  20. This package contains an utility that allows handling SafeLoader images.
  21. endef
  22. define Build/Compile
  23. $(MAKE) -C $(PKG_BUILD_DIR) \
  24. CC="$(TARGET_CC)" \
  25. CFLAGS="$(TARGET_CFLAGS) -Wall"
  26. endef
  27. define Package/osafeloader/install
  28. $(INSTALL_DIR) $(1)/usr/bin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/osafeloader $(1)/usr/bin/
  30. endef
  31. $(eval $(call BuildPackage,osafeloader))