diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-08-08 07:56:07 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-08-08 07:56:07 +0000 |
commit | e55b32ab627bac2108efb4a3d5b924e00ff60af9 (patch) | |
tree | cd42e58d2102370e476ddff38a4b61b3d7556601 /payloads/libpayload/util/kconfig/kxgettext.c | |
parent | dc93affe72b4e3162fde653da5c0ea0c84bd5e39 (diff) | |
download | coreboot-e55b32ab627bac2108efb4a3d5b924e00ff60af9.tar.xz |
Update the kconfig copy in libpayload to a much more recent one. Among
other things this supposedly also fixes a number of build issues on Mac OS X.
This is more or less the same version (i.e. equally recent) as we have in
coreinfo and buildrom now.
This patch also includes the libintl.h fix from r3475 (coreinfo).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/util/kconfig/kxgettext.c')
-rw-r--r-- | payloads/libpayload/util/kconfig/kxgettext.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/payloads/libpayload/util/kconfig/kxgettext.c b/payloads/libpayload/util/kconfig/kxgettext.c index abee55ca61..6eb72a7f25 100644 --- a/payloads/libpayload/util/kconfig/kxgettext.c +++ b/payloads/libpayload/util/kconfig/kxgettext.c @@ -170,8 +170,8 @@ void menu_build_message_list(struct menu *menu) menu->file == NULL ? "Root Menu" : menu->file->name, menu->lineno); - if (menu->sym != NULL && menu->sym->help != NULL) - message__add(menu->sym->help, menu->sym->name, + if (menu->sym != NULL && menu_has_help(menu)) + message__add(menu_get_help(menu), menu->sym->name, menu->file == NULL ? "Root Menu" : menu->file->name, menu->lineno); @@ -212,7 +212,9 @@ void menu__xgettext(void) struct message *m = message__list; while (m != NULL) { - message__print_gettext_msgid_msgstr(m); + /* skip empty lines ("") */ + if (strlen(m->msg) > sizeof("\"\"")) + message__print_gettext_msgid_msgstr(m); m = m->next; } } |