]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
support: fix configure args storage.
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 8 Feb 2013 15:44:05 +0000 (15:44 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 8 Feb 2013 15:44:05 +0000 (15:44 +0000)
support/configure.inc

index 6b2dcece0e29a85c27e69dd37ea73d746f30f8c5..ecb85da4b90338a42928cc451a254d91067dd263 100644 (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