From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] linux: why is vmlinux only available for mips?
Date: Wed, 20 Jul 2011 18:17:15 +0200 [thread overview]
Message-ID: <20110720181715.0267567a@skate> (raw)
In-Reply-To: <CAAXf6LUaOXizUnxjZVhbpoeiAxAiLeYyXajQKgOjKzY-vo0g2w@mail.gmail.com>
Le Wed, 20 Jul 2011 15:38:14 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :
> > Just need to add "|| BR2_powerpc" as you suggested.
>
> I'm not sure why you want to restrict this to specific architectures
> instead of allowing it for all.
> What is wrong with the following?
At least on x86 and ARM, "vmlinux" does not exist in arch/<ARCH>/boot/,
so allowing "vmlinux" would simply trigger a failure at build time.
> It will be up to the user/developer to decide what kind of output he
> wants. The linux kernel Makefile will always generate vmlinux.
No. The "vmlinux" that the Linux kernel generates in its top directory
is not a valid bootable image on architectures such as x86 and ARM. And
for those architectures, there is no "vmlinux" file in
arch/<ARCH>/boot/.
> Whether it is of direct use for a certain architecture is another question.
> Most developers will select e.g. uImage for use with U-boot, but some
> (like us) may want to do our own transformations on vmlinux to package
> it in another way (e.g. with a proprietary bootloader).
Which vmlinux are you using ? The one at the top directory of the
kernel source tree, or the one in arch/<ARCH>/boot ?
> >> * I need to get to the dtc (device tree compiler) which resides in
> >> <linux>/scripts/dtc/dtc
> >
> > This tool looks like a useful host tool built by the kernel. Maybe we
> > should install it in $(HOST_DIR)/usr/bin ?
>
> Yes, I agree. How do you do that?
You can hijack any of the installation steps of the kernel to install
this tool to $(HOST_DIR)/usr/bin. But technically speaking, this
wouldn't respect the convention of the package infrastructure: the
"linux" package is a target package, and it is therefore not supposed
to install anything in $(HOST_DIR).
> >> * I need to be able to compile external kernel modules, so in that
> >> Makefile I need to point to the right kernel directory.
> >
> > Ok. Those could be integrated as Buildroot packages, in which case
> > getting access to the Linux source directory is easy.
>
> Good point. I'll have to add Mercurial support in buildroot to get there though.
At some point, I had patches to add Mercurial support, but I guess they
got lost together with my previous laptop :-(
> > I think I'd prefer something like :
> >
> > $ make <pkg>-show-srcdir
> >
> > which would be implemented at the package infrastructure, and which
> > would return the source directory of a particular package. This way,
> > you can easily ask where a given package source code has been extracted
> > by Buildroot.
>
> I like this as well. It's simple and generic.
> I'm not sure whether it still is needed after I include the .config though.
Well, if you don't need it anymore, then let's keep the idea for
another time, when someone will actually need it for something. It
should be just 3 lines of code to add to the package infrastructure.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2011-07-20 16:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 6:20 [Buildroot] linux: why is vmlinux only available for mips? Thomas De Schampheleire
2011-07-15 6:34 ` Thomas De Schampheleire
2011-07-15 9:22 ` Yann E. MORIN
2011-07-15 9:34 ` Thomas De Schampheleire
2011-07-15 9:38 ` Peter Korsgaard
2011-07-15 11:53 ` Thomas De Schampheleire
2011-07-15 9:46 ` Daniele Salvatore Albano
2011-07-15 11:55 ` Thomas De Schampheleire
2011-07-15 12:30 ` Thomas Petazzoni
2011-07-15 13:10 ` Yann E. MORIN
2011-07-20 13:38 ` Thomas De Schampheleire
2011-07-20 16:10 ` Quotient Remainder
2011-07-20 19:23 ` Thomas Petazzoni
2011-07-24 11:36 ` Thomas De Schampheleire
2011-07-26 10:38 ` Thomas De Schampheleire
2011-07-20 16:17 ` Thomas Petazzoni [this message]
2011-07-24 11:46 ` Thomas De Schampheleire
2011-07-25 7:05 ` Thomas Petazzoni
2011-07-25 8:34 ` Thomas De Schampheleire
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=20110720181715.0267567a@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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