| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Redirect stderr to stdout for the actual autogen.sh, prepare, compile,
install and opkg-build command.
This preserves the chronological order of stdout vs. stderr when building
packages in parallel with output sync enabled.
As a side-effect, the stderr output of these commands won't show up on the
console for quiet builds. But most of that is not really useful by itself
anyways. And the resulting logfile is more readable now for the rest.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
existing (packaged) *.pyc files
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
executable
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Otherwise overwriting broken symlinks with files will fail.
This happens occasionally in sysroot target, e.g. with /bin/pidof from
busybox and initng.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
If the while loop returns early, then 'find' can fail with a 'broken pipe'
error.
Add an error message to indicate the origin of the failure.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
python3 generates __pycache__/<file>.*.pyc for <file>.py. However,
<file>.pyc is needed if <file>.py is not installed. So move the files to
meed the requirements.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
before using it
Otherwise fakeroot can fail in parallel build when it is used before it is
completely installed.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just copying ${pkg_pkg_dir} recursively can fail. This can happen with -jeX
when 'cp' is executed for two packages the same time: 'cp' first checks if a
directory exists, and creates it if not. If two instances of 'cp' try this with
the same directory at the same time, there is a race condition and the second
'cp' may fail to create the directory because it already exists.
Avoid this by creating the directories first. 'mkdir -p' will just try to
create the directories and ignores any EEXIST.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch should solve the problem that binaries in
$PTXDIST_SYSROOT_HOST/bin must be able to find their libraries in
$PTXDIST_SYSROOT_HOST/lib. On ELF systems that problem is solved
by using rpath. However, rpath doesn't exist (works different) on
Darwin that uses the Mach-O binary format.
After copying the files to $PTXDIST_SYSROOT_HOST, we do following:
- For every library (lib/*.*.dylib), we change the install name
from /lib/libfoo.x.dylib to $PTXDIST_SYSROOT_HOST/lib/libfoo.x.dylib.
That way programs linked against that library can be executed
immediately, even in the build directory before installation
to $PTXDIST_SYSROOT_HOST.
That's the call of "install_name_tool -id".
- For every library (lib/*.*.dylib) and executable (bin/*), we
change the install name of dependent libraries to point to
$PTXDIST_SYSROOT_HOST/lib. The call of "otool -L" lists the
dependent libraries (like "readelf -d" on ELF systems) and
the call "install_name_tool -change" changes it. That step
is necessary because multiple libraries and binaries can be
built and installed at the same time, so the binary is already
built before "install_name_tool -id" is invoked.
That way I'm finally able to build host-qemu with host-glib and
host-gettext-dummy (that provides -lintl which host-glib uses).
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
assume there is nothing to install if no source dir is defined
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
Use "find -depth ..." instead of "rmdir -p". Otherwise too many
directories may be removed if nothing is installed.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This makes it possible to use the default install stage for packages
that have no sources.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
...which is not supported by older versions of "find",
use "-perm /111" instead.
Reported-by: Erwin Rol <erwin@erwinrol.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Some configure scripts may look for <pkg>-config in <sysroot>/usr/bin
This can happen when setting --<pkg>dir=<sysroot>/usr. So having
'@SYSROOT@' in <sysroot>/usr/bin/<pkg>-config is not good.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
host-tools
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
| |
This hopefully fixes the problem with failing targetinstall stages.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
| |
This patch introduces the variable "pkg_fake_env" which holds the
fakeroot environment.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
This patch activates the binconfig_glob mechanism as described in commit
61211865e20efac9042ad89a9a5c28e4bc0d3100.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
one for target the other for host and cross pacakges.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
| |
..and introduce the variable: "pkg_sysroot_dir" which points to the
package's sysroot.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The install stage consists basically of:
make DESTDIR=<PKG>_PKGDIR <PKG>_INSTALL_OPT
With default "install" for <PKG>_INSTALL_OPT.
This can be overwritten or extended from a pacakge. There are
(at least) two reasons for this:
1) "make install" installs too mouch,
you don't want to install everything.
example:
MII_DIAG_INSTALL_OPT := install-mii-diag
2) The package doesn't understand DESTDIR. It uses INSTALL_ROOT instead.
example:
QT4_INSTALL_OPT := INSTALL_ROOT=$(QT4_PKGDIR)
The variable <PKG>_PKGDIR comes predefined from PTXdist and can be
used.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
it's only used for target packages
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
Signed-off-by: Jon Ringle <jon@ringle.org>
[mkl: split into smaller patches, add support for generic extract stage]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
pkg-config-wrapper anymore
pkg-config's .pc file are now relocatable, the pkg-config-wrapper isn't
needed anymore. Thus it's disabled now.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10949 33e552b5-05e3-0310-8538-816dae2090ed
|
|
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10795 33e552b5-05e3-0310-8538-816dae2090ed
|