summaryrefslogtreecommitdiff
path: root/tools/adk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-09-18 20:00:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-09-18 20:00:22 +0200
commit77cb48f73a2bedc84b2944e4efce89fb8ffaaa6c (patch)
tree49cef4871640eaf20234b22cd14cc521cdc81b9f /tools/adk
parent81674c671b31357683136b815896cc388d186b80 (diff)
fix multi-binary packages, add missing dependency to main package
Diffstat (limited to 'tools/adk')
-rw-r--r--tools/adk/pkgmaker.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c
index 667707d0b..831c6c34d 100644
--- a/tools/adk/pkgmaker.c
+++ b/tools/adk/pkgmaker.c
@@ -476,9 +476,6 @@ int main() {
fprintf(cfg, "ADK_PACKAGE_%s\n", toupperstr(pkgdirp->d_name));
}
}
- //else {
- // fprintf(cfg, "\tprompt \"%s\"\n", pkgdirp->d_name);
- //}
fprintf(cfg, "\tdefault n\n");
fclose(cfg);
free(pkgs);
@@ -542,6 +539,10 @@ int main() {
fprintf(cfg, "config ADK_PACKAGE_%s\n", toupperstr(token));
fprintf(cfg, "\tprompt \"%s... %s\"\n", pseudo_name, pkg_descr);
fprintf(cfg, "\ttristate\n");
+ if (pkg_multi != NULL)
+ if (strncmp(pkg_multi, "1", 1) == 0)
+ if (strncmp(toupperstr(token), toupperstr(pkgdirp->d_name), strlen(token)) != 0)
+ fprintf(cfg, "\tdepends on ADK_PACKAGE_%s\n", toupperstr(pkgdirp->d_name));
free(pseudo_name);