2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
16 include $(INCLUDE_DIR
)/package.mk
21 TITLE
:=Raw memory i
/o utility
22 URL
:=http
://www.sleepie.demon.
co.uk
/linuxvme
/io.c
25 define Package
/io
/description
26 This tool can be used to access physical memory addresses from userspace.
27 It can be useful to access hardware for which no device driver exists
!
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 $(TARGET_CC
) $(TARGET_CFLAGS
) -Os
$(PKG_BUILD_DIR
)/io.c
-o
$(PKG_BUILD_DIR
)/$(PKG_NAME
)
39 define Package
/io
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/io
$(1)/usr
/bin
/
44 $(eval
$(call BuildPackage
,io
))