From f8a73665d3c23e1b0c0176af76a1f5a8bf36befe Mon Sep 17 00:00:00 2001 From: Klaus Reimer Date: Sat, 2 Apr 2011 22:36:18 +0200 Subject: [PATCH] WEBOS: Add build support for webos --- configure | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/configure b/configure index 63669bb2767..da3640ac997 100755 --- a/configure +++ b/configure @@ -698,6 +698,7 @@ Special configuration feature: ps2 for PlayStation 2 psp for PlayStation Portable samsungtv for Samsung TV + webos for HP Palm WebOS wii for Nintendo Wii wince for Windows CE @@ -1134,6 +1135,11 @@ samsungtv) _host_cpu=arm _host_alias=arm-linux-gnueabi ;; +webos) + _host_os=webos + _host_cpu=arm + _host_alias=arm-none-linux-gnueabi + ;; wii) _host_os=wii _host_cpu=ppc @@ -1241,6 +1247,16 @@ psp) exit 1 fi ;; +webos) + if test -z "$WEBOS_SDK"; then + echo "Please set WEBOS_SDK in your environment. export WEBOS_SDK=" + exit 1 + fi + if test -z "$WEBOS_PDK"; then + echo "Please set WEBOS_PDK in your environment. export WEBOS_PDK=" + exit 1 + fi + ;; *) ;; esac @@ -1651,6 +1667,16 @@ case $_host_os in LIBS="$LIBS -lnsl -lsocket" _unix=yes ;; + webos) + CXXFLAGS="$CXXFLAGS --sysroot=$WEBOS_PDK/arm-gcc/sysroot" + CXXFLAGS="$CXXFLAGS -I$WEBOS_PDK/include/SDL" + LDFLAGS="$LDFLAGS -L$WEBOS_PDK/device/lib" + LDFLAGS="$LDFLAGS -Wl,--allow-shlib-undefined" + LIBS="$LIBS -lSDL -lpdl" + add_line_to_config_mk "WEBOS_SDK = $WEBOS_SDK" + _unix=yes + _seq_midi=no + ;; wii) CXXFLAGS="$CXXFLAGS -Os -mrvl -mcpu=750 -meabi -mhard-float" CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections -fmodulo-sched"