lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

021-build-do-not-set-TARGET_ARCH-to-default.patch (1453B)


      1 From 792f68219b3ab4ff5238e3abc7aa1c68bfa4a22b Mon Sep 17 00:00:00 2001
      2 From: Hauke Mehrtens <hauke@hauke-m.de>
      3 Date: Sat, 10 Dec 2016 18:15:32 +0100
      4 Subject: [PATCH 21/23] build: do not set TARGET_ARCH to default
      5 
      6 This check is useless, scons already checks this and returns such an
      7 error message:
      8 Invalid value for option TARGET_ARCH: mips.  Valid values are: ['x86', 'x86_64', 'arm', 'arm-v7a', 'armeabi-v7a', 'arm64']
      9 
     10 Change-Id: I3f7dd3b9fcae875ab20349203fb77537f24be763
     11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
     12 ---
     13  build_common/SConscript                     | 3 ---
     14  resource/csdk/connectivity/build/SConscript | 2 --
     15  2 files changed, 5 deletions(-)
     16 
     17 --- a/build_common/SConscript
     18 +++ b/build_common/SConscript
     19 @@ -54,9 +54,6 @@ if target_os == 'android':
     20  else:
     21  	default_arch = platform.machine()
     22  
     23 -if default_arch not in os_arch_map[target_os]:
     24 -	default_arch = os_arch_map[target_os][0].lower()
     25 -
     26  target_arch = ARGUMENTS.get('TARGET_ARCH', default_arch) # target arch
     27  
     28  # True if binary needs to be installed on board. (Might need root permissions)
     29 --- a/resource/csdk/connectivity/build/SConscript
     30 +++ b/resource/csdk/connectivity/build/SConscript
     31 @@ -40,8 +40,6 @@ if target_os not in host_target_map[host
     32  	Exit(1)
     33  
     34  default_arch = platform.machine()
     35 -if default_arch not in os_arch_map[target_os]:
     36 -	default_arch = os_arch_map[target_os][0].lower()
     37  
     38  target_arch = ARGUMENTS.get('TARGET_ARCH', default_arch) # target arch
     39