build: do not set TARGET_ARCH to default
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 10 Dec 2016 17:15:32 +0000 (18:15 +0100)
committerDave Thaler <dthaler@microsoft.com>
Tue, 17 Jan 2017 19:01:52 +0000 (19:01 +0000)
This check is useless, scons already checks this and returns such an
error message:
Invalid value for option TARGET_ARCH: mips.  Valid values are: ['x86',
'x86_64', 'arm', 'arm-v7a', 'armeabi-v7a', 'arm64']

Change-Id: I3f7dd3b9fcae875ab20349203fb77537f24be763
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15431
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
build_common/SConscript
resource/csdk/connectivity/build/SConscript

index 458463d..f39aa11 100644 (file)
@@ -54,9 +54,6 @@ if target_os == 'android':
 else:
     default_arch = platform.machine()
 
-if default_arch not in os_arch_map[target_os]:
-    default_arch = os_arch_map[target_os][0].lower()
-
 target_arch = ARGUMENTS.get('TARGET_ARCH', default_arch) # target arch
 
 # True if binary needs to be installed on board. (Might need root permissions)
index 4c084f7..372cf85 100644 (file)
@@ -40,8 +40,6 @@ if target_os not in host_target_map[host]:
        Exit(1)
 
 default_arch = platform.machine()
-if default_arch not in os_arch_map[target_os]:
-       default_arch = os_arch_map[target_os][0].lower()
 
 target_arch = ARGUMENTS.get('TARGET_ARCH', default_arch) # target arch