From bc8188233741e5378d9d0a57e561952e3cebe5ec Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 5 Feb 2011 18:35:22 +0100 Subject: add correct dependencies, when kernel modules are choosen via flavour/choices and subpackages --- tools/adk/pkgmaker.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tools/adk') 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); } } -- cgit v1.2.3