summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-07 15:55:09 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-07 15:55:09 (GMT)
commitb59da8fc7b46ee62cbe9eb97a05c8a0f1ab75593 (patch)
tree693c02553b84749c1eef6323ff528850c46687f4 /tools
parent08f64b87c0b6e9a6de7250c616a91830ef447713 (diff)
update valgrind to latest upstream version, strlen is not a function in ld.so in latest glibc/eglibc setups, just remove the redirect for now. enable automatic building of debug subpackages. update TODO
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/pkgmaker.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c
index 6af7a0f..d00e730 100644
--- a/tools/adk/pkgmaker.c
+++ b/tools/adk/pkgmaker.c
@@ -270,7 +270,7 @@ int main() {
char *key, *value, *token, *cftoken, *sp, *hkey, *val, *pkg_fd;
char *pkg_name, *pkg_depends, *pkg_section, *pkg_descr, *pkg_url;
char *pkg_cxx, *pkg_subpkgs, *pkg_cfline, *pkg_dflt, *pkg_multi;
- char *pkg_need_cxx, *pkg_need_java, *pkgname;
+ char *pkg_need_cxx, *pkg_need_java, *pkgname, *pkg_debug;
char *pkg_libc_depends, *pkg_host_depends, *pkg_system_depends, *pkg_arch_depends, *pkg_flavours, *pkg_flavours_string, *pkg_choices, *pseudo_name;
char *packages, *pkg_name_u, *pkgs, *pkg_opts, *pkg_libname;
char *saveptr, *p_ptr, *s_ptr, *pkg_helper;
@@ -300,6 +300,7 @@ int main() {
pkg_need_java = NULL;
pkgname = NULL;
pkg_helper = NULL;
+ pkg_debug = NULL;
p_ptr = NULL;
s_ptr = NULL;
@@ -635,6 +636,9 @@ int main() {
fprintf(cfg, "comment \"%s... %s (disabled, c++ missing)\"\n", token, pkg_descr);
fprintf(cfg, "depends on !ADK_TOOLCHAIN_GCC_CXX\n\n");
}
+
+ /* save token in pkg_debug */
+ pkg_debug = strdup(token);
fprintf(cfg, "config ADK_PACKAGE_%s\n", toupperstr(token));
/* no prompt for devonly packages */
if (pkg_opts != NULL) {
@@ -819,6 +823,16 @@ int main() {
pkg_cxx = NULL;
}
+ /* handle debug subpackages */
+ fprintf(cfg, "\nconfig ADK_PACKAGE_%s_DBG\n", toupperstr(pkg_debug));
+ fprintf(cfg, "\tprompt \"add debug symbols package\"\n");
+ fprintf(cfg, "\ttristate\n");
+ fprintf(cfg, "\tdepends on ADK_PACKAGE_GDB\n");
+ fprintf(cfg, "\tdepends on !ADK_DEBUG\n");
+ fprintf(cfg, "\tdepends on ADK_PACKAGE_%s\n", toupperstr(pkg_debug));
+ fprintf(cfg, "\tdefault n\n");
+ fprintf(cfg, "\thelp\n\n");
+
/* package flavours */
if (pkg_flavours != NULL) {
token = strtok(pkg_flavours, " ");