add userspace tool for gpio_dev
[openwrt.git] / package / gpioctl / Makefile
1 #
2 # Copyright (C) 2008 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 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=gpioctl
13 PKG_RELEASE:=1
14 PKG_VERSION:=1.0
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/gpioctl
19 SECTION:=utils
20 CATEGORY:=Utilities
21 TITLE:=Tool for controlling gpio pins
22 endef
23
24 define Package/gpioctl/description
25 Tool for controlling gpio pins
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 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
36 endef
37
38 define Package/gpioctl/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gpioctl $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,gpioctl))
This page took 0.03924 seconds and 5 git commands to generate.