Re-enable 32-bit builds on linux 91/22591/6
authorMats Wichmann <mats@linux.com>
Mon, 25 Sep 2017 14:25:16 +0000 (08:25 -0600)
committerMats Wichmann <mats@linux.com>
Fri, 29 Sep 2017 17:08:25 +0000 (17:08 +0000)
commit38203e614aefc1c457dd8b78f580706568fa72cf
tree8f62f16278d5919c697df326ae5bda46c0f350f2
parent8866bde1819a610ff088efcb4ad5e459e23b0f53
Re-enable 32-bit builds on linux

During various rework of build scripts, a trick which let
32-bit linux builds proceed was lost.  The build wants to
call the 32-bit x86 build 'x86', but Python's platform.machine()
returns a more specific value (as obtained from the operating
system): 'i586' or 'i686'.

Fix from Geoffroy VanCutsem remaps the calculation of a default
value for TARGET_ARCH from platform.machine() to 'x86'.

Also taught {resource,service}/third_party_libs.scons that
in this scenario, cross building is not taking place.

Note this scenario is not built by Jenkins, so will depend
on affected developers affirming this works.

Bug: https://jira.iotivity.org/browse/IOT-2755
Change-Id: Ieb77a8734a9d17091c396fc8f1bc90e1a3bedb16
Signed-off-by: Mats Wichmann <mats@linux.com>
build_common/SConscript
resource/third_party_libs.scons
service/third_party_libs.scons