The program is using autoconf since it was last packaged for ptxdist, so
the rule can be simplified accordingly.

Signed-off-by: Uwe Kleine-König <u.kleine-koe...@pengutronix.de>
---
This obviously obsoletes the patch

        [PATCH] microcom: version bump 2009.06 -> 2016.01.0

sent last week.

Changes since then:
 - new upstream version 2017.03.0
 - pass --enable-can and handle LFS stuff

Best regards
Uwe

 rules/microcom.make | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/rules/microcom.make b/rules/microcom.make
index 2227ea9ff0f9..3b28859fbda8 100644
--- a/rules/microcom.make
+++ b/rules/microcom.make
@@ -16,10 +16,10 @@ PACKAGES-$(PTXCONF_MICROCOM) += microcom
 #
 # Paths and names
 #
-MICROCOM_VERSION       := 2009.06
-MICROCOM_MD5           := 68a63c2d56196a28be89d1b4e5d13af1
+MICROCOM_VERSION       := 2017.03.0
+MICROCOM_MD5           := 801d99dcb4b2ef7e8b77b51bba193066
 MICROCOM               := microcom-$(MICROCOM_VERSION)
-MICROCOM_SUFFIX                := tar.gz
+MICROCOM_SUFFIX                := tar.xz
 MICROCOM_URL           := 
http://www.pengutronix.de/software/microcom/download/$(MICROCOM).$(MICROCOM_SUFFIX)
 MICROCOM_SOURCE                := $(SRCDIR)/$(MICROCOM).$(MICROCOM_SUFFIX)
 MICROCOM_DIR           := $(BUILDDIR)/$(MICROCOM)
@@ -29,16 +29,11 @@ MICROCOM_LICENSE    := GPL-2.0
 # Prepare
 # ----------------------------------------------------------------------------
 
-MICROCOM_PATH := PATH=$(CROSS_PATH)
-MICROCOM_COMPILE_ENV := $(CROSS_ENV)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-$(STATEDIR)/microcom.install:
-       @$(call targetinfo)
-       @$(call touch)
+MICROCOM_CONF_TOOL := autoconf
+MICROCOM_CONF_OPT := \
+       $(CROSS_AUTOCONF_USR) \
+       $(GLOBAL_LARGE_FILE_OPTION) \
+       --enable-can \
 
 # ----------------------------------------------------------------------------
 # Target-Install
@@ -53,10 +48,9 @@ $(STATEDIR)/microcom.targetinstall:
        @$(call install_fixup, microcom,AUTHOR,"Marc Kleine-Budde 
<m...@pengutronix.de>")
        @$(call install_fixup, microcom,DESCRIPTION,missing)
 
-       @$(call install_copy, microcom, 0, 0, 0755, $(MICROCOM_DIR)/microcom, 
/usr/bin/microcom)
+       @$(call install_copy, microcom, 0, 0, 0755, -, /usr/bin/microcom)
 
        @$(call install_finish, microcom)
-
        @$(call touch)
 
 # vim: syntax=make
-- 
2.16.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to