From 900ec8d9441fab73d092e2582a15730978f20758 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Thu, 14 Oct 2010 13:10:12 +0000 Subject: fix option handling in configure for application. also tries to "make reconf" work, but realpath reports error... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28280 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/configure b/tools/configure index e716439ca2..5f148d892c 100755 --- a/tools/configure +++ b/tools/configure @@ -56,7 +56,7 @@ app_get_platform() { if [ -z "$ARG_PLATFORM" ]; then choice=`input` else - choice="$APP_PLATFORM" + choice="$ARG_PLATFORM" fi case $choice in @@ -69,7 +69,7 @@ app_get_platform() { if [ -z "$ARG_LCDWIDTH" ]; then app_lcd_width=`input` else - app_lcd_width=`$ARG_LCDWIDTH` + app_lcd_width="$ARG_LCDWIDTH" fi if [ -z "$app_lcd_width" ]; then app_lcd_width="320"; fi echo "Enter the LCD height (default: 480)" @@ -80,6 +80,8 @@ app_get_platform() { fi if [ -z "$app_lcd_height" ]; then app_lcd_height="480"; fi echo "Selected $app_lcd_width x $app_lcd_height resolution" + ARG_LCDWIDTH=$app_lcd_width + ARG_LCDHEIGHT=$app_lcd_height app_lcd_width="#define LCD_WIDTH $app_lcd_width" app_lcd_height="#define LCD_HEIGHT $app_lcd_height" @@ -3227,6 +3229,14 @@ fi if [ "$ARG_ARM_EABI" = "1" ]; then cmdline="$cmdline--eabi " fi +if [ "$app_platform" = "sdl" ]; then + cmdline="$cmdline--platform=S " +elif [ "$app_platform" = "android" ]; then + cmdline="$cmdline--platform=A " +fi +if [ "$modelname" = "application" ]; then + cmdline="$cmdline--lcdwidth=$ARG_LCDWIDTH --lcdheight=$ARG_LCDHEIGHT " +fi cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts --prefix=\$(PREFIX)" ### end of cmdline -- cgit v1.2.3