support: fix configure args storage.

This commit is contained in:
Adam Sutton 2013-02-08 15:44:05 +00:00
parent 53a9d6a4ba
commit efd2c28b89

View file

@ -9,6 +9,8 @@
# Defaults
# ###########################################################################
CONFIGURE_ARGS="$*"
# System setup
[ -z "$PLATFORM" ] && PLATFORM=linux
[ -z "$CPU" ] && CPU=generic
@ -460,11 +462,12 @@ function write_config
CONFIG_MK=${ROOTDIR}/.config.mk
cat > ${CONFIG_MK} <<EOF
# Automatically generated by configure - DO NOT EDIT!
CONFIGURE_ARGS = ${BASH_ARGV[*]}
CONFIGURE_ARGS = ${CONFIGURE_ARGS}
ROOTDIR ?= ${ROOTDIR}
BUILDDIR ?= ${ROOTDIR}/build.${PLATFORM}
OSENV ?= ${OSENV}
ARCH ?= ${ARCH}
CPU ?= ${CPU}
ifeq (\$(origin CC),default)
CC = ${CC}
endif