Patchwork [12/14] create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX

login
register
mail settings
Submitter Eduardo Habkost
Date April 18, 2012, 7:55 p.m.
Message ID <1334778950-18660-13-git-send-email-ehabkost@redhat.com>
Download mbox | patch
Permalink /patch/153575/
State New
Headers show

Comments

Eduardo Habkost - April 18, 2012, 7:55 p.m.
As now that block handles only the prefix variable, the code can be much
simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not
used by any C code.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 scripts/create_config |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

Patch

diff --git a/scripts/create_config b/scripts/create_config
index 1d06eb1..c471e8c 100755
--- a/scripts/create_config
+++ b/scripts/create_config
@@ -23,13 +23,8 @@  case $line in
     eval "$name=\$define_value"
     ;;
  prefix=*)
-    name=${line%=*}
-    value=${line#*=}
-    define_name=`echo $name | LC_ALL=C tr '[a-z]' '[A-Z]'`
-    eval "define_value=\"$value\""
-    echo "#define CONFIG_QEMU_$define_name \"$define_value\""
     # save for the next definitions
-    eval "$name=\$define_value"
+    prefix=${line#*=}
     ;;
  CONFIG_AUDIO_DRIVERS=*)
     drivers=${line#*=}