[72/81] We also need TARGET_<arechname> in Makefiles
diff mbox

Message ID cf26a4617158a960cc76b47515b371c7494b0e6e.1249301360.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 3, 2009, 12:47 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure     |    2 ++
 create_config |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/configure b/configure
index ccf0fa2..5cd3b85 100755
--- a/configure
+++ b/configure
@@ -1980,6 +1980,8 @@  case "$target_arch2" in
   ;;
 esac
 echo "TARGET_ARCH=$TARGET_ARCH" >> $config_mak
+target_arch_name="`echo $TARGET_ARCH | tr '[:lower:]' '[:upper:]'`"
+echo "TARGET_$target_arch_name=y" >> $config_mak
 echo "TARGET_ARCH2=$target_arch2" >> $config_mak
 # TARGET_BASE_ARCH needs to be defined after TARGET_ARCH
 if [ "$TARGET_BASE_ARCH" = "" ]; then
diff --git a/create_config b/create_config
index 9dcbc5f..5bc8fb6 100755
--- a/create_config
+++ b/create_config
@@ -55,9 +55,7 @@  case $line in
     ;;
  TARGET_ARCH=*) # configuration
     target_arch=${line#*=}
-    arch_name=`echo $target_arch | tr '[:lower:]' '[:upper:]'`
     echo "#define TARGET_ARCH \"$target_arch\""
-    echo "#define TARGET_$arch_name 1"
     ;;
  TARGET_BASE_ARCH=*) # configuration
     target_base_arch=${line#*=}