Add elfutils to the distribution
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 25 May 2016 20:25:21 +0000 (16:25 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:38 +0000 (11:48 -0400)
commita48833f5fb1df09e1d2bd3eaf0bffa49038acfb3
treed68f02a69d56882993dbe308af6800f7f9886211
parentfb096497f33b43dc5be62ab8a6af86d4f3116db9
Add elfutils to the distribution

Perf will depend on this.  We don't have a way to express that dependency
yet, but at least we'll build the library before building perf when you do
a make apps-install.

Note that elfutils isn't added to our codebase - just a Makefile that will
build it and drop it in your sysroot.

You'll need to make fill-kfs after building this, just like any other
shared library (e.g. glibc).

Oh, this also accidentally gave us readelf and a bunch of other tools that
should run natively.  Right now, they are installed to the sysroot/usr/bin
instead of kern/kfs/bin.  We probably don't want an extra 11 MB for tools
we won't use yet.

I attempted to have make depend on $(build-dir)/Makefile instead of
config.  This would work for a clean repo, but later we'd have issues.
If we had successfully configured, then did something that caused a
reconfig, make would get confused.  It would see that
$(build-dir)/Makefile existed, then it would rebuild build-dir, removing
the Makefile.  It would skip the config step, since it thought that
build-dir was older than Makefile, for whatever reason.  i.e.

Prerequisite `elfutils-0.164' is older than target `elfutils-0.164/Makefile'.
No need to remake target `elfutils-0.164/Makefile'.

If someone has a nice fix, then we can change it.  Until then, every
time we make, we'll also have to configure.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
Makefile
tools/dev-libs/elfutils/.gitignore [new file with mode: 0644]
tools/dev-libs/elfutils/Makefile [new file with mode: 0644]
tools/dev-libs/elfutils/akaros-patches/0.164/001_config_sub.patch [new file with mode: 0644]
tools/dev-libs/elfutils/akaros-patches/0.164/002_user_regs.patch [new file with mode: 0644]