2 # Copyright (C) 2007,2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/input-$(PKG_VERSION)/
15 PKG_SOURCE:=input-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://www.kraxel.org/cgit/input/snapshot
17 PKG_MD5SUM:=592b1b45d9d891725f7793999aa52f31
19 include $(INCLUDE_DIR)/package.mk
21 define Package/input-utils
24 TITLE:=Utilities for the input layer of the Linux kernel
27 define Build/Configure
31 $(MAKE) -C "$(PKG_BUILD_DIR)" \
32 $(TARGET_CONFIGURE_OPTS) \
33 CFLAGS="$(TARGET_CFLAGS)" \
35 INPUT="$(LINUX_DIR)/include/uapi/linux/input.h" \
39 define Package/input-utils/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-events $(1)/usr/bin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-kbd $(1)/usr/bin/
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsinput $(1)/usr/bin/
47 $(eval $(call BuildPackage,input-utils))