1
0

Makefile 764 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2012 OpenWrt.org
  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:=fbtest
  9. PKG_RELEASE:=1
  10. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/fbtest
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Frame buffer device testing tool
  16. DEPENDS:=@DISPLAY_SUPPORT
  17. endef
  18. define Build/Configure
  19. endef
  20. define Build/Compile
  21. $(MAKE) -C $(PKG_BUILD_DIR) \
  22. CC="$(TARGET_CC)" \
  23. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  24. LDFLAGS="$(TARGET_LDFLAGS)"
  25. endef
  26. define Package/fbtest/install
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fbtest $(1)/usr/sbin/
  29. endef
  30. $(eval $(call BuildPackage,fbtest))