diff options
Diffstat (limited to 'tools/adk')
-rw-r--r-- | tools/adk/pkgmaker.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c index bef206533..7b5ab8279 100644 --- a/tools/adk/pkgmaker.c +++ b/tools/adk/pkgmaker.c @@ -589,7 +589,10 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + if (strncmp(val, "kmod", 4) == 0) + fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); + else + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } @@ -708,7 +711,10 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + if (strncmp(val, "kmod", 4) == 0) + fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); + else + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } @@ -745,7 +751,10 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + if (strncmp(val, "kmod", 4) == 0) + fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); + else + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } |