From patchwork Tue Feb 4 09:25:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 316502 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 C1EBA2C0091 for ; Tue, 4 Feb 2014 20:26:21 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 040D832077; Tue, 4 Feb 2014 09:26:21 +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 ra-uLTc0JD-s; Tue, 4 Feb 2014 09:26:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 428B530B4B; Tue, 4 Feb 2014 09:26:19 +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 71A1A1CE7BE for ; Tue, 4 Feb 2014 09:26:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B9FB8BC19 for ; Tue, 4 Feb 2014 09:26:17 +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 NjTbYOYFm8CP for ; Tue, 4 Feb 2014 09:26:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id D2D8E8BC12 for ; Tue, 4 Feb 2014 09:26:13 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id a1so12296974wgh.4 for ; Tue, 04 Feb 2014 01:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=kJNnx9fuaGYmHLxzSW12fyx0bALYVeZStpzXNsKzVUo=; b=M0aZ66ie/yTMNZP6KFBTaNkFjs4lhBZfEocd/QidP43+36nM42aSc125XAveq0hAbK dQoYHBqEDidudTzU0do+a0JSHvtUNdIfSxn5m/7g71UzV5m2L/OYkLEmAsY6VAjrZXfx N1zJ9TEvNHwRb8S5itJc4WTdqOwvenR3Zxd0l6sXYxbmpw4O76b2tMB6Du/6TGaZ9tbT ct33D/Z75JF3H7C/XmDZio6StWdI9VEcep27YispcxGwAX+3QLMhZhbKcpY7AIJG3XiF nlg8U75VebDg3vPbi8GZe9tI0MxH8/yKrz56pVXdgMq6Oh313O7dlopkOw7jTiTw8yHb AtQg== X-Received: by 10.194.178.135 with SMTP id cy7mr27530603wjc.21.1391505972143; Tue, 04 Feb 2014 01:26:12 -0800 (PST) Received: from localhost ([74.125.61.14]) by mx.google.com with ESMTPSA id q15sm50968924wjw.18.2014.02.04.01.26.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 01:26:11 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Tue, 4 Feb 2014 10:25:58 +0100 Message-Id: <1391505958-17221-2-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1391505958-17221-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1391505958-17221-1-git-send-email-maxime.hadjinlian@gmail.com> MIME-Version: 1.0 Cc: Richard Braun Subject: [Buildroot] [PATCH 2/2] iucode-tools: 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net iucode_tool is a program to manipulate IntelĀ® X86 and X86-64 processor microcode collections, and to use the kernel facilities to upgrade the microcode on Intel system processors. It was originally sent by Richard Braun Signed-off-by: Maxime Hadjinlian Cc: Richard Braun --- package/Config.in | 1 + package/iucode-tool/Config.in | 8 ++++++++ package/iucode-tool/S00iucode-tool | 23 +++++++++++++++++++++++ package/iucode-tool/iucode-tool.mk | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 package/iucode-tool/Config.in create mode 100644 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 e452c1e..ee2a68e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -304,6 +304,7 @@ source "package/input-tools/Config.in" source "package/intel-microcode/Config.in" source "package/iostat/Config.in" source "package/irda-utils/Config.in" +source "package/iucode-tool/Config.in" source "package/kbd/Config.in" source "package/lcdproc/Config.in" source "package/lm-sensors/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 100644 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..2d52b16 --- /dev/null +++ b/package/iucode-tool/iucode-tool.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# iucode-tool +# +################################################################################ + +IUCODE_TOOL_VERSION = v1.0.1 +IUCODE_TOOL_SITE = git://git.debian.org/users/hmh/iucode-tool.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))