From patchwork Tue Jul 17 03:17:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitry Golubovsky X-Patchwork-Id: 171314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id C81442C0159 for ; Tue, 17 Jul 2012 13:26:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2AE4D101619; Tue, 17 Jul 2012 03:25:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u36cOjch1qdd; Tue, 17 Jul 2012 03:25:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 51F961011D1; Tue, 17 Jul 2012 03:25:56 +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 E225A8F797 for ; Tue, 17 Jul 2012 03:25:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 956A18BD7F for ; Tue, 17 Jul 2012 03:25:54 +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 OtH9LCBOiMOn for ; Tue, 17 Jul 2012 03:25:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.golubovsky.org (www.golubovsky.org [66.92.54.88]) by whitealder.osuosl.org (Postfix) with ESMTP id 401558A98E for ; Tue, 17 Jul 2012 03:25:52 +0000 (UTC) Received: by www.golubovsky.org (Postfix, from userid 1002) id 7F617E8B13; Mon, 16 Jul 2012 23:18:05 -0400 (EDT) From: Dmitry To: buildroot@busybox.net Date: Mon, 16 Jul 2012 23:17:03 -0400 Message-Id: <1342495023-17145-1-git-send-email-golubovsky@gmail.com> X-Mailer: git-send-email 1.7.2.5 Cc: Dmitry Subject: [Buildroot] [PATCH] Added package v86d which provides a real-mode helper for uvesafb driver. 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: Dmitry --- package/Config.in | 1 + package/v86d/Config.in | 9 +++++++++ package/v86d/v86d.mk | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 package/v86d/Config.in create mode 100644 package/v86d/v86d.mk diff --git a/package/Config.in b/package/Config.in index 99257b4..23583d2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -238,6 +238,7 @@ source "package/unionfs/Config.in" source "package/usb_modeswitch/Config.in" source "package/usbmount/Config.in" source "package/usbutils/Config.in" +source "package/v86d/Config.in" source "package/wipe/Config.in" source "package/xfsprogs/Config.in" endmenu diff --git a/package/v86d/Config.in b/package/v86d/Config.in new file mode 100644 index 0000000..ba1baca --- /dev/null +++ b/package/v86d/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_V86D + bool "v86d" + depends on (BR2_i386 || BR2_x86_64) + help + v86d is the userspace helper that runs x86 code in an emulated + environment. uvesafb will not work without v86d. v86d currently + supports the x86 and amd64 (x86-64) architectures. + + http://dev.gentoo.org/~spock/projects/uvesafb/ diff --git a/package/v86d/v86d.mk b/package/v86d/v86d.mk new file mode 100644 index 0000000..59187fc --- /dev/null +++ b/package/v86d/v86d.mk @@ -0,0 +1,36 @@ +############################################ +# +# v86d +# +############################################ + +V86D_VERSION = 0.1.10 +V86D_SOURCE = v86d-$(V86D_VERSION).tar.bz2 +V86D_SITE = http://dev.gentoo.org/~spock/projects/uvesafb/archive + +# The configure script autodetects the host architecture, +# and assumes the target architecture to be the same as the host, +# so we must use the target architecture flags provided +# by Buildroot for proper cross-compilation. The x86emu +# configure option should be 'n' for i386, and 'y' for x86-64. + +X86EMU = $(if $(BR2_i386),n,y) + +# v86d's configure script is not autoconf-based. +# GENTARGETS macro will be used rather than AUTOTARGETS. + +define V86D_CONFIGURE_CMDS + (cd $(@D) ; ./configure --with-debug=n --with-klibc=n --with-x86emu=$(X86EMU)) +endef + +# It is necessary to define __i386__ explicitly for successful compilation. + +define V86D_BUILD_CMDS + $(MAKE) CC="$(TARGET_CC) -D__i386__" LD="$(TARGET_LD)" -C $(@D) all +endef + +define V86D_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/v86d $(TARGET_DIR)/sbin/v86d +endef + +$(eval $(call GENTARGETS))