TOPDIR="$(cd $(dirname $(which $0)); pwd)"
-PKGADD=$TOPDIR/src/pkgadd
-PKGADD_CONF=$TOPDIR/src/pkgadd.conf
-PKGMK_CONF=$TOPDIR/src/pkgmk.conf
+PKGADD=$TOPDIR/pkgadd
+PKGADD_CONF=$TOPDIR/pkgadd.conf
+PKGMK_CONF=$TOPDIR/pkgmk-cross.conf
. $PKGMK_CONF
if [ -z "$CLFS" ]; then
export CHOST="$(echo $MACHTYPE)"
-export CTARGET="arm-crux-linux-gnueabi"
+# hardfp (mainline)
+export CTARGET="arm-crux-linux-gnueabihf"
export CLFS="/devel/crux-arm/toolchain/clfs"
export CROSSTOOLS="/devel/crux-arm/toolchain/crosstools"
-# hardfp
-#export CTARGET="arm-crux-linux-gnueabihf"
-#export CLFS="/devel/crux-arm/toolchain-hardfp/clfs"
-#export CROSSTOOLS="/devel/crux-arm/toolchain-hardfp/crosstools"
+#
+# softfp
+#export CTARGET="arm-crux-linux-gnueabi"
+#export CLFS="/devel/crux-arm/toolchain-softfp/clfs"
+#export CROSSTOOLS="/devel/crux-arm/toolchain-softfp/crosstools"
+#
# noeabi
#export CTARGET="arm-crux-linux-gnu"
#export CLFS="/devel/crux-arm/toolchain-noeabi/clfs"
export LD="$CTARGET-ld"
export STRIP="$CTARGET-strip"
-export CFLAGS="-O2 -pipe -mno-unaligned-access"
-# hardfp
-#export CFLAGS="-O2 -pipe -mno-unaligned-access -mfloat-abi=hard"
-export CXXFLAGS="$CFLAGS"
-
+# hardfp (mainline)
+export CFLAGS="-O2 -pipe -mno-unaligned-access -mfloat-abi=hard"
+#
+# softfp
+#export CFLAGS="-O2 -pipe -mno-unaligned-access"
+#
+# device optimizations (not really required if you can use native builds)
#arm9tdmi_CFLAGS="-O2 -pipe -march=armv4 -mtune=arm9tdmi"
#armv5te_CFLAGS="-O2 -pipe -msoft-float -march=armv5te"
#strongarm_CFLAGS="-O2 -pipe -march=armv4 -mtune=strongarm"
#xscale_CFLAGS="-O2 -pipe -msoft-float -march=armv5te -mtune=xscale"
+export CXXFLAGS="$CFLAGS"
+
STRIP_CMD="$STRIP"
# PKGMK_SOURCE_MIRRORS=()
# PKGMK_IGNORE_FOOTPRINT="no"
# PKGMK_NO_STRIP="no"
# PKGMK_WGET_OPTS=""
+PKGMK_COMPRESSION_MODE="xz"
# End of file