diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-24 10:57:06 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-24 10:57:06 +0200 |
commit | 00be675757c5f006fae941c516fb0babf4fc5ca7 (patch) | |
tree | ba4a13d355f9594681151ad626a3007054e121c6 /tools | |
parent | 5823d3b2798d4e8de44a0b81b1cdfd4ea801e3aa (diff) |
add pkg_arch_depends to dev subpackages
Diffstat (limited to 'tools')
-rw-r--r-- | tools/adk/pkgmaker.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c index 19bbbc0eb..ed29ae062 100644 --- a/tools/adk/pkgmaker.c +++ b/tools/adk/pkgmaker.c @@ -1003,6 +1003,28 @@ int main() { fprintf(cfg, "\tprompt \"%s. development files for %s\"\n", pseudo_name, pkg_libname); fprintf(cfg, "\ttristate\n"); + + /* create package target architecture dependency information */ + if (pkg_arch_depends != NULL) { + pkg_helper = strdup(pkg_arch_depends); + token = strtok(pkg_helper, " "); + fprintf(cfg, "\tdepends on "); + sp = ""; + while (token != NULL) { + if(strncmp(token, "!", 1) == 0) { + fprintf(cfg, "%s!ADK_LINUX%s", sp, toupperstr(token)); + sp = " && "; + } else { + fprintf(cfg, "%sADK_LINUX_%s", sp, toupperstr(token)); + sp = " || "; + } + token = strtok(NULL, " "); + } + fprintf(cfg, "\n"); + free(pkg_helper); + pkg_helper = NULL; + } + fprintf(cfg, "\tdepends on ADK_PACKAGE_GCC\n"); fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(pkg_libname)); fprintf(cfg, "\tdefault n\n"); |