[adm5120] swap I/O space if running in big-endian mode
[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 DEPENDS:=@GPIO_SUPPORT
23 endef
24
25 define Package/gpioctl/description
26 Tool for controlling gpio pins
27 endef
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
37 endef
38
39 define Package/gpioctl/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gpioctl $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,gpioctl))
This page took 0.050092 seconds and 5 git commands to generate.