|
|
@ -383,11 +383,18 @@ assert "$SYSTEM" "$SYSTEM" "unsupported"
|
|
|
|
CORES=${CORES:-${DCORES}}
|
|
|
|
CORES=${CORES:-${DCORES}}
|
|
|
|
printf "Detecting machine architecture..."
|
|
|
|
printf "Detecting machine architecture..."
|
|
|
|
if test "x$PLATFORM" = "x"; then
|
|
|
|
if test "x$PLATFORM" = "x"; then
|
|
|
|
|
|
|
|
case $SYSTEM in
|
|
|
|
|
|
|
|
"freebsd")
|
|
|
|
|
|
|
|
PLATFORM=`uname -p 2> /dev/null`
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
PLATFORM=`uname -m 2> /dev/null`
|
|
|
|
PLATFORM=`uname -m 2> /dev/null`
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
case $PLATFORM in
|
|
|
|
"macppc"|"Power Macintosh"|"powerpc")
|
|
|
|
"macppc"|"Power Macintosh"|"powerpc"|"powerpcspe")
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
@ -475,19 +482,22 @@ case $PLATFORM in
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"ppc64"|"ppc64le")
|
|
|
|
"ppc64"|"ppc64le"|"powerpc64")
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
|
PLATFORM=ppc64
|
|
|
|
PLATFORM=ppc64
|
|
|
|
ENVIRONMENT=64
|
|
|
|
ENVIRONMENT=64
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
arm|armv6l|armv7l)
|
|
|
|
arm|armv6|armv6l|armv7|armv7l)
|
|
|
|
if test "$PLATFORM" = "armv6l"; then
|
|
|
|
case "$PLATFORM" in
|
|
|
|
|
|
|
|
"armv6"|"armv6l")
|
|
|
|
CFLAGS="$CFLAGS -march=armv6k";
|
|
|
|
CFLAGS="$CFLAGS -march=armv6k";
|
|
|
|
elif test "$PLATFORM" = "armv7l"; then
|
|
|
|
;;
|
|
|
|
|
|
|
|
"armv7"|"armv7l")
|
|
|
|
CFLAGS="$CFLAGS -march=armv7-a";
|
|
|
|
CFLAGS="$CFLAGS -march=armv7-a";
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
RTM_ENABLE="CK_MD_RTM_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
LSE_ENABLE="CK_MD_LSE_DISABLE"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
|
MM="${MM:-"CK_MD_RMO"}"
|
|
|
|