From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ENV library broken with setenv/printenv argument structs
Date: Fri, 25 Mar 2016 10:31:27 +0100 [thread overview]
Message-ID: <56F5056F.50304@denx.de> (raw)
Hi Andreas,
your series for the U-Boot environment tools does not let to use anymore
the tools as library to be linked to custom program.
In fact, tools/env/Makefile generates a library too:
lib-y += fw_env.o \
crc32.o ctype.o linux_string.o \
env_attr.o env_flags.o aes.o
that means that fw_main should not maintain any structure that is
referenced by the library.
In fact, linking with the library (renamed as ibubootenv.a), gives the
errors:
undefined reference to `printenv_args'
undefined reference to `common_args'
The two functions fw_printenv() and fw_setenv() are then supposed to be
called by a custom program, what it does not work anymore.
Can you take a look at it ?
Thanks,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next reply other threads:[~2016-03-25 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-25 9:31 Stefano Babic [this message]
2016-03-25 14:00 ` [U-Boot] ENV library broken with setenv/printenv argument structs Andreas Fenkart
2016-03-27 9:33 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56F5056F.50304@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox