[Buildroot] linux: why is vmlinux only available for mips?
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jul 15 12:30:53 UTC 2011
Le Fri, 15 Jul 2011 08:34:34 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :
> > The depend statement causes the vmlinux target only to be available
> > for mips processors.
> > For powerpc for example, only uImage and zImage are selectable.
> >
> > However, I'd like to have vmlinux in the output/images directory.
> > First of all because I am directly loading this on target, rather than
> > uImage or zImage.
If vmlinux is useful on powerpc platforms, then it should be added to
the list of architectures for which vmlinux is proposed.
> In fact I have more problems with this version encoding in the output
> build/linux-X directory:
> * I need to get to the vmlinux file (mentioned above)
Just need to add "|| BR2_powerpc" as you suggested.
> * 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 ?
> * 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.
> If you stick with one kernel version, then you can hardcode it in the
> relevant scripts and Makefiles. However, when switching to another
> version, you have to update all of these files.
> One approach to solve all of this would be to create a symbolic link
> output/build/linux, pointing to the output/build/linux-X directory
> corresponding to the actually configured version.
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.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list