Lines Matching +full:linux +full:- +full:32 +full:- +full:no +full:- +full:asm
2 # -*- coding: utf-8 -*-
12 # EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
57 with open(file_path, 'r', encoding='utf-8') as f:
170 """Updated the implementation modes of sub-features based on the parent feature."""
242 "system": {"require": False, "type": str, "choices": ["linux", ""], "default": "linux"},
243 "bits": {"require": False, "type": int, "choices": [32, 64], "default": 64},
260 with open(file_path, 'r', encoding='utf-8') as f:
311 …raise ValueError("Feature '%s' has no assembly implementation of type '%s' in %s" % (fea, asm_type…
333 …print("Info: There is no {} implementation by default, you should set its SAL callbacks to make it…
348 for asm_fea in lib_obj.get('asm', []):
422 3. argument: asm list
429 enable_asm_feas.update(lib_obj.get('asm', []))
468 if 'asm' in self._cfg['libs'][lib]:
469 self._cfg['libs'][lib]['asm'] = []
473 fea, inc = self._asm_fea_check(asm_feature, asm_type, 'input asm list')
476 self._add_feature(fea, 'asm', inc)
481 self._add_feature(fea, 'asm')
490 The sub-feature macro is derived from the parent feature macro in the code.
491 Therefore, the sub-feature is removed and the parent feature is retained.
557 raise ValueError("No features are enabled.")
573 if 'asm' in libs[lib]:
574 libs[lib]['asm'] = self._update_enable_feature(libs[lib]['asm'], disables)
575 libs[lib]['asm'].sort()
591 macros.add("-D%s_%s" % (lib_upper, fea.upper()))
592 for fea in lib_value.get('asm', []):
594 macros.add("-D%s_%s" % (lib_upper, fea.upper()))
596 macros.add("-D%s_%s_%s" % (lib_upper, 'BN', self.asm_type.upper()))
598 macros.add("-D%s_%s_%s" % (lib_upper, fea.upper(), self.asm_type.upper()))
600 macros.add("-D%s" % lib_upper)
603 macros.add("-DHITLS_BIG_ENDIAN")
604 if self._cfg.get('system', "") == "linux":
605 macros.add("-DHITLS_BSL_SAL_LINUX")
608 if bits == 32:
609 macros.add("-DHITLS_THIRTY_TWO_BITS")
611 macros.add("-DHITLS_SIXTY_FOUR_BITS")
633 for asm_fea in obj[target].get('asm', []):
642 raise ValueError("Error: no module is enabled in %s" % target)
674 if 'asm' in self._cfg['libs'][lib]:
675 self._cfg['libs'][lib]['asm'] = []
716 enable_feas.update(lib_obj.get('asm', []))
733 "CC_MD_DEPENDENT_FLAGS", # Machine-Dependent Options
737 "CC_USER_DEFINE_FLAGS", # User-defined compilation options are reserved.
812 flags_add = {'CC_FLAGS_ADD': ['-g3', '-gdwarf-2']}
813 flags_del = {'CC_FLAGS_DEL': ['-O2', '-D_FORTIFY_SOURCE=2']}
856 raise ValueError("no '{}' option type in complete_options.json".format(option_type))