2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/gpioctl
21 TITLE
:=Tool for controlling gpio pins
22 DEPENDS
:=@LINUX_2_6
&&(@TARGET_ixp4xx||@TARGET_brcm47xx
)
25 define Package
/gpioctl
/description
26 Tool for controlling gpio pins
30 mkdir
-p
$(PKG_BUILD_DIR
)
31 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 $(TARGET_CONFIGURE_OPTS
) CFLAGS
="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
39 define Package
/gpioctl
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gpioctl
$(1)/usr
/bin
/
44 $(eval
$(call BuildPackage
,gpioctl
))