"""
TMPL_DRIVERS_POINTER = """\
#ifdef HAVE_HW_${upper}
- &${lib}_driver_info,
+ (DRVS) {&${lib}_driver_info, NULL},
#endif
"""
FILE_DRV_API = 'drv-api.c'
tmp = tempfile.mkdtemp()
try:
os.chdir(tmp)
- process = Popen("git clone " + LIBSR, shell=True, stderr=PIPE)
+ process = Popen("git clone --depth=1 " + LIBSR, shell=True, stderr=PIPE)
out, err = process.communicate()
if process.returncode:
raise Exception(err.decode())