Skip to content

Commit

Permalink
BUILD: Rearrange some PSP stuff
Browse files Browse the repository at this point in the history
Cursory testing shows no regressions caused by this, but proper
testing of this change is recommended.
  • Loading branch information
fingolfin committed May 25, 2011
1 parent 9b14c50 commit d935c53
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1073,13 +1073,6 @@ psp)
_host_os=psp
_host_cpu=mipsallegrexel
_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)
_host_os=linux
Expand Down Expand Up @@ -1216,9 +1209,15 @@ ps2)
fi
;;
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
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
fi
;;
Expand Down Expand Up @@ -1660,6 +1659,10 @@ case $_host_os in
DEFINES="$DEFINES -D_EE -D__PLAYSTATION2__"
;;
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"
;;
solaris*)
Expand Down

0 comments on commit d935c53

Please sign in to comment.