summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-05 18:35:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-05 18:35:22 +0100
commitbc8188233741e5378d9d0a57e561952e3cebe5ec (patch)
tree608907ac29329742356eb27dc10e231914f2e5c6 /tools
parentfe8f7f9b3e15dd364889a962ec17289a43e59d3b (diff)
add correct dependencies, when kernel modules are choosen via flavour/choices and subpackages
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/pkgmaker.c15
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);
}
}