Skip to contentSkip to conversation

Added package v86d which provides a real-mode helper for uvesafb driver.

PATCH New Dmitry 2 participants 3 messages May 7, 2012

lore
Share & tools
lore

Dmitry

author
#0 lore raw

PATCH 1/1 Added package v86d which provides a real-mode helper for uvesafb driver.

---
 package/Config.in      |    1 +
 package/v86d/Config.in |    9 +++++++++
 package/v86d/v86d.mk   |   26 ++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 package/v86d/Config.in
 create mode 100644 package/v86d/v86d.mk
package/Config.in +1 -0
index 34c0280..208e66f 100644
@@ -230,6 +230,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
package/v86d/Config.in new file +9 -0
new file mode 100644
index 0000000..ba1baca
@@ -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/
package/v86d/v86d.mk new file +26 -0
new file mode 100644
index 0000000..035797e
@@ -0,0 +1,26 @@
+############################################
+#
+# v86d
+# 
+############################################
+
+V86D_VERSION = v86d-0.1.10
+V86D_SITE = git://repo.or.cz/v86d.git
+
+# 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
+
+V86D_POST_CONFIGURE_HOOKS += V86D_REALLY_RUN_CONFIGURE
+
+# v86d's configure script is not autoconf-based: parameters
+# supplied by Buildroot cause it to produce no result; explicit
+# invocation is needed.
+
+define V86D_REALLY_RUN_CONFIGURE
+	(cd $(@D) ; ./configure --default)
+endef
+
+$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 Added package v86d which provides a real-mode helper for uvesafb driver.

Hi Dmitry,

Quoted 42 lines · Dmitry
---
 package/Config.in      |    1 +
 package/v86d/Config.in |    9 +++++++++
 package/v86d/v86d.mk   |   26 ++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 package/v86d/Config.in
 create mode 100644 package/v86d/v86d.mk
package/Config.in +1 -0
index 34c0280..208e66f 100644
@@ -230,6 +230,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
package/v86d/Config.in new file +9 -0
new file mode 100644
index 0000000..ba1baca
@@ -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/
package/v86d/v86d.mk new file +0 -0
new file mode 100644
index 0000000..035797e

package/v86d/v86d.mk line 8

Quoted 8 lines
package/v86d/v86d.mk new file +8 -0
@@ -0,0 +1,26 @@
+############################################
+#
+# v86d
+# 
+############################################
+
+V86D_VERSION = v86d-0.1.10
+V86D_SITE = git://repo.or.cz/v86d.git

A http URL would be more friendly to those behind strict firewalls. Even better, the website you linked to above seems to offer a tar.bz2 archive of the package source.

package/v86d/v86d.mk line 20

Quoted 12 lines
package/v86d/v86d.mk new file +12 -0
+
+# 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
+
+V86D_POST_CONFIGURE_HOOKS += V86D_REALLY_RUN_CONFIGURE
+
+# v86d's configure script is not autoconf-based: parameters
+# supplied by Buildroot cause it to produce no result; explicit
+# invocation is needed.

In this case, just define V86D_CONFIGURE_CMDS, and use GENTARGETS instead of AUTOTARGETS, which in not appropriate for this package. Then, you won't need this V86D_REALLY_RUN_CONFIGURE hack.

Also, having the configure step above the build step looks more natural to me.

baruch

Quoted 7 lines
package/v86d/v86d.mk new file +6 -0
+
+define V86D_REALLY_RUN_CONFIGURE
+	(cd $(@D) ; ./configure --default)
+endef
+
+$(eval $(call AUTOTARGETS))
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 Added package v86d which provides a real-mode helper for uvesafb driver.

Thanks, re-sent.

On Sun, May 6, 2012 at 11:58 PM, Baruch Siach <[email protected]> wrote:

...

Quoted 3 lines

A http URL would be more friendly to those behind strict firewalls. Even better, the website you linked to above seems to offer a tar.bz2 archive of the package source.

...

Signature · 3 lines
Dimitry Golubovsky

Anywhere on the Web