packages/utils/io/Makefile
florian dc3a3c8887 Massive propset of svn:keywords for packages newly addded, next time, we should not forget it ;)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-01 23:09:45 +00:00

43 lines
960 B
Makefile

#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=io
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/io
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Raw memory i/o utility
DESCRIPTION:=\
This tool can be used to access physical memory addresses from userspace. \\\
It can be useful to access hardware for which no device driver exists!
URL:=http://www.sleepie.demon.co.uk/linuxvme/io.c
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
endef
define Package/io/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/io $(1)/usr/bin/
endef
$(eval $(call BuildPackage,io))