Skip to content

Commit

Permalink
aedi: add dfu-util target to tool tier 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Sep 14, 2024
1 parent dae03ac commit 3f2c498
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions aedi/target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def targets():
# Tools without binaries stored in the repo, can be outdated
AutoconfTarget(),
AutomakeTarget(),
DfuUtilTarget(),
DosBoxXTarget(),
DzipTarget(),
EricWToolsTarget(),
Expand Down
14 changes: 14 additions & 0 deletions aedi/target/tool_tier2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ def prepare_source(self, state: BuildState):
'f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469')


class DfuUtilTarget(base.ConfigureMakeDependencyTarget):
# Depends on usb
def __init__(self, name='dfu-util'):
super().__init__(name)

def prepare_source(self, state: BuildState):
state.download_source(
'https://dfu-util.sourceforge.net/releases/dfu-util-0.11.tar.gz',
'b4b53ba21a82ef7e3d4c47df2952adf5fa494f499b6b0b57c58c5d04ae8ff19e')

def detect(self, state: BuildState) -> bool:
return state.has_source_file('src/dfu_util.h')


class DosBoxXTarget(base.ConfigureMakeDependencyTarget):
# Depends on autoconf, automake, freetype
# TODO: fix absolute paths in bin/* and share/autoconf/autom4te.cfg
Expand Down

0 comments on commit 3f2c498

Please sign in to comment.