blueDonkey.org

Netbsd.MandrakeLinuxBuild
NetBSD Build Under Mandrake Linux


Background

Although Mandrake Linux 9.0 is a POSIX platform, the cross compilation of NetBSD was not totally painless. A few changes to the tree were necessary (which will be filed as a problem report) to get it to compile.

The information here includes the patch for the source tree, as well as commands that were used to build the tools, userland binaries and the kernel under Mandrake Linux 9.0.

The Source Tree Patch

Download

Installation

To install the patch, execute the following command:
patch -p0 < linux-20030527.patch

Build Commands

Tools & Userland

The tools and userland build requires LIBC and LIBM to be defined to be empty strings. This can be achieved from the command line as follows:
./build.sh -T ~/NetBSD/ibmnws/tools \
           -O ~/NetBSD/ibmnws/obj \
           -D ~/NetBSD/ibmnws/root \
           -U -m ibmnws \
           -V LIBC= -V LIBM= \
           build
Obviously, change the pathnames and platform name (ibmnws in the above example) to suit your requirements.

Kernel

The kernel build will work in exactly the same way as building it on a NetBSD system:
./build.sh -T ~/NetBSD/ibmnws/tools \
           -O ~/NetBSD/ibmnws/obj \
           -D ~/NetBSD/ibmnws/root \
           -U -m ibmnws \
           kernel=IBMNWS

Feedback

Please enter any feedback you have about this work here. You will need to register with my TWiki system before being allowed to edit or add any information.

-- JohnGordon - 28 May 2003

 
 
© 2003-5 blueDonkey.org, except where otherwise noted. All rights reserved.