OSDN Git Service

Fix build.
authorAndy McFadden <fadden@android.com>
Tue, 23 Feb 2010 18:24:33 +0000 (10:24 -0800)
committerAndy McFadden <fadden@android.com>
Tue, 23 Feb 2010 18:24:33 +0000 (10:24 -0800)
The "set default variant to armv5te if none defined" in the ARM config
was applying to all architectures, but as it turns out only ARM builds
actually cared.  When I made a copy of the "set default" code to the x86
config, one or the other would win for builds that didn't specify a
variant.  Turns out x86 won, so sim and voles worked, but opal didn't.

core/combo/linux-arm.mk
core/combo/linux-x86.mk

index 8bf5f88..d2d7ea9 100644 (file)
 # include defines, and compiler settings for the given architecture
 # version.
 #
+ifeq ($(TARGET_ARCH),arm)
 ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
 TARGET_ARCH_VARIANT := armv5te
 endif
+endif
 
 # TARGET_ARCH_VARIANT used to be called TARGET_ARCH_VERSION
 # to avoid any weirdness, issue an error message if the latter
index 629e0cc..d994902 100644 (file)
@@ -2,9 +2,11 @@
 # Included by combo/select.make
 
 # Provide a default variant.
+ifeq ($(TARGET_ARCH),x86)
 ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
 TARGET_ARCH_VARIANT := x86
 endif
+endif
 
 # right now we get these from the environment, but we should
 # pick them from the tree somewhere