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