summaryrefslogtreecommitdiff
path: root/doc/HOWTO-crosscompile-xorg
blob: b615ee231fc7a0f63583fdf8b48c3201e418d0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: HOWTO-crosscompile-xorg,v 1.4 2008/04/25 11:46:07 ghen Exp $

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).

(b) You have run build.sh release for the desired platform. Remember
where you wrote the tools to and where the destdir is.

(c) You have to add the following options to your mk.conf:
USE_DESTDIR=		full    
DEPENDS_TARGET=		package-install

X11_TYPE =		modular 

MACHINE_ARCH=		what-to-compile-for
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
Xorg. The other four options specify the target platform and the correct
path names and activate cross compiling.

(d) Just run make package e.g. in meta-pkgs/modular-xorg-apps now.