aedi: add dfu-util target to tool tier 2

This commit is contained in:
alexey.lysiuk 2024-09-14 13:31:07 +03:00
parent dae03acd0b
commit 3f2c4987b4
2 changed files with 15 additions and 0 deletions

View file

@ -128,6 +128,7 @@ def targets():
# Tools without binaries stored in the repo, can be outdated
AutoconfTarget(),
AutomakeTarget(),
DfuUtilTarget(),
DosBoxXTarget(),
DzipTarget(),
EricWToolsTarget(),

View file

@ -47,6 +47,20 @@ class AutomakeTarget(base.ConfigureMakeDependencyTarget):
'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