Skip to content

Commit

Permalink
Remove duplicate Theos icmd code + add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored and 0cyn committed Jan 13, 2024
1 parent 6a57a6a commit d7d6518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/dragongen/theos.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,12 @@ def __init__(self):

self.project['name'] = self.control['Name']

# TODO: this does nothing atm since Theos projects don't generater DragonMakes
# which are queried in bin/dragon for icmd else 'sbreload'
if 'INSTALL_TARGET_PROCESSES' in self.root_makefile.variables:
self.project['icmd'] = 'killall -9 ' + self.root_makefile.variables['INSTALL_TARGET_PROCESSES']
else:
self.project['icmd'] = 'sbreload'

self._process_makefile(self.root_makefile)
# print(self.project, file=sys.stderr)
Expand Down
7 changes: 0 additions & 7 deletions src/dragongen/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ def interpret_theos_makefile(file: object, root: object = True) -> dict:
finally:
file.close()

if root:
project['name'] = os.path.basename(os.getcwd())
if 'INSTALL_TARGET_PROCESS' in variables:
project['icmd'] = 'killall -9 ' + variables['INSTALL_TARGET_PROCESS']
else:
project['icmd'] = 'sbreload'

if os.environ['DGEN_DEBUG']:
print("\n\n", file=sys.stderr)
print("module type:" + str(module_type), file=sys.stderr)
Expand Down

0 comments on commit d7d6518

Please sign in to comment.