summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-11 18:16:55 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-11 18:16:55 +0100
commite435ddd4ee81da12e3e3e3d0433a90d539901839 (patch)
tree8822c0a9ab913f4267f4f8293a99b10a5839eb21 /tools
parent59f1e5ee4443e6210b148c58af56bef3e9a75f2b (diff)
add support for C++ packages, which need G++ compiler
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/pkgmaker.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c
index eeba00304..e2b6e6e99 100644
--- a/tools/adk/pkgmaker.c
+++ b/tools/adk/pkgmaker.c
@@ -508,8 +508,12 @@ int main() {
if (cfg == NULL)
perror("Can not open Config.in file");
+ if (pkg_need_cxx != NULL) {
+ fprintf(cfg, "comment \"%s... %s (disabled, c++ missing)\"\n", token, pkg_descr);
+ fprintf(cfg, "depends on !ADK_TOOLCHAIN_GCC_CXX\n\n");
+ }
fprintf(cfg, "config ADK_PACKAGE_%s\n", toupperstr(token));
- fprintf(cfg, "\tprompt \"%s... %s\"\n", pseudo_name, pkg_descr);
+ fprintf(cfg, "\tprompt \"%s. %s\"\n", pseudo_name, pkg_descr);
fprintf(cfg, "\ttristate\n");
if (pkg_multi != NULL)
if (strncmp(pkg_multi, "1", 1) == 0)
@@ -592,10 +596,11 @@ int main() {
}
if (pkg_need_cxx != NULL) {
- fprintf(cfg, "\tdepends on ADK_TOOLCHAIN_GCC_CXX");
+ fprintf(cfg, "\tdepends on ADK_TOOLCHAIN_GCC_CXX\n");
}
if (pkg_need_java != NULL) {
- fprintf(cfg, "\tdepends on ADK_TOOLCHAIN_GCC_JAVA");
+ fprintf(cfg, "\tdepends on ADK_TOOLCHAIN_GCC_JAVA\n");
+ pkg_need_java = NULL;
}
fprintf(cfg, "\tselect ADK_COMPILE_%s\n", toupperstr(pkgdirp->d_name));
@@ -712,6 +717,8 @@ int main() {
free(packages);
packages = NULL;
+ pkg_need_cxx = NULL;
+ pkg_need_java = NULL;
/* reset flags, free memory */
free(pkg_name);
free(pkg_descr);
@@ -724,8 +731,6 @@ int main() {
free(pkg_arch_depends);
free(pkg_host_depends);
free(pkg_cxx);
- free(pkg_need_cxx);
- free(pkg_need_java);
free(pkg_dflt);
free(pkg_cfline);
free(pkg_multi);