Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for papilio-prog -b auto to automatically resolve bscan*.bit file #21

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Also look for auto bscan files in parent folder so works in usual ins…
…tallation location
Brad Robinson committed May 2, 2019
commit 28af99fa07963c87a00935636f6013ac39dfb362
13 changes: 12 additions & 1 deletion papilio-prog/butterfly.cpp
Original file line number Diff line number Diff line change
@@ -410,7 +410,18 @@ int main(int argc, char **argv)
}
else
{
fprintf(stderr, "Auto bscan failed: %s doesn't exist\n", buf);
strcpy(p+1, "../");
strcat(p, bscanFile);
if (file_exist(buf))
{
if (verbose)
printf("Using bscan file: %s\n", buf);
}
else
{
fprintf(stderr, "Auto bscan failed: %s doesn't exist\n", buf);
return 7;
}
}

// Use the discovered file name
Binary file modified papilio-prog/papilio-prog
Binary file not shown.
Binary file modified papilio-prog/papilio-prog-linux64.zip
Binary file not shown.