From patchwork Sat Jun 2 16:13:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 162433 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 92D3EB700E for ; Sun, 3 Jun 2012 02:15:22 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5FB4931ED3; Sat, 2 Jun 2012 16:15:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7F+I5gCBXrir; Sat, 2 Jun 2012 16:15:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9225B31EEC; Sat, 2 Jun 2012 16:14:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 248128F753 for ; Sat, 2 Jun 2012 16:14:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1416A9060D for ; Sat, 2 Jun 2012 16:14:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FzmeRRU9GpQi for ; Sat, 2 Jun 2012 16:14:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id BB9EC8F6CD for ; Sat, 2 Jun 2012 16:14:26 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 031D7191; Sat, 2 Jun 2012 18:13:27 +0200 (CEST) Received: from localhost (unknown [78.250.250.16]) by mail.free-electrons.com (Postfix) with ESMTPSA id 77562195 for ; Sat, 2 Jun 2012 18:13:20 +0200 (CEST) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sat, 2 Jun 2012 18:13:57 +0200 Message-Id: <774519e24bff943a30688e14d34e6e37bb57ed4e.1338653505.git.thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 07/10] dmidecode: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/dmidecode/Config.in | 9 +++++ .../dmidecode/dmidecode-build-system-fixes.patch | 35 ++++++++++++++++++++ package/dmidecode/dmidecode.mk | 18 ++++++++++ 4 files changed, 63 insertions(+) create mode 100644 package/dmidecode/Config.in create mode 100644 package/dmidecode/dmidecode-build-system-fixes.patch create mode 100644 package/dmidecode/dmidecode.mk diff --git a/package/Config.in b/package/Config.in index 53d6bba..09ca9dd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -173,6 +173,7 @@ source "package/dbus-python/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/devmem2/Config.in" endif +source "package/dmidecode/Config.in" source "package/dmraid/Config.in" source "package/dosfstools/Config.in" source "package/e2fsprogs/Config.in" diff --git a/package/dmidecode/Config.in b/package/dmidecode/Config.in new file mode 100644 index 0000000..22272ed --- /dev/null +++ b/package/dmidecode/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_DMIDECODE + bool "dmidecode" + depends on BR2_i386 || BR2_x86_64 + help + Dmidecode reports information about your system's hardware + as described in your system BIOS according to the SMBIOS/DMI + standard. + + http://www.nongnu.org/dmidecode/ diff --git a/package/dmidecode/dmidecode-build-system-fixes.patch b/package/dmidecode/dmidecode-build-system-fixes.patch new file mode 100644 index 0000000..275f9df --- /dev/null +++ b/package/dmidecode/dmidecode-build-system-fixes.patch @@ -0,0 +1,35 @@ +Minor build system fixes + +Usual build system fixes to allow CC/CFLAGS/LDFLAGS to be overriden +from the command line, and completed by additional flags from the +Makefile. + +Signed-off-by: Thomas Petazzoni + +Index: b/Makefile +=================================================================== +--- a/Makefile ++++ b/Makefile +@@ -12,9 +12,10 @@ + # (at your option) any later version. + # + +-CC = gcc +-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ +- -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef ++CC ?= gcc ++override CFLAGS += \ ++ -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ ++ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef + #CFLAGS += -DBIGENDIAN + #CFLAGS += -DALIGNMENT_WORKAROUND + +@@ -23,7 +24,7 @@ + #CFLAGS += -g + + # Pass linker flags here +-LDFLAGS = ++override LDFLAGS += + + DESTDIR = + prefix = /usr/local diff --git a/package/dmidecode/dmidecode.mk b/package/dmidecode/dmidecode.mk new file mode 100644 index 0000000..a036a7a --- /dev/null +++ b/package/dmidecode/dmidecode.mk @@ -0,0 +1,18 @@ +############################################################# +# +# dmidecode +# +############################################################# + +DMIDECODE_VERSION = 2.11 +DMIDECODE_SITE = http://download.savannah.gnu.org/releases/dmidecode/ + +define DMIDECODE_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) +endef + +define DMIDECODE_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install +endef + +$(eval $(call GENTARGETS))