missing file

This commit is contained in:
Koushik K. Dutta 2010-02-22 08:53:47 -08:00
parent 981b0cd1e1
commit 7400dc2700

17
mtdutils/driver.c Normal file
View File

@ -0,0 +1,17 @@
#undef main
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
if (strstr(argv[0], "flash_image") != NULL)
return flash_image_main(argc, argv);
if (strstr(argv[0], "dump_image") != NULL)
return dump_image_main(argc, argv);
if (strstr(argv[0], "mkyaffs2image") != NULL)
return mkyaffs2image_main(argc, argv);
if (strstr(argv[0], "unyaffs") != NULL)
return unyaffs_main(argc, argv);
return 0;
}