Gustavo Zacarias [Tue, 30 Nov 2010 15:19:59 +0000 (12:19 -0300)]
Makefile: introduce KSTRIPCMD to strip kernel modules
When sstrip is selected it tries to strip kernel modules too.
Unfortunately this fails with a "unrecognized program segment header
size" error thus interrupting the build process.
We introduce a new $(KSTRIPCMD) strip command for this, being a regular
strip when sstrip is selected and an empty stub when not stripping.
At the same time get rid of the REMOVE_SECTION_* variables, as they are
only used once.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Sat, 27 Nov 2010 23:55:20 +0000 (18:55 -0500)]
tcpdump: punt duplicate versioned binary
The tcpdump package likes to install two binaries into /usr/sbin --
one named "tcpdump" and one named "tcpdump.<ver>". But it does this
by installing the file twice rather than using links. Since the alt
name is useless to us, just punt it.
[Peter: Rework to use POST_INSTALL_TARGET_HOOKS instead] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Sun, 28 Nov 2010 21:10:13 +0000 (22:10 +0100)]
target-finalize: libtread_db: support nonstd toolchain setups
Certain toolchain configs (E.G. on blackfin), don't use symlinks, so the
file name to match is the actual SONAME (.so.*). Support these toolchains
as well.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Javier Viguera [Fri, 26 Nov 2010 18:26:56 +0000 (19:26 +0100)]
target-finalize: do not strip libthread_db
Fix previous commit not to strip libthread_db library. In the previous
commit the wildcard was incorrectly matching the symbolic link instead
of the real library file.
Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Will Newton [Fri, 26 Nov 2010 12:58:15 +0000 (12:58 +0000)]
package/qt: Remove selects of BR2_PACKAGE_QT_JAVASCRIPTCORE.
Building WebKit or Script engine support would select JIT support
in JavaScriptCore. Not all platforms support JIT, so remove the
selects to allow the option to be modified by users.
Signed-off-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard [Thu, 25 Nov 2010 10:07:08 +0000 (11:07 +0100)]
dialog: fix build, ensure host includes aren't used
configure looks for libintl, so ensure it is available. Also make sure
the host ncurses headers aren't used.
Fix up Config.in indentation while we're at it.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Konrad Eisele [Tue, 9 Nov 2010 16:27:39 +0000 (13:27 -0300)]
gcc-patch: Add patch for 4.4.5 to support Sparc-leon processors
Gcc patch that adds hfleon (fpu,v7), hfleonv8 (fpu, v8), sfleon (softfpu,v7),
sfleonv8 (softfpu,v8) SPARC variants. Default cpu is selected with --with-cpu.
Adds leon pipeline descrption to gcc.
Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Paulius Zaleckas [Mon, 15 Nov 2010 20:56:16 +0000 (17:56 -0300)]
gpsd: fixup various problems with Config.in
fix wrong configure symbol name for MTK.
remove default values from most of options and leave only
default y for NMEA protocol (90% of users will need this one)
and features for gpsd to reconfigure device.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Sat, 20 Nov 2010 05:27:34 +0000 (00:27 -0500)]
lrzsz: add lrz/lsz symlinks
Many systems support automatic zmodem transfers without needing to first
manually run the zmodem utils. But the expectation is to run `lrz` and
not `rz`. So install symlinks for lrz->rz and lsz->sz to support this.
This also includes a small fix to also remove sz when cleaning.
[Peter: use addprefix rather than patsubst] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Sat, 20 Nov 2010 10:29:28 +0000 (05:29 -0500)]
target-finalize: do not strip libthread_db.so
For proper threading debug support, the libthread_db.so library cannot
be stripped on the target. This is because the target gdbserver will
also load up this library at runtime and poke around its symbols.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Thu, 18 Nov 2010 21:25:58 +0000 (16:25 -0500)]
auto remove empty /usr/share dir
Often times, the only reason /usr/share exists is because of documentation
installed into it. So once we're done cleaning the docs, attempt to rmdir
/usr/share. If it's empty, things will work out nicely.
[Peter: use make infrastructure to ignore errors rather than shell] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Wed, 17 Nov 2010 23:55:43 +0000 (18:55 -0500)]
linux: strip installed modules
The installed kernel modules should have useless build cruft stripped out
of them. On my system, a default build went from a very unreasonable 30MB
to a normal 3MB (on disk) and from 14MB to 3MB when compressed due to the
info stored in the kernel modules alone.
[Peter: don't hardcode binutils strip specific options] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard [Fri, 19 Nov 2010 13:20:56 +0000 (14:20 +0100)]
Makefile: handle host packages for make source / make external-deps
Ensure host packages (dependencies of target packages) are also handled
by make source / make external-deps.
This has to be done a explicitly, as we don't list these in Kconfig,
and hence also not in a variable like TARGETS, so instead we have to
look at the <PKG>_DEPENDENCIES variables for each enabled package and
extract the host packages from there.
Host packages can in turn also have dependencies, so we have to follow
those as well. Ideally this should be done recursively, but as that's
pretty hard to do in make, it is limited to 1 level for now.
Finally, host packages share source files with target packages, so
pipe output of make external-deps through sort -u to ensure duplicates
are removed.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Thu, 18 Nov 2010 10:37:47 +0000 (05:37 -0500)]
.gitignore: ignore more patch related files
Patches shouldn't be committed to the top level, and that is where
`git format-patch` typically operates, so ignore that stuff.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Thu, 18 Nov 2010 10:26:51 +0000 (05:26 -0500)]
gdb: drop local stripping in favor of top level
Since the top level takes care of stripping for us, and some file formats
cannot be stripped safely (like FLAT which will error out), simply punt
the manual stripping from the gdb package.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Wed, 17 Nov 2010 06:41:33 +0000 (01:41 -0500)]
toolchain-external: fix indentation in Kconfig
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Wed, 17 Nov 2010 06:46:22 +0000 (01:46 -0500)]
initramfs: fix init symlink creation
The -e test will dereference the symlink, so if there is no /bin/init,
we will constantly try to create the symlink. So rather than error on
subsequent runs when the link exists, use the force flag to ln.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Mike Frysinger [Tue, 16 Nov 2010 14:39:10 +0000 (09:39 -0500)]
linux: update paths to compiled cpio files
Linux has been using "usr/initramfs_data.cpio" for a few releases as the
generated cpio name, so the buildroot match of "...cpio.*" won't actually
clean out the previous result.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>