From 5f5d4489e53d0306c5f984e66cbba8fd0b107421 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 12 Dec 2017 22:05:55 +0100 Subject: [PATCH] setserial: introduce package This packages setserial, the standard Linux program for setting serial device attributes such as baud rate, flow control etc. Signed-off-by: Jo-Philipp Wich --- utils/setserial/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 utils/setserial/Makefile diff --git a/utils/setserial/Makefile b/utils/setserial/Makefile new file mode 100644 index 0000000000..0a7be5a691 --- /dev/null +++ b/utils/setserial/Makefile @@ -0,0 +1,34 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=setserial +PKG_VERSION:=2.17 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/setserial +PKG_HASH:=7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a + +PKG_MAINTAINER:=Jo-Philipp Wich +PKG_LICENSE:=GPL-2.0 + + +include $(INCLUDE_DIR)/package.mk + +define Package/setserial + SECTION:=utils + CATEGORY:=Utilities + URL:=http://setserial.sourceforge.net/ + TITLE:=Serial port attribute utility +endef + +define Package/setserial/install + $(INSTALL_DIR) $(1)/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/setserial $(1)/bin/ +endef + +define Package/setserial/description + Setserial is a program which allows you to look at and change various + attributes of a serial device, including its port, its IRQ, and other + serial port options. +endef + +$(eval $(call BuildPackage,setserial))