[Buildroot] ELFUTILS - only build for the target architecture...
Maurice Smulders
maurice.smulders at genevatech.net
Tue Oct 13 15:25:53 UTC 2020
Thomas,
I am using a (slightly) modified version of 2020.02. It is a hybrid
form of a custom tree and a few patches.
I patched the crosstool section to allow GLIBC to be used for our PPC
e500v2 architecture - isn't that hard, but it requires an older
version of GLIBC (2.29.1) - as the newest version doesn't support PPC
e500 anymore - just like GCC 7.5 is the end of the line for it too
and I made a patch to support compiling cborruby - as the ruby
developers haven't thought at all about cross compiling for other than
Windows on Linux...
I can likely upgrade buildroot to the latest LTS and apply these
patches to be at the same state...
[~/build/buildroot-top/buildroot-customization/package/minicoredumper]$
cat Config.in
*[master]
config BR2_PACKAGE_MINICOREDUMPER
bool "MiniCoreDumper"
select BR2_PACKAGE_ELFUTILS
help
MiniCoredumper handler to create limited size core dumps.
https://www.linutronix.de/minicoredumper
[~/build/buildroot-top/buildroot-customization/package/minicoredumper]$
cat minicoredumper.mk
*[master]
################################################################################
#
# minicoredumper
#
################################################################################
MINICOREDUMPER_VERSION = 2.0.1
MINICOREDUMPER_SITE = https://www.linutronix.de/minicoredumper/files
MINICOREDUMPER_SOURCE = minicoredumper-$(MINICOREDUMPER_VERSION).tar.xz
MINICOREDUMPER_LICENSE_FILES = COPYING COPYING.BSD COPYING.LGPLv2.1
MINICOREDUMPER_DEPENDENCIES = json-c elfutils
$(eval $(autotools-package))
Maurice
On Tue, Oct 13, 2020 at 5:47 AM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> Hello Maurice,
>
> On Mon, 12 Oct 2020 17:06:26 -0600
> Maurice Smulders via buildroot <buildroot at busybox.net> wrote:
>
> > Currently, ELFUTILS gets built for all architectures it looks like.
> >
> > safe:/usr/lib/elfutils> ls
> > libebl_aarch64-0.177.so libebl_i386.so libebl_s390-0.177.so
> > libebl_aarch64.so libebl_ia64-0.177.so libebl_s390.so
> > libebl_alpha-0.177.so libebl_ia64.so libebl_sh-0.177.so
> > libebl_alpha.so libebl_m68k-0.177.so libebl_sh.so
> > libebl_arm-0.177.so libebl_m68k.so libebl_sparc-0.177.so
> > libebl_arm.so libebl_ppc-0.177.so libebl_sparc.so
> > libebl_bpf-0.177.so libebl_ppc.so libebl_tilegx-0.177.so
> > libebl_bpf.so libebl_ppc64-0.177.so libebl_tilegx.so
> > libebl_csky-0.177.so libebl_ppc64.so libebl_x86_64-0.177.so
> > libebl_csky.so libebl_riscv-0.177.so libebl_x86_64.so
> > libebl_i386-0.177.so libebl_riscv.so
>
> I don't see these shared libraries when building elfutils with the
> current Buildroot. Could you give more details about your Buildroot
> version and configuration ?
>
> > Is there a way to get it built just for the target architecture - in
> > our case PowerPC (ppc)? I have added minicoredumper to the
> > customization packages, and it requires elfutils....
>
> I think these files are all probably built for your target
> architecture, but have support for inspecting ELF files from other CPU
> architectures? For example, even if you're on PPC system, you may want
> to inspect x86 or ARM binaries. But I'm really just guessing here since
> I don't have those shared libraries installed when I build elfutils.
>
> And I see in the libebl/Makefile.am that it's a noinst library, so
> libebl should not even be installed. That being said, I admit I'm
> building with the latest Buildroot, which has elfutils 0.181 and you're
> using elfutils 0.177.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
Maurice Smulders, GTI
More information about the buildroot
mailing list