summaryrefslogtreecommitdiff
path: root/tools/adk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-24 15:00:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-24 15:00:47 +0200
commit6d0c553d2a2442c560bb2405ad668957cad497fb (patch)
tree1cb875eede9aa297c484cc510833e942dcc6afb0 /tools/adk
parent1d6cd4132fa0863213e0aef9a3e6702796776078 (diff)
parent85179429f7741b17974bc3a2c1b608f6a6dbd167 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'tools/adk')
-rw-r--r--tools/adk/pkgmaker.c22
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");