summaryrefslogtreecommitdiff
path: root/tools/adk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-25 19:22:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-25 19:22:05 +0100
commitd4173bfaec26914a208a82d317e2210aad97fc09 (patch)
tree7396d4a62f989fc73ea809443c230eb4c8ccba32 /tools/adk
parent70451245c8b5bc1d7c43c690c166e2d1edf3cbf2 (diff)
fix bug, f.e. glib package ignored by mistake
Diffstat (limited to 'tools/adk')
-rw-r--r--tools/adk/depmaker.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/adk/depmaker.c b/tools/adk/depmaker.c
index be4f6aac4..21958ffae 100644
--- a/tools/adk/depmaker.c
+++ b/tools/adk/depmaker.c
@@ -155,12 +155,12 @@ int main() {
}
/* exclude manual maintained packages from package/Makefile */
- if (!(strncmp(pkgdirp->d_name, "eglibc", strlen(pkgdirp->d_name)) == 0) &&
- !(strncmp(pkgdirp->d_name, "libc", strlen(pkgdirp->d_name)) == 0) &&
- !(strncmp(pkgdirp->d_name, "libpthread", strlen(pkgdirp->d_name)) == 0) &&
- !(strncmp(pkgdirp->d_name, "uclibc++", strlen(pkgdirp->d_name)) == 0) &&
- !(strncmp(pkgdirp->d_name, "uclibc", strlen(pkgdirp->d_name)) == 0) &&
- !(strncmp(pkgdirp->d_name, "glibc", strlen(pkgdirp->d_name)) == 0)) {
+ if (!(strncmp(pkgdirp->d_name, "eglibc", 6) == 0) &&
+ !(strncmp(pkgdirp->d_name, "libc", 4) == 0) &&
+ !(strncmp(pkgdirp->d_name, "libpthread", 10) == 0) &&
+ !(strncmp(pkgdirp->d_name, "uclibc++", 8) == 0) &&
+ !(strncmp(pkgdirp->d_name, "uclibc", 6) == 0) &&
+ !(strncmp(pkgdirp->d_name, "glibc", 5) == 0)) {
/* print result to stdout */
printf("package-$(ADK_COMPILE_%s) += %s\n", pkgvar, pkgdirp->d_name);
}