2009-05-09 16:59:08 +02:00
|
|
|
$NetBSD: HOWTO-crosscompile-xorg,v 1.5 2009/05/09 14:59:09 joerg Exp $
|
2007-12-22 00:14:50 +01:00
|
|
|
|
|
|
|
How to cross-compile modular Xorg on NetBSD
|
|
|
|
-------------------------------------------
|
|
|
|
|
|
|
|
(a) You have to have modular Xorg and the build tools used by it
|
|
|
|
installed in /usr/pkg (or whatever prefix you want to use for the
|
|
|
|
cross-compiled packages).
|
|
|
|
|
2008-04-23 15:19:15 +02:00
|
|
|
(b) You have run build.sh release for the desired platform. Remember
|
2007-12-22 00:14:50 +01:00
|
|
|
where you wrote the tools to and where the destdir is.
|
|
|
|
|
|
|
|
(c) You have to add the following options to your mk.conf:
|
2009-05-09 16:59:08 +02:00
|
|
|
USE_DESTDIR= yes
|
2007-12-22 00:14:50 +01:00
|
|
|
DEPENDS_TARGET= package-install
|
|
|
|
|
|
|
|
X11_TYPE = modular
|
|
|
|
|
2008-01-15 18:15:41 +01:00
|
|
|
MACHINE_ARCH= what-to-compile-for
|
2007-12-22 00:14:50 +01:00
|
|
|
CROSS_DESTDIR= /where/ever/above/destdir/is
|
|
|
|
TOOLDIR= /where/ever/above/tools/are
|
|
|
|
USE_CROSS_COMPILE= yes
|
|
|
|
|
|
|
|
The first two activate DESTDIR support, which is required for the
|
|
|
|
cross-compile infrastructure. The third option tells it to use modular
|
2008-01-15 18:15:41 +01:00
|
|
|
Xorg. The other four options specify the target platform and the correct
|
|
|
|
path names and activate cross compiling.
|
2007-12-22 00:14:50 +01:00
|
|
|
|
2008-04-25 13:46:07 +02:00
|
|
|
(d) Just run make package e.g. in meta-pkgs/modular-xorg-apps now.
|