You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
855 B

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=io
  7. PKG_RELEASE:=2
  8. include $(INCLUDE_DIR)/package.mk
  9. PKG_MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
  10. define Package/io
  11. SECTION:=utils
  12. CATEGORY:=Utilities
  13. TITLE:=Raw memory i/o utility
  14. URL:=http://www.sleepie.demon.co.uk/linuxvme/io.c
  15. endef
  16. define Package/io/description
  17. This tool can be used to access physical memory addresses from userspace.
  18. It can be useful to access hardware for which no device driver exists!
  19. endef
  20. define Build/Compile
  21. $(TARGET_CC) $(TARGET_CFLAGS) -Wall $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
  22. endef
  23. define Package/io/install
  24. $(INSTALL_DIR) $(1)/usr/bin
  25. $(INSTALL_BIN) $(PKG_BUILD_DIR)/io $(1)/usr/bin/
  26. endef
  27. $(eval $(call BuildPackage,io))