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.
8 include $(TOPDIR
)/rules.mk
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(INCLUDE_DIR
)/package.mk
20 TITLE
:=Raw memory i
/o utility
21 URL
:=http
://www.sleepie.demon.
co.uk
/linuxvme
/io.c
24 define Package
/io
/description
25 This tool can be used to access physical memory addresses from userspace.
26 It can be useful to access hardware for which no device driver exists
!
30 mkdir
-p
$(PKG_BUILD_DIR
)
31 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
35 $(TARGET_CC
) $(TARGET_CFLAGS
) -Os
$(PKG_BUILD_DIR
)/io.c
-o
$(PKG_BUILD_DIR
)/$(PKG_NAME
)
38 define Package
/io
/install
39 $(INSTALL_DIR
) $(1)/usr
/bin
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/io
$(1)/usr
/bin
/
43 $(eval
$(call BuildPackage
,io
))