diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-05 18:35:22 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-05 18:35:22 +0100 |
commit | bc8188233741e5378d9d0a57e561952e3cebe5ec (patch) | |
tree | 608907ac29329742356eb27dc10e231914f2e5c6 /tools/adk | |
parent | fe8f7f9b3e15dd364889a962ec17289a43e59d3b (diff) |
add correct dependencies, when kernel modules are choosen via flavour/choices and subpackages
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); } } |