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
This commit is contained in:
parent
6c9db4c4c4
commit
900ec8d944
1 changed files with 12 additions and 2 deletions
14
tools/configure
vendored
14
tools/configure
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue