Skip to content

Commit

Permalink
馃敤 Fix marlin_custom.* without lib_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 7, 2023
1 parent e65e38a commit d5d497f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildroot/share/PlatformIO/scripts/common-dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def add_to_feat_cnf(feature, flines):
for dep in re.split(r',\s*', line):
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
lib_re = re.compile('(?!^' + lib_name + '\\b)')
if not 'lib_deps' in feat: feat['lib_deps'] = {}
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
blab("[%s] lib_deps = %s" % (feature, dep), 3)

Expand Down

0 comments on commit d5d497f

Please sign in to comment.