summaryrefslogtreecommitdiff
path: root/openwrt/package/picocom/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-06-10 17:12:46 +0000
committerNicolas Thill <nico@openwrt.org>2005-06-10 17:12:46 +0000
commit9183af1817ab1753b4480741965d2d10cc6c75bb (patch)
tree27acb8d811fd6963b614b015d7989b8f783b4c2b /openwrt/package/picocom/Makefile
parent3bb92a5db8aaf9f6be48ce802cec04978de885e9 (diff)
downloadmtk-20170518-9183af1817ab1753b4480741965d2d10cc6c75bb.zip
mtk-20170518-9183af1817ab1753b4480741965d2d10cc6c75bb.tar.gz
mtk-20170518-9183af1817ab1753b4480741965d2d10cc6c75bb.tar.bz2
Add picocom package, move serial comm. stuff to its section in Config.in
SVN-Revision: 1187
Diffstat (limited to 'openwrt/package/picocom/Makefile')
-rw-r--r--openwrt/package/picocom/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/openwrt/package/picocom/Makefile b/openwrt/package/picocom/Makefile
new file mode 100644
index 0000000..1f07c61
--- /dev/null
+++ b/openwrt/package/picocom/Makefile
@@ -0,0 +1,33 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=picocom
+PKG_VERSION:=1.4
+PKG_RELEASE:=1
+PKG_MD5SUM:=08fcc5f6bb9e7676a2569386d5ea9f70
+
+PKG_SOURCE_URL:=http://efault.net/npat/hacks/picocom/dist/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PICOCOM,picocom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+ CFLAGS="$(TARGET_CFLAGS) -L$(STAGING_DIR)/usr/lib" \
+ picocom
+ touch $@
+
+$(IPKG_PICOCOM):
+ install -d -m0755 $(IDIR_PICOCOM)/usr/bin
+ install -m0755 $(PKG_BUILD_DIR)/picocom $(IDIR_PICOCOM)/usr/bin/
+ $(RSTRIP) $(IDIR_PICOCOM)
+ $(IPKG_BUILD) $(IDIR_PICOCOM) $(PACKAGE_DIR)