Friday, March 04, 2005

Built XF4.2.0 but ...

Build XFree 4.2.0 but dont jump and down yet.

Actually this isnt XFree 4.2.0 but closer to XFree
4.1.0 or something in between it is the
derivative that comes from uclibc buildroot.
I have modified the host.def file to build
the Xvesa server and is build.
Then I tried running the thing inside of
uclibc root/chroot ... the X11 cross comes
up and so does the herringbone pattern but
the mouse is froze and ctrl+alt+backspace
is frozen, so, i have to hit the power/reset.

Ok how did I get the thing to build? Its more
of question of what I wasnt doing? I wasnt
paying attention to the sed command in the
Makefile script. The
cross.def file contains the locations of the
cross compiler and cross linker
if these are fubar-ed then nothing
will work.

look at cross.def:
/* $XFree86: xc/config/cf/cross.def,v 1.2 2001/03/30 02:15:17 keithp Exp $ */
/*
* This file contains redefinitions of some symbols to enable
* cross compilation: e.g. paths for include files and paths to
* compiler images. It will have to be edited to reflect these
* given your local configuration.
*/
#undef i386Architecture
#define Arm32Architecture

#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2
#define ServerCDebugFlags -O2
#undef StandardDefines
#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir REPLACE_STAGING_DIR/include
#define PreIncDir
#undef PostIncDir
#define PostIncDir REPLACE_STAGING_DIR/lib/gcc-lib/arm-linux/3.2/include
#define CcCmd REPLACE_STAGING_DIR/bin/arm-uclibc-gcc
#undef CplusplusCmd
#define HasCplusplus NO
#define CplusplusCmd NO
#define DoRanlibCmd YES
#define RanlibCmd REPLACE_STAGING_DIR/bin/arm-uclibc-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary NO

#undef LdPostLib
#define LdPostLib
#undef LdCmd
#define LdCmd REPLACE_STAGING_DIR/bin/arm-uclibc-ld

#undef ExtensionOSDefines
#define ExtensionOSDefines

#define ServerXdmcpDefines /**/

#include

REPLACE_STAGING_DIR needs to be sed-ed
with the staging directory
and arm-uclibc- needs to be
replaced with i386-uclibc-linux-gcc

then tada it compiles and builds.
getting it to work is another thing.
my best guess is that i am missing
and entry in the dev filesystem

No comments: