From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Alexander Stein Date: Mon, 19 Nov 2012 14:16:44 +0100 Message-Id: <1353331004-1356-1-git-send-email-alexander.stein@systec-electronic.com> In-Reply-To: <20121119123257.GC31900@pengutronix.de> References: <20121119123257.GC31900@pengutronix.de> Subject: [ptxdist] [PATCH v2] Add new package: dmidecode Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Michael Olbrich Cc: ptxdist@pengutronix.de, Alexander Stein Signed-off-by: Alexander Stein --- Changes in v2: * Removed patch * Set CONF_TOOL to NO * set MACHINE to i686 rules/dmidecode.in | 7 ++++++ rules/dmidecode.make | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 0 deletions(-) create mode 100644 rules/dmidecode.in create mode 100644 rules/dmidecode.make diff --git a/rules/dmidecode.in b/rules/dmidecode.in new file mode 100644 index 0000000..d4ec1d4 --- /dev/null +++ b/rules/dmidecode.in @@ -0,0 +1,7 @@ +## SECTION=shell_and_console + +config DMIDECODE + tristate + prompt "dmidecode" + help + DMI (Desktop Management Interface) table related utilities diff --git a/rules/dmidecode.make b/rules/dmidecode.make new file mode 100644 index 0000000..3f6633c --- /dev/null +++ b/rules/dmidecode.make @@ -0,0 +1,59 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Alexander Stein +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_DMIDECODE) += dmidecode + +# +# Paths and names +# +DMIDECODE_VERSION := 2.11 +DMIDECODE_MD5 := 535487cc041f2db746587cf40a2059f0 +DMIDECODE := dmidecode-$(DMIDECODE_VERSION) +DMIDECODE_SUFFIX := tar.bz2 +DMIDECODE_URL := http://savannah.nongnu.org/download/dmidecode//$(DMIDECODE).$(DMIDECODE_SUFFIX) +DMIDECODE_SOURCE := $(SRCDIR)/$(DMIDECODE).$(DMIDECODE_SUFFIX) +DMIDECODE_DIR := $(BUILDDIR)/$(DMIDECODE) +DMIDECODE_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +DMIDECODE_CONF_TOOL := NO +DMIDECODE_MAKE_ENV := $(CROSS_ENV) +DMIDECODE_MAKEVARS := \ + prefix=/usr \ + CC=$(CROSS_CC) \ + CFLAGS="$(CROSS_CPPFLAGS)" \ + MACHINE=i686 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/dmidecode.targetinstall: + @$(call targetinfo) + + @$(call install_init, dmidecode) + @$(call install_fixup, dmidecode,PRIORITY,optional) + @$(call install_fixup, dmidecode,SECTION,base) + @$(call install_fixup, dmidecode,AUTHOR,"Alexander Stein ") + @$(call install_fixup, dmidecode,DESCRIPTION,missing) + + @$(call install_copy, dmidecode, 0, 0, 0755, -, /usr/sbin/dmidecode) + + @$(call install_finish, dmidecode) + + @$(call touch) + +# vim: syntax=make -- 1.7.8.6 -- ptxdist mailing list ptxdist@pengutronix.de