[packages] add devmem2
[openwrt/svn-archive/archive.git] / utils / devmem2 / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=devmem2
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/devmem2
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Simple program to read/write from memory.
21 endef
22
23 define Package/devmem2/description
24 Simple program to read/write from/to any location in memory.
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Package/devmem2/install
33 $(INSTALL_DIR) $(1)/usr/sbin
34 $(INSTALL_BIN) $(PKG_BUILD_DIR)/devmem2 $(1)/usr/sbin/devmem2
35 endef
36
37 $(eval $(call BuildPackage,devmem2))