BUILD: Rearrange some PSP stuff

Cursory testing shows no regressions caused by this, but proper
testing of this change is recommended.
This commit is contained in:
Max Horn 2011-05-05 14:14:21 +02:00
parent 9b14c50b77
commit d935c53cdf

21
configure vendored
View file

@ -1073,13 +1073,6 @@ psp)
_host_os=psp _host_os=psp
_host_cpu=mipsallegrexel _host_cpu=mipsallegrexel
_host_alias=psp _host_alias=psp
if test -z "$PSPDEV"; then
PSPDEV=`psp-config --pspdev-path`
fi
if test -d "$PSPDEV/psp/lib"; then
LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
fi
LDFLAGS="$LDFLAGS -L$PSPDEV/psp/sdk/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
;; ;;
samsungtv) samsungtv)
_host_os=linux _host_os=linux
@ -1216,9 +1209,15 @@ ps2)
fi fi
;; ;;
psp) psp)
PSPSDK=`psp-config --pspsdk-path` if test -z "$PSPDEV"; then
PSPDEV=`psp-config --pspdev-path`
fi
# TODO: Should we also insist on a valid PSPDEV value?
if test -z "$PSPSDK"; then if test -z "$PSPSDK"; then
echo "Please set the path to PSPSDK in your environment." PSPSDK=`psp-config --pspsdk-path`
fi
if test -z "$PSPSDK"; then
echo "Please set PSPSDK in your environment. export PSPSDK=<path to psp sdk>"
exit 1 exit 1
fi fi
;; ;;
@ -1660,6 +1659,10 @@ case $_host_os in
DEFINES="$DEFINES -D_EE -D__PLAYSTATION2__" DEFINES="$DEFINES -D_EE -D__PLAYSTATION2__"
;; ;;
psp) psp)
if test -d "$PSPDEV/psp/lib"; then
LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
fi
LDFLAGS="$LDFLAGS -L$PSPSDK/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
CXXFLAGS="$CXXFLAGS -O3 -I$PSPSDK/include -D_PSP_FW_VERSION=150" CXXFLAGS="$CXXFLAGS -O3 -I$PSPSDK/include -D_PSP_FW_VERSION=150"
;; ;;
solaris*) solaris*)