From patchwork Thu May 3 05:18:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 156611 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 1F248B6FA4 for ; Thu, 3 May 2012 15:18:40 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0FBC026F97; Thu, 3 May 2012 05:18:39 +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 0TvMVv1Xv-3w; Thu, 3 May 2012 05:18:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 13614252CB; Thu, 3 May 2012 05:18: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 152AD8F753 for ; Thu, 3 May 2012 05:18:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 122EF8C26A for ; Thu, 3 May 2012 05:18:36 +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 cdmIsryXu0WE for ; Thu, 3 May 2012 05:18:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tango.tkos.co.il (tango.tkos.co.il [62.219.50.35]) by whitealder.osuosl.org (Postfix) with ESMTPS id 192F38C14F for ; Thu, 3 May 2012 05:18:32 +0000 (UTC) Received: from sivan.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by tango.tkos.co.il (8.14.4/8.12.11) with ESMTP id q435ISsl001720; Thu, 3 May 2012 08:18:28 +0300 Received: from sapphire.tkos.co.il (taragon.tkos.co.il [10.0.4.3]) by sivan.tkos.co.il (Postfix) with ESMTPS id 32B8BB4F9A; Thu, 3 May 2012 08:18:23 +0300 (IDT) Date: Thu, 3 May 2012 08:18:20 +0300 From: Baruch Siach To: Dimitry Golubovsky Message-ID: <20120503051820.GA20002@sapphire.tkos.co.il> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.62 on 62.219.50.35 Cc: buildroot@busybox.net Subject: Re: [Buildroot] [PATCH] Package proposed: read-edid 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 Hi Dimitry, On Thu, May 03, 2012 at 12:36:15AM -0400, Dimitry Golubovsky wrote: > I would like to propose the read-edid package for inclusion in > Buildroot. This package provides a pair of utilities: one to issue a > real-mode BIOS call to read monitor descriptor block (EDID), and other > to parse it. Please send your patch inline to ease review. Use may 'git send-email' to automate patch sending. Also, you have to sign-off your patches for them to be included in Buildroot. See http://elinux.org/Developer_Certificate_Of_Origin. A few more comments inline below. + $(INSTALL) -D -m 0755 $(@D)/get-edid $(TARGET_DIR)/bin + $(INSTALL) -D -m 0755 $(@D)/parse-edid $(TARGET_DIR)/bin +endef + +$(eval $(call AUTOTARGETS,package,read-edid)) The last two parameters of AUTOTARGETS are not needed anymore. baruch diff --git a/package/Config.in b/package/Config.in index ed66c05..88c5ffd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -210,6 +210,7 @@ source "package/openocd/Config.in" source "package/parted/Config.in" source "package/pciutils/Config.in" source "package/picocom/Config.in" +source "package/read-edid/Config.in" source "package/rng-tools/Config.in" source "package/sane-backends/Config.in" source "package/sdparm/Config.in" diff --git a/package/read-edid/Config.in b/package/read-edid/Config.in new file mode 100644 index 0000000..caeb119 --- /dev/null +++ b/package/read-edid/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_READ_EDID + bool "read-edid" read-edid can only run on x86 PCs and PowerPC Macs, so it should depend on (BR2_i386 || BR2_x86_64 || BR2_powerpc). + help + Read-edid is a pair of tools (originally by John Fremlin) for reading the EDID + from a monitor. It should work with most monitors made since 1996 (except for + newer ones with 256-byte EDID's - WiP), assuming the video card supports the + standard read commands (most do). Read-edid is a set of two tools - get-edid, + which gets the raw edid information from the monitor, and parse-edid, which + turns the raw binary information into an XF86Config-compatible monitor section. + + http://polypux.org/projects/read-edid/ diff --git a/package/read-edid/read-edid.mk b/package/read-edid/read-edid.mk new file mode 100644 index 0000000..6033957 --- /dev/null +++ b/package/read-edid/read-edid.mk @@ -0,0 +1,21 @@ +############################################ +# +# read-edid +# +############################################ + +READ_EDID_VERSION = 1.4.2 +READ_EDID_SOURCE = read-edid-$(READ_EDID_VERSION).tar.gz This is the default value. Just drop this line. +READ_EDID_SITE = http://www.polypux.org/projects/read-edid/ + +define READ_EDID_BUILD_CMDS + $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) You can use $(TARGET_CONFIGURE_OPTS) instead of specifying CC and LD. +endef + +define READ_EDID_INSTALL_TARGET_CMDS