X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure;h=1310ab2c9994f93abb4dbaa95cff6ee957bd52b8;hb=a90cc666d08526ada34a87c3e6d9a5312d90be84;hp=a25e7c1ce5c1a435d9cebb760dc789acbb837ccb;hpb=653f0b1399313ecef86d99a2552f40fb9e51b820;p=picodrive.git diff --git a/configure b/configure index a25e7c1..1310ab2 100755 --- a/configure +++ b/configure @@ -31,7 +31,7 @@ check_define() # setting options to "yes" or "no" will make that choice default, # "" means "autodetect". -platform_list="generic pandora gp2x opendingux" +platform_list="generic pandora gp2x opendingux rpi1 rpi2" platform="generic" sound_driver_list="oss alsa sdl" sound_drivers="" @@ -44,6 +44,8 @@ need_sdl="no" need_xlib="no" # these are for known platforms optimize_cortexa8="no" +optimize_cortexa7="no" +optimize_arm1176jzf="no" optimize_arm926ej="no" optimize_arm920="no" @@ -67,6 +69,13 @@ set_platform() { platform=$1 case "$platform" in + rpi1) + optimize_arm1176jzf="yes" + ;; + rpi2) + optimize_cortexa7="yes" + have_arm_neon="yes" + ;; generic) ;; opendingux) @@ -159,6 +168,14 @@ arm*) CFLAGS="$CFLAGS -mcpu=cortex-a8 -mtune=cortex-a8" ASFLAGS="$ASFLAGS -mcpu=cortex-a8" fi + if [ "$optimize_cortexa7" = "yes" ]; then + CFLAGS="$CFLAGS -mcpu=cortex-a7" + ASFLAGS="$ASFLAGS -mcpu=cortex-a7" + fi + if [ "$optimize_arm1176jzf" = "yes" ]; then + CFLAGS="$CFLAGS -mcpu=arm1176jzf-s -mfloat-abi=hard" + ASFLAGS="$ASFLAGS -mcpu=arm1176jzf-s -mfloat-abi=hard" + fi if [ "$optimize_arm926ej" = "yes" ]; then CFLAGS="$CFLAGS -mcpu=arm926ej-s -mtune=arm926ej-s" ASFLAGS="$ASFLAGS -mcpu=arm926ej-s -mfloat-abi=softfp" @@ -229,7 +246,7 @@ arm*) esac case "$platform" in -generic | opendingux) +rpi1 | rpi2 | generic | opendingux) need_sdl="yes" ;; esac