lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (855B)


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