add mutella (thanks to olli)
[openwrt/svn-archive/archive.git] / utils / io / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=io
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/io
19 SECTION:=utils
20 CATEGORY:=Utilities
21 TITLE:=Raw memory i/o utility
22 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 URL:=http://www.sleepie.demon.co.uk/linuxvme/io.c
26 endef
27
28 define Build/Prepare
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Compile
34 $(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
35 endef
36
37 define Package/io/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/io $(1)/usr/bin/
40 endef
41
42 $(eval $(call BuildPackage,io))