[Openchrome-users] Openchrome on NetBSD

Xavier Bachelot xb_ml
Mon Jan 23 13:35:41 PST 2006


George E Sollish wrote:
> Hi,
> 
> Not technically a 'user' yet, but I've got an Averatec 3715 laptop with 
> the Unichrome Pro and wonder whether there are any bsd-er's out there. 
> I've svn'ed the latest source and applied it to a current xorg-6.9.0 tree 
> and the 'make' fails halfway through; any tricks for those of us not 
> running linux?
> 
I'm not using NetBSD, but I have some patches around to allow 
compilation inside of xorg-6.9 tree.
My 'recipe' is replace the driver dir and the libviaxvmc dir with the 2 
dirs from openchrome svn, make corresponding symlinks and apply the 
following patches (sorry for the format, I don't have them handy here).

--- xc/lib/XvMC/hw/via/Imakefile.orig    2005-12-30 00:27:14.000000000 +0100
+++ xc/lib/XvMC/hw/via/Imakefile    2005-12-30 00:28:23.000000000 +0100
@@ -36,7 +36,7 @@
  #define IHaveSubdirs

  #if defined(i386Architecture) || defined(AMD64Architecture)
-VIA_SUBDIRS = hw/via/unichrome hw/via/unichromeProA
+VIA_SUBDIRS = hw/via
  INTEL_SUBDIRS = hw/i810
  #endif

--- xc/lib/XvMC/via/Imakefile.orig    2005-12-30 00:51:28.000000000 +0100
+++ xc/lib/XvMC/via/Imakefile    2005-12-30 00:51:16.000000000 +0100
@@ -11,7 +11,7 @@
  /* Anyone know how to determine this properly?
   * Comment out the following to build in the x tree
   */
-#define OUTOFTREE
+#undef OUTOFTREE

  #ifdef OUTOFTREE
  VIADRIVERSRC=../unichrome
@@ -47,12 +47,14 @@
  InstallSharedLibrary(viaXvMCPro,$(SoRev),$(SHLIBDIR))

  #if defined(LinuxArchitecture)
-OS_SUBDIR = linux

-LinkSourceFile(xf86drm.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm)
-LinkSourceFile(xf86drmHash.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm)
-LinkSourceFile(xf86drmRandom.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm)
-LinkSourceFile(xf86drmSL.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm)
+LIBDRM_DIR = ../../../../extras/drm/libdrm
+
+LinkSourceFile(xf86drm.c,$(LIBDRM_DIR))
+LinkSourceFile(xf86drmHash.c,$(LIBDRM_DIR))
+LinkSourceFile(xf86drmRandom.c,$(LIBDRM_DIR))
+LinkSourceFile(xf86drmSL.c,$(LIBDRM_DIR))
+
  #endif

  DependTarget()


Hope this helps,

Xavier




More information about the Openchrome-users mailing list