summaryrefslogtreecommitdiff
path: root/adk/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-02 20:53:11 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-02 20:53:11 +0100
commite1abc1b8aa9f8486d69119a0851207e6995b8eb8 (patch)
tree6f0931e7c455cf28341dabba6815bc5a7a09a1d6 /adk/tools
parent47fd761b81a0c6729d4e833740d050f4e22e7184 (diff)
make flex/bison optional provided by OpenADK, fix logic to create Depends.mk
Diffstat (limited to 'adk/tools')
-rw-r--r--adk/tools/depmaker.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/adk/tools/depmaker.c b/adk/tools/depmaker.c
index ad2328d9e..620bdb9e9 100644
--- a/adk/tools/depmaker.c
+++ b/adk/tools/depmaker.c
@@ -133,8 +133,10 @@ static char *parse_line(char *package, char *pkgvar, char *string, int checksym,
}
strncat(depvar, dep, strlen(dep)-5);
if ((strncmp(depvar, "bc", 2) == 0) ||
+ (strncmp(depvar, "bison", 5) == 0) ||
(strncmp(depvar, "bzip2", 5) == 0) ||
(strncmp(depvar, "file", 4) == 0) ||
+ (strncmp(depvar, "flex", 4) == 0) ||
(strncmp(depvar, "gawk", 4) == 0) ||
(strncmp(depvar, "grep", 4) == 0) ||
(strncmp(depvar, "patch", 5) == 0) ||
@@ -163,7 +165,7 @@ static char *parse_line(char *package, char *pkgvar, char *string, int checksym,
if (check_symbol(key_sym) != 0) {
free(key_sym);
free(depvar);
- return(NULL);
+ break;
}
free(key_sym);
free(depvar);
@@ -252,7 +254,7 @@ int main() {
string = strstr(buf, "PKG_BUILDDEP:=");
if (string != NULL) {
- tmp = parse_line(pkgdirp->d_name, pkgvar, string, 0, 0, 0, &prefix);
+ tmp = parse_line(pkgdirp->d_name, pkgvar, string, 2, 0, 0, &prefix);
if (tmp != NULL) {
strncat(pkgdeps, tmp, strlen(tmp));
}
@@ -260,7 +262,7 @@ int main() {
string = strstr(buf, "PKG_BUILDDEP+=");
if (string != NULL) {
- tmp = parse_line(pkgdirp->d_name, pkgvar, string, 0, 0, 0, &prefix);
+ tmp = parse_line(pkgdirp->d_name, pkgvar, string, 2, 0, 0, &prefix);
if (tmp != NULL)
strncat(pkgdeps, tmp, strlen(tmp));
}