first cut target identification

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9385 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-10-18 01:59:54 +00:00
parent a0fdabc807
commit 614026d717

22
configure vendored
View File

@ -1,8 +1,8 @@
#!/bin/sh
#
# configure [ --floppy <floppy location> ]
#
# No parameters for now.
target=unknown
# usage
#
@ -14,11 +14,12 @@ usage()
Usage: $0 <options>
options:
--floppy <floppy location> Specifies the location of the floppy
(device or image).
--bochs-debug Activates bochs serial debug emulation.
--include-gpl-addons Include GPL licensed add-ons.
--help Prints out this help.
--floppy <floppy location> Specifies the location of the floppy
(device or image).
--bochs-debug Activates bochs serial debug emulation.
--target=TARGET Select build target platform. [default=${target}]
--include-gpl-addons Include GPL licensed add-ons.
--help Prints out this help.
EOF
}
@ -65,6 +66,11 @@ gcc_version=
floppy=
bochs_debug=0
include_gpl_addons=0
if (echo $BEINCLUDES | grep 'headers/be/bone' > /dev/null); then
target=bone
else
target=r5
fi
# parse parameters
#
@ -73,6 +79,7 @@ while [ $# \> 0 ] ; do
--include-gpl-addons) include_gpl_addons=1; shift 1;;
--floppy) assertparam "$1" $#; floppy=$2; shift 2;;
--bochs-debug) bochs_debug=1; shift 1;;
--target=*) target=(echo $T | cut -d'=' -f2-); shift 1;;
--help | -h) usage; exit 0;;
*) echo Invalid argument: \`$1\'; exit 1;;
esac
@ -115,5 +122,6 @@ LIBGCC_DIR ?= ${LIBGCC_DIR} ;
LIBGCC_OBJECTS ?= ${LIBGCC_OBJECTS} ;
BOCHS_DEBUG_HACK ?= ${bochs_debug} ;
INCLUDE_GPL_ADDONS ?= ${include_gpl_addons} ;
TARGET_PLATFORM ?= ${target} ;
EOF