From patchwork Thu Sep 20 15:12:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Braun X-Patchwork-Id: 185420 X-Patchwork-Delegate: patrickdepinguin+buildroot@gmail.com 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 C41B02C008B for ; Fri, 21 Sep 2012 01:12:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 324AA30DC1; Thu, 20 Sep 2012 15:12:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9r+0K7dFK5gE; Thu, 20 Sep 2012 15:12:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C4F2B30D76; Thu, 20 Sep 2012 15:12:45 +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 550A08F75E for ; Thu, 20 Sep 2012 15:12:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8F9118D079 for ; Thu, 20 Sep 2012 15:12:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V6CNMT7F6NOa for ; Thu, 20 Sep 2012 15:12:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.sceen.net (shattrath.sceen.net [94.23.252.191]) by whitealder.osuosl.org (Postfix) with ESMTP id 4307A8D15E for ; Thu, 20 Sep 2012 15:12:34 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sceen.net (Postfix) with ESMTP id 96A1F14099A for ; Thu, 20 Sep 2012 17:12:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sceen.net Received: from mail.sceen.net ([127.0.0.1]) by localhost (mail.sceen.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NdsQQxzoby89 for ; Thu, 20 Sep 2012 17:12:33 +0200 (CEST) Received: by mail.sceen.net (Postfix, from userid 1000) id 2DF75141028; Thu, 20 Sep 2012 17:12:33 +0200 (CEST) From: Richard Braun To: buildroot@busybox.net Date: Thu, 20 Sep 2012 17:12:33 +0200 Message-Id: <1348153953-30568-1-git-send-email-rbraun@sceen.net> X-Mailer: git-send-email 1.7.2.5 Subject: [Buildroot] [PATCH] iucode-tool: 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: Richard Braun --- package/Config.in | 1 + package/iucode-tool/Config.in | 8 ++++++++ package/iucode-tool/S00iucode-tool | 23 +++++++++++++++++++++++ package/iucode-tool/iucode-tool.mk | 20 ++++++++++++++++++++ 4 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 package/iucode-tool/Config.in create mode 100755 package/iucode-tool/S00iucode-tool create mode 100644 package/iucode-tool/iucode-tool.mk diff --git a/package/Config.in b/package/Config.in index e8a3f50..e74845b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -214,6 +214,7 @@ source "package/input-event-daemon/Config.in" source "package/input-tools/Config.in" source "package/intel-microcode/Config.in" source "package/iostat/Config.in" +source "package/iucode-tool/Config.in" source "package/irda-utils/Config.in" source "package/kbd/Config.in" source "package/lcdproc/Config.in" diff --git a/package/iucode-tool/Config.in b/package/iucode-tool/Config.in new file mode 100644 index 0000000..a9670ce --- /dev/null +++ b/package/iucode-tool/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_IUCODE_TOOL + bool "iucode-tool" + depends on BR2_x86_64 || BR2_i386 + select BR2_PACKAGE_INTEL_MICROCODE + help + Intel processor microcode tool + + http://packages.debian.org/source/sid/iucode-tool diff --git a/package/iucode-tool/S00iucode-tool b/package/iucode-tool/S00iucode-tool new file mode 100755 index 0000000..0c1e409 --- /dev/null +++ b/package/iucode-tool/S00iucode-tool @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Upload microcode into the processor. +# + +microcode_file="/usr/share/misc/intel-microcode.dat" + +case "$1" in + start) + echo "Starting iucode-tool:" + /usr/sbin/iucode_tool -k $microcode_file + echo "done" + ;; + stop) + ;; + restart|reload) + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? diff --git a/package/iucode-tool/iucode-tool.mk b/package/iucode-tool/iucode-tool.mk new file mode 100644 index 0000000..0991bbf --- /dev/null +++ b/package/iucode-tool/iucode-tool.mk @@ -0,0 +1,20 @@ +############################################################# +# +# iucode-tool +# +############################################################# + +IUCODE_TOOL_VERSION = v0.8.3 +IUCODE_TOOL_SITE = git://anonscm.debian.org/users/hmh/iucode-tool.git +IUCODE_TOOL_SITE_METHOD = git +IUCODE_TOOL_AUTORECONF = YES +IUCODE_TOOL_LICENSE = GPLv2+ +IUCODE_TOOL_LICENSE_FILES = COPYING + +define IUCODE_TOOL_INSTALL_INIT_SYSV + [ -f $(TARGET_DIR)/etc/init.d/S00iucode-tool ] || \ + $(INSTALL) -D -m 0755 package/iucode-tool/S00iucode-tool \ + $(TARGET_DIR)/etc/init.d/S00iucode-tool +endef + +$(eval $(autotools-package))