From: Bill Pringlemeir <bpringlemeir@nbsps.com>
To: andrea.adami@gmail.com (Andrea Adami)
Cc: linux-mtd@lists.infradead.org
Subject: Re: [RFC] ubi-utils: improve compatibility with klibc
Date: Fri, 04 Jul 2014 10:42:03 -0400 [thread overview]
Message-ID: <87egy189tw.fsf@nbsps.com> (raw)
In-Reply-To: <CAAQYJAs6ky1CvZWoh9NjPLYbUVcjQCh7SW3NrFUzLcXvcHLZRw@mail.gmail.com> (Andrea Adami's message of "Thu, 3 Jul 2014 09:59:44 +0200")
On 3 Jul 2014, andrea.adami at gmail.com wrote:
> I have put together a patchset allowing to compile the ubi utils
> statically against klibc.
> The patches are based on today's mtd-utils master, please have a
> preview here:
> https://github.com/andrea-adami/meta-openembedded/tree/master/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc
> Please let me know if there is something to change before sending them
> to the mailing list.
I am no authority, but I appreciate your work. I have tried to get the
ubi tools working with klibc and I think these patches have been around
for some time; I seem to remember seeing them.
I would suggest to modify '0001-Makefile-only-build-ubi-utils.patch' to
use the over-ride. So we could have,
UBI_ONLY ?= 0
And then modify the make rules on this conditional. That way, people
using a default commandline/environment will get the full tools suite as
per normal. It may even be best to split the functionality. There is
'ftl', 'nand', 'jffs2' and 'ubi' and maybe the 'otp'. So, someway to
pass a make variable through the environment or command line to change
what is built is probably better? (lacking 'configure' or 'menuconfig').
For '0003-libubi.c-add-klibc-specific-fixes.patch', why can't 'klibc'
fix the 'ioctl' definition? I think that updating 'common.h' to handle
the peculiarities of 'klibc' and redefine the 'ioctl()' would be better,
if 'klibc' can't change.
I don't see issues with the other patches.
Fwiw,
Bill Pringlemeir.
next prev parent reply other threads:[~2014-07-04 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-03 7:59 [RFC] ubi-utils: improve compatibility with klibc Andrea Adami
2014-07-04 14:42 ` Bill Pringlemeir [this message]
2014-07-06 0:54 ` Andrea Adami
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=87egy189tw.fsf@nbsps.com \
--to=bpringlemeir@nbsps.com \
--cc=andrea.adami@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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