summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-24 08:57:06 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-24 08:57:06 (GMT)
commit00be675757c5f006fae941c516fb0babf4fc5ca7 (patch)
treeba4a13d355f9594681151ad626a3007054e121c6 /tools
parent5823d3b2798d4e8de44a0b81b1cdfd4ea801e3aa (diff)
add pkg_arch_depends to dev subpackages
Diffstat (limited to 'tools')
-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 19bbbc0..ed29ae0 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");