From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 22 Jan 2025 17:40:00 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tadln-0037Di-2m for lore@lore.pengutronix.de; Wed, 22 Jan 2025 17:40:00 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tadlo-0003oW-BG; Wed, 22 Jan 2025 17:40:00 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tadli-0003nY-4x; Wed, 22 Jan 2025 17:39:54 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tadlh-001Ji2-38; Wed, 22 Jan 2025 17:39:53 +0100 Received: from rhi by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tadlh-007m8J-2r; Wed, 22 Jan 2025 17:39:53 +0100 Date: Wed, 22 Jan 2025 17:39:53 +0100 From: Roland Hieber To: Rouven Czerwinski Message-ID: <20250122163953.gp77hozfydrxq2m5@pengutronix.de> References: <20250122084358.3901992-1-r.czerwinski@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250122084358.3901992-1-r.czerwinski@pengutronix.de> Subject: Re: [ptxdist] [PATCH] libosdp: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Wed, Jan 22, 2025 at 09:43:58AM +0100, Rouven Czerwinski wrote: > Add libosdp for support of the osdp protocol. Add a patch to build the > osdpctl program without the rest of the utilities, it is otherwise not > possible to build osdpctl without the python bindings. > > Signed-off-by: Rouven Czerwinski > --- […] > diff --git a/rules/libosdp.make b/rules/libosdp.make > new file mode 100644 > index 000000000..fe23bae49 > --- /dev/null > +++ b/rules/libosdp.make > @@ -0,0 +1,90 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Rouven Czerwinski > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_LIBOSDP) += libosdp > + > +# > +# Paths and names > +# > +LIBOSDP_VERSION := 2.4.0 > +LIBOSDP_MD5 := 14484c746fa28a4a0005e893279bd8ec > +LIBOSDP := libosdp-$(LIBOSDP_VERSION) > +LIBOSDP_SUFFIX := tar.gz > +LIBOSDP_URL := https://github.com/goToMain/libosdp/archive/v$(LIBOSDP_VERSION).$(LIBOSDP_SUFFIX) > +LIBOSDP_SOURCE := $(SRCDIR)/$(LIBOSDP).$(LIBOSDP_SUFFIX) > +LIBOSDP_DIR := $(BUILDDIR)/$(LIBOSDP) > +LIBOSDP_LICENSE := Apache-2.0 > +LIBOSDP_LICENSE_FILES := file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 > + > +CUTILS_VERSION := 7d5cb004258b8b8a195b63ad15177ff196cefd08 > +CUTILS_MD5 := 018ceb214d27bb9ad237274de8307112 > +CUTILS_URL := https://github.com/goToMain/c-utils/archive/$(CUTILS_VERSION).zip > +CUTILS_SOURCE := $(SRCDIR)/c-utils-$(CUTILS_VERSION).zip > +$(CUTILS_SOURCE) := CUTILS > +CUTILS_DIR := $(LIBOSDP_DIR)/utils/ > + > +LIBOSDP_SOURCES := $(LIBOSDP_SOURCE) $(CUTILS_SOURCE) Using LIBODSP_PARTS instead is cleaner now and doesn't need a separate 'get' stage. Have a look at canfestival.make or open62541.make for examples. - Roland > + > +# ---------------------------------------------------------------------------- > +# Get > +# ---------------------------------------------------------------------------- > + > +#$(LIBOSDP_SOURCE): > +# @$(call targetinfo) > +# @$(call get, LIBOSDP) > + > +# ---------------------------------------------------------------------------- > +# Extract > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libosdp.extract: > + @$(call targetinfo) > + @$(call clean, $(LIBOSDP_DIR)) > + @$(call extract, LIBOSDP) > + @$(call extract, CUTILS) > + @$(call patchin, LIBOSDP) > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +LIBOSDP_CONF_ENV := $(CROSS_ENV) > + > +# > +# cmake > +# > +LIBOSDP_CONF_TOOL := cmake > +LIBOSDP_CONF_OPT := $(CROSS_CMAKE_USR) \ > + -DCONFIG_OSDP_LIB_ONLY=y > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libosdp.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, libosdp) > + @$(call install_fixup, libosdp, PRIORITY, optional) > + @$(call install_fixup, libosdp, SECTION, base) > + @$(call install_fixup, libosdp, AUTHOR, "Rouven Czerwinski ") > + @$(call install_fixup, libosdp, DESCRIPTION, missing) > + > + @$(call install_lib, libosdp, 0, 0, 0644, libosdp) > + > + @$(call install_copy, libosdp, 0, 0, 0644, -, /usr/bin/osdpctl) > + > + @$(call install_finish, libosdp) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.39.5 > > > -- Roland Hieber, Pengutronix e.K. | rhi@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |