First off, I am a NetBSD user....|
That said, I've been playing around with WebOS (Palm) which is a Linux ARM derivative.
I can manually build source by this method:
DEVICEOPTS="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
export LDFLAGS="-L/opt/PalmPDK/device/lib -Wl,--allow-shlib-undefined"
./configure --host=arm-none-linux-gnueabi --prefix=`pwd`/opt/WebOS_arm --without-icu --without-clucene --enable-static
I've always used pkgsrc to compile apps, and thought it would be fun to make this process more automated.
Information on architecture cross compiling is quite sparse. I found one chap who did it on FreeBSD http://lists.freebsd.org/pipermail/freebsd-embedded/2008-May/000456.html and I tried adapting his methodology, but have had little success.
I added to my mk.conf
.if defined(USE_CROSS_COMPILE) && !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
.endif # end cross-compilation settings
After implementing his steps I get:
ERROR: This package has set PKG_FAIL_REASON:
ERROR: The cross-compiling root /opt/WebOS_arm is incomplete
*** Error code 1
What am I missing? What do I need to do to the destination directory to make it pleasing to pkgsrc?