Skip to content

Commit 816bf96

Browse files
committed
Delete baremetal profile setup
1 parent 2b055ed commit 816bf96

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

qiling/utils.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,6 @@ def os_setup(archtype: QL_ARCH, ostype: QL_OS, ql):
470470

471471

472472
def profile_setup(ql):
473-
if ql.baremetal:
474-
return ql_hw_profile_setup(ql)
475-
476473
_profile = "Default"
477474

478475
if ql.profile != None:
@@ -491,19 +488,6 @@ def profile_setup(ql):
491488

492489
return config, debugmsg
493490

494-
def ql_hw_profile_setup(ql):
495-
config = ConfigParser()
496-
497-
profile_name = f'{ql.profile}.ql'
498-
profile_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "profiles")
499-
500-
for path, _, files in os.walk(profile_dir):
501-
if profile_name in files:
502-
config.read(os.path.join(profile_dir, path, profile_name))
503-
break
504-
505-
return config, f'Profile: {ql.profile}'
506-
507491
def ql_resolve_logger_level(verbose: QL_VERBOSE) -> int:
508492
return {
509493
QL_VERBOSE.OFF : logging.WARNING,

0 commit comments

Comments
 (0)