* [Buildroot] Where is mtd/mtd-user.h supposed to come from?
@ 2010-01-07 17:26 Grant Edwards
2010-01-07 22:17 ` Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2010-01-07 17:26 UTC (permalink / raw)
To: buildroot
The build of uboot's fw_env target tool is failing because
there is no mtd/mtd-user.h file.
Where is the mtd include directory supposed to come from?
Is it supposed to come from the kernel-headers or from the mtd
package?
It's present in both, but never gets copied into the toolchain
include tree when the toolchainis built, nor into the staging
include tree when mtd is built.
--
Grant Edwards grante Yow! Hmmm ... A hash-singer
at and a cross-eyed guy were
visi.com SLEEPING on a deserted
island, when ...
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Where is mtd/mtd-user.h supposed to come from?
2010-01-07 17:26 [Buildroot] Where is mtd/mtd-user.h supposed to come from? Grant Edwards
@ 2010-01-07 22:17 ` Grant Edwards
2010-01-26 15:23 ` Will Wagner
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2010-01-07 22:17 UTC (permalink / raw)
To: buildroot
On 2010-01-07, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> The build of uboot's fw_env target tool is failing because
> there is no mtd/mtd-user.h file.
Manually copying the mtd directory from the kernel headers into
the toolchain /usr/include directory allows mtd stuff to build.
I don't know how to get buildroot to do that when it's building
a toolchain.
Though the mtd programs build, they still wonn't run, since
libgcc_s is missing, but more on that in another thread...
--
Grant Edwards grante Yow! PUNK ROCK!! DISCO
at DUCK!! BIRTH CONTROL!!
visi.com
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Where is mtd/mtd-user.h supposed to come from?
2010-01-07 22:17 ` Grant Edwards
@ 2010-01-26 15:23 ` Will Wagner
2010-01-26 16:49 ` Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Will Wagner @ 2010-01-26 15:23 UTC (permalink / raw)
To: buildroot
On 07/01/2010 22:17, Grant Edwards wrote:
> On 2010-01-07, Grant Edwards<grant.b.edwards@gmail.com> wrote:
>
>
>> The build of uboot's fw_env target tool is failing because
>> there is no mtd/mtd-user.h file.
>>
> Manually copying the mtd directory from the kernel headers into
> the toolchain /usr/include directory allows mtd stuff to build.
> I don't know how to get buildroot to do that when it's building
> a toolchain.
>
>
Rather belatedly I realise that I am seeing the same problem. When the
kernel headers are installed I get mtd-user.h in
toolchain/linux/include. Also when I build mtd-utils the header is in
build/mtd_orig/include. However it does not get copied in
staging/usr/include so any apps I write that use the header fail to compile.
I have previously fixed this my adding a rule that copies the headers
from build/mtd_orig/include when the mtd package is built.
Is this a good way to do this? Why aren't all the kernel headers made
available in staging/usr/include? How would anyone else fix this?
Thanks
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Where is mtd/mtd-user.h supposed to come from?
2010-01-26 15:23 ` Will Wagner
@ 2010-01-26 16:49 ` Grant Edwards
0 siblings, 0 replies; 4+ messages in thread
From: Grant Edwards @ 2010-01-26 16:49 UTC (permalink / raw)
To: buildroot
On 2010-01-26, Will Wagner <will_wagner@carallon.com> wrote:
Grant Edwards<grant.b.edwards@gmail.com> wrote:
>>> The build of uboot's fw_env target tool is failing because
>>> there is no mtd/mtd-user.h file.
>>>
>> Manually copying the mtd directory from the kernel headers
>> into the toolchain /usr/include directory allows mtd stuff to
>> build. I don't know how to get buildroot to do that when it's
>> building a toolchain.
>
> Rather belatedly I realise that I am seeing the same problem.
> When the kernel headers are installed I get mtd-user.h in
> toolchain/linux/include. Also when I build mtd-utils the
> header is in build/mtd_orig/include. However it does not get
> copied in staging/usr/include so any apps I write that use the
> header fail to compile.
>
> I have previously fixed this my adding a rule that copies the
> headers from build/mtd_orig/include when the mtd package is
> built.
>
> Is this a good way to do this? Why aren't all the kernel
> headers made available in staging/usr/include?
Good question.
> How would anyone else fix this?
I ended up writing a shell script to do buildroot "make" runs.
After building the toolchain, that shell script copies the mtd
header files and some library files into the places required to
produce a usable toolchain.
--
Grant Edwards grante Yow! Actually, what I'd
at like is a little toy
visi.com spaceship!!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-26 16:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07 17:26 [Buildroot] Where is mtd/mtd-user.h supposed to come from? Grant Edwards
2010-01-07 22:17 ` Grant Edwards
2010-01-26 15:23 ` Will Wagner
2010-01-26 16:49 ` Grant Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox