Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] linux: why is vmlinux only available for mips?
Date: Mon, 25 Jul 2011 09:05:12 +0200	[thread overview]
Message-ID: <20110725090512.627eca89@skate> (raw)
In-Reply-To: <CAAXf6LW0JhQM7i84d-MLK3kSZAcLHb3gkgNqJaXsUtR9HNgwUQ@mail.gmail.com>

Hello,

Le Sun, 24 Jul 2011 13:46:40 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :

> > Which vmlinux are you using ? The one at the top directory of the
> > kernel source tree, or the one in arch/<ARCH>/boot ?
> 
> I am using vmlinux from the kernel top directory. In fact, this is
> also where the linux.mk rules take it from:
> 
> ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
> LINUX26_IMAGE_PATH=$(LINUX26_DIR)/$(LINUX26_IMAGE_NAME)
> else
> ifeq ($(KERNEL_ARCH),avr32)
> LINUX26_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/images/$(LINUX26_IMAGE_NAME)
> else
> LINUX26_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/$(LINUX26_IMAGE_NAME)
> endif
> endif # BR2_LINUX_KERNEL_VMLINUX
> 
> If one would want to use vmlinux from arch/<arch>/boot, then he or she
> could use BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM and
> BR2_LINUX_KERNEL_IMAGE_TARGET_NAME without a problem.
> 
> As you mentioned, arch/<arch>/boot doesn't contain vmlinux for all
> architectures, while the top kernel directory does. Since buildroot
> already has a rule to get to this package, I simply wanted to remove
> the architecture dependency from it.

Ok, but typically, the vmlinux in the top directory isn't a bootable
image, as it is a pure ELF binary image. Are there
architectures/bootloaders combinations for which this format makes
sense ?

> >> >> * 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).
> 
> What about making a separate dtc package? The official sources are
> here, I think:
> http://jdl.com/software/

Ok, would indeed be nice to have a separate tarball for this. Is this
kept in sync with the version inside the kernel ?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-07-25  7:05 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
2011-07-24 11:46         ` Thomas De Schampheleire
2011-07-25  7:05           ` Thomas Petazzoni [this message]
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=20110725090512.627eca89@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