X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=source%2Fnew-driver;fp=source%2Fnew-driver;h=937a6741292fe6d33793e7817489c6f02dc7d31d;hp=e14b82056b24325987eacc72fb2dbec44e67360c;hb=5b447f4c7a92f94e579d1f7b32acafcc04ebd56c;hpb=f87108ec022275389c93ea727ed1654317076d9e diff --git a/source/new-driver b/source/new-driver index e14b820..937a674 100755 --- a/source/new-driver +++ b/source/new-driver @@ -32,7 +32,7 @@ TMPL_AUTOCONF_DRIVER = "SR_DRIVER([{name}], [{short}])\n" TMPL_FILES = ('protocol.h', 'protocol.c', 'api.c') TMPL_HWMAKE_DRIVERLIB = """if HW_{upper} -libsigrok_la_SOURCES +=""" +src_libdrivers_la_SOURCES +=""" for tmpl_file in TMPL_FILES: TMPL_HWMAKE_DRIVERLIB += " \\\n\tsrc/hardware/{short}/" + tmpl_file TMPL_HWMAKE_DRIVERLIB += "\nendif\n" @@ -108,7 +108,7 @@ def do_automake(gitdir, names): if drv_short > names['upper']: out += tmpl(TMPL_HWMAKE_DRIVERLIB, names) state = 'done' - elif not re.match(r'\s*libsigrok_la_SOURCES\b|\s*src/hardware/|endif\b', line): + elif not re.match(r'\s*src_libdrivers_la_SOURCES\b|\s*src/hardware/|endif\b', line): print("[%s]" % line.strip()) # we passed the last entry out += tmpl(TMPL_HWMAKE_DRIVERLIB, names)