From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 21 Jan 2022 08:23:56 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nAoH6-008Xfq-8M for lore@lore.pengutronix.de; Fri, 21 Jan 2022 08:23:56 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nAoH5-0002BR-Dg; Fri, 21 Jan 2022 08:23:55 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAoCu-0005rg-1f; Fri, 21 Jan 2022 08:19:36 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nAoCu-00BW7R-17; Fri, 21 Jan 2022 08:19:35 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nAoCs-008G6g-AY; Fri, 21 Jan 2022 08:19:34 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 21 Jan 2022 08:19:34 +0100 Message-Id: <20220121071934.1968495-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220108184518.3774572-2-christian.melki@t2data.com> References: <20220108184518.3774572-2-christian.melki@t2data.com> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] hwdata: 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: Christian Melki Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as effdc6de967ab9e86d6939fc821bd97726e038a6. Michael [sent from post-receive hook] On Fri, 21 Jan 2022 08:19:34 +0100, Christian Melki wrote: > Introduce the hwdata package. > It's a maintained set of the classic .ids files provided > by several packages (usbutils, pciutils etc). > It uses /usr/share/ for now, as a smaller changeset for > the introduction. After this has settled, one can move > packages collectively to /usr/share/hwdata. > > This means: > * Packages need to stop providing their own > set of these files. > > * Packages now select hwdata as a dependency. > > * Packages need to stop updating these files. It's done > by updating the hwdata package. > > * Packages can't assume that other packages can read compressed > variants of the text database. > > hwdata will probably be replaced by systemd-hwdb in the long run. > > Signed-off-by: Christian Melki > Message-Id: <20220108184518.3774572-2-christian.melki@t2data.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/hwdata.in b/rules/hwdata.in > new file mode 100644 > index 000000000000..c4e624b7ff90 > --- /dev/null > +++ b/rules/hwdata.in > @@ -0,0 +1,47 @@ > +## SECTION=shell_and_console > + > +menuconfig HWDATA > + tristate > + prompt "hwdata " > + help > + Hwdata package. > + This package contains identity files for pci and usb etc. > + Various packages that have not been ported to systemd's binary > + hwdb may use this instead. > + > +if HWDATA > + > +config HWDATA_PCI > + bool > + prompt "hwdata PCI" > + help > + The hwdata PCI (Vendor and product id) data set. > + > +config HWDATA_USB > + bool > + prompt "hwdata USB" > + help > + The hwdata USB (Vendor and product id) data set. > + > +config HWDATA_PNP > + bool > + prompt "hwdata PNP" > + help > + The hwdata PNP (Vendor names and vendor acronyms) > + data set. > + > +config HWDATA_OUI > + bool > + prompt "hwdata OUI" > + help > + The hwdata OUI (IEEE Organizationally Unique Identifier) > + data set. > + > +config HWDATA_IAB > + bool > + prompt "hwdata IAB" > + help > + The hwdata IAB (IEEE Individual Address Block) > + data set. > + > +endif > diff --git a/rules/hwdata.make b/rules/hwdata.make > new file mode 100644 > index 000000000000..5d09b6c810ca > --- /dev/null > +++ b/rules/hwdata.make > @@ -0,0 +1,84 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2021 by Christian Melki > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_HWDATA) += hwdata > + > +# > +# Paths and names > +# > +HWDATA_VERSION := 0.355 > +HWDATA_MD5 := ee30c73571b9392a7b2d77619a6842a5 > +HWDATA := hwdata-$(HWDATA_VERSION) > +HWDATA_SUFFIX := tar.gz > +HWDATA_URL := https://github.com/vcrhonek/hwdata/archive/refs/tags/v$(HWDATA_VERSION).$(HWDATA_SUFFIX) > +HWDATA_SOURCE := $(SRCDIR)/$(HWDATA).$(HWDATA_SUFFIX) > +HWDATA_DIR := $(BUILDDIR)/$(HWDATA) > +HWDATA_LICENSE := GPL-2.0-or-later OR XFree86-1.0 > +HWDATA_LICENSE_FILES := \ > + file://LICENSE;md5=1556547711e8246992b999edd9445a57 \ > + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +HWDATA_PATH := PATH=$(CROSS_PATH) > +HWDATA_ENV := $(CROSS_ENV) > + > +# Package is not really using autoconf, so skip normal cross declaration. > +# Only text files are processed. Just prefix setting here. > +HWDATA_CONF_TOOL := autoconf > +HWDATA_CONF_OPT := \ > + --prefix=/usr > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/hwdata.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, hwdata) > + @$(call install_fixup, hwdata,PRIORITY,optional) > + @$(call install_fixup, hwdata,SECTION,base) > + @$(call install_fixup, hwdata,AUTHOR,"Christian Melki ") > + @$(call install_fixup, hwdata,DESCRIPTION,missing) > + > +ifdef PTXCONF_HWDATA_PCI > + @$(call install_copy, hwdata, 0, 0, 0644, \ > + $(HWDATA_PKGDIR)/usr/share/hwdata/pci.ids, /usr/share/pci.ids) > +endif > + > +ifdef PTXCONF_HWDATA_USB > + @$(call install_copy, hwdata, 0, 0, 0644, \ > + $(HWDATA_PKGDIR)/usr/share/hwdata/usb.ids, /usr/share/usb.ids) > +endif > + > +ifdef PTXCONF_HWDATA_PNP > + @$(call install_copy, hwdata, 0, 0, 0644, \ > + $(HWDATA_PKGDIR)/usr/share/hwdata/pnp.ids, /usr/share/pnp.ids) > +endif > + > +ifdef PTXCONF_HWDATA_OUI > + @$(call install_copy, hwdata, 0, 0, 0644, \ > + $(HWDATA_PKGDIR)/usr/share/hwdata/oui.txt, /usr/share/oui.txt) > +endif > + > +ifdef PTXCONF_HWDATA_IAB > + @$(call install_copy, hwdata, 0, 0, 0644, \ > + $(HWDATA_PKGDIR)/usr/share/hwdata/iab.txt, /usr/share/iab.txt) > +endif > + > + @$(call install_finish, hwdata) > + > + @$(call touch) > + > +# vim: syntax=make _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de