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
24 define Package
/gpioctl
/description
25 Tool for controlling gpio pins
29 mkdir
-p
$(PKG_BUILD_DIR
)
30 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 $(TARGET_CONFIGURE_OPTS
) CFLAGS
="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
38 define Package
/gpioctl
/install
39 $(INSTALL_DIR
) $(1)/usr
/bin
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gpioctl
$(1)/usr
/bin
/
43 $(eval
$(call BuildPackage
,gpioctl
))