Commit Graph

57046 Commits

Author SHA1 Message Date
Carlos Rafael Giani
c84a522fd4 gstreamer1.0-vaapi: Transition to meson based builds
* Removed autotools/M4 related patch
  0001-gst-vaapi-Makefile.am-Add-EGL_CFLAGS-to-libgstvaapi-.patch.

(From OE-Core rev: 5dc07f58832483ae44e8bfb6c3aa1787d607b8f3)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
1e05d67ed1 gstreamer1.0-libav: Transition to meson based builds
meson based builds exclusively rely on external FFmpeg builds. The internal
copy was added at a time when stable FFmpeg releases did not exist. They
do nowadays, so the internal copy is not needed anymore. As a result, large
portions of the recipe are unnecessary, since they set up the internal
copy. Same goes for the patches and the zlib/bzip2/xz dependendencies.

(From OE-Core rev: ab9316367d6c22f7f2d45db41bb7c8ef28e58168)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
c0a9969144 gstreamer1.0-plugins-ugly: Transition to meson based builds
* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

(From OE-Core rev: 6e25fcfe56248bef9881c0a81236ccd7c6331681)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
427eb30f9b gstreamer1.0-plugins-bad: Transition to meson based builds
* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* configure-allow-to-disable-libssh2.patch got replaced by the
  -Dcurl-ssh2 option.

* 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch is a
  fix for GIR support in the meson.build file.

* New "closedcaption" packageconfigs added.

* Removed "flite" packageconfig since flite-alsa was removed from
  meta-openembedded due it being old and abandoned.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

(From OE-Core rev: fec739c764aed866b073f240086ca193dfe2f495)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
41c498bded gstreamer1.0-plugins-good: Transition to meson based builds
* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* gtk-doc support is handled here, not in gstreamer1.0-plugins-common.inc,
    since unlike with autotools, only some plugin set packages use gtk-doc.

* zlib is no longer optional, and glib anyway depends on zlib, therefore
    it gets added to the DEPENDS list.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

(From OE-Core rev: 10a824383fee1060f6335ceffedf48e165b6d5a2)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
e957fbc5d8 gstreamer1.0-plugins-base: Transition to meson based builds
* OpenGL packageconfigs now work differently. There are separate ones for
  OpenGL API/platform/window system selection. The meson.build script
  expects the selected ones as comma separated lists. For example, like
  "-Dgl_api=opengl,gles2". The variables OPENGL_APIS / OPENGL_PLATFORMS /
  OPENGL_WINSYS are whitespace-separated lists (which is the OE norm) of
  the respective packageconfigs. .bbappend files can then extend these
  lists with additional possible configs.
  "Possible" means that the target can support those packageconfigs. This
  does not immediately add them to the PACKAGECONFIG variable - this still
  has to be done manually. The get_opengl_cmdline_list() goes through these
  lists, and for each entry, checks if it is contained in the PACKAGECONFIG
  variable. If so, they get added to the comma separated lists that are
  passed to meson.
  For example, a Raspberry Pi layer could add "dispmanx" to OPENGL_WINSYS.

* The "ivorbis" packageconfig got renamed to "tremor", since that is the
  name of the OE recipe, and now also the name of the meson option.

* 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch and
  0002-meson-Add-variables-for-gir-files.patch are backported fixes for
  GIR support in the meson.build files.

* make-gio_unix_2_0-dependency-configurable.patch removed because it is
  no longer useful to have.

* link-with-libvchostif.patch removed because the flags it changed are
  no longer present in the meson.build scripts. If the related issue
  reappears, a similar patch can be applied again.

* 0003-riff-add-missing-include-directories-when-calling-in.patch removed
  since the entire gst riff library has been excluded from GObject
  introspection due to naming convention issues.

* Removed a number of autotool/M4 related patches and recipe lines.

* gtk-doc support is handled here, not in gstreamer1.0-plugins-common.inc,
  since unlike with autotools, only some plugin set packages use gtk-doc.

* zlib is no longer optional, and glib anyway depends on zlib, therefore
  it gets added to the DEPENDS list.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

(From OE-Core rev: 20614408dc4e0593f2cce2e342d5b8a15f182c14)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
3e71919b86 gstreamer1.0: Transition to meson based builds
* Moved 0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch
  from files/ to gstreamer1.0/ since it is gstreamer1.0 recipe specific.

* Removed M4 specific patches:
  - 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch
  - gtk-doc-tweaks.patch
  - add-a-target-to-compile-tests.patch

* Added patches:
  - 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch
    Backport for enabling GIR support in meson based cross compilation
  - 0002-meson-Add-valgrind-feature.patch
    Make valgrind support configurable to be able to control it through
    a "valgrind" packageconfig
  - 0003-meson-Add-option-for-installed-tests.patch
    Add support for installable tests and for generating .test and shell
    scripts which can be used with the gnome-desktop-testing suite runner

* PTest support:
  By default, GStreamer does not allow for installing tests, and requires
  meson to run its unit tests. The 0003 patch fixes this by installing
  the binaries themselves and by generating accompanying .test and shell
  scripts. The scripts set up the required environment files and then
  call the test binaries. The .test file list the shell scripts as
  Exec= command line.

(From OE-Core rev: 0db7ba34ca41b107042306d13a6f0162885c123b)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Carlos Rafael Giani
01c1f63bdb gstreamer: Add common .inc files for meson based recipes
* gstreamer1.0-plugins-common.inc
  The old gstreamer1.0-plugins.inc file, adapted for meson
* gstreamer1.0-plugins-packaging.inc
  The old gst-plugins-package.inc file, adapted for meson
* gstreamer1.0-ptest.inc
  Common code for meson based PTest support; autogenerates the run-ptest
  file and is designed to use the gnome-desktop-testing suite runner
  (which is why the .inc files inherits from ptest-gnome)

(From OE-Core rev: 075aa7a617d38d6a698cee97dcb7550e72741eb5)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-16 22:33:08 +00:00
Richard Purdie
31e5bc2b58 bitbake: runqueue: Use a set for the setscene tasks list
This should give performance improvements to functions using this list of
tasks (sets are used for most of the other code for this reason, not sure
why this wasn't a set in the first place).

(Bitbake rev: f5daef68703481a3c243dfecc7de404e6ebfdbb6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:12:23 +00:00
Peter Kjellerstedt
fbe8b3e3e9 bitbake: knotty: Be consistent when creating/updating progress bars
When creating a new progress bar (using BBProgress), a colon was
appended to the supplied message. However, when updating the message,
no colon was appended.

Change this so that the colon is instead part of the widgets that make
up the progress bar so that it does not matter when and how the
message is updated, it always displays the same.

(Bitbake rev: 08f35c04f6e1ce4c4ca5c2bef4cd8a192e12e682)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:12:23 +00:00
Peter Kjellerstedt
5c935fb29c bitbake: knotty: Hide the footer if a process progress bar is shown
With the introduction of the hash equivalence server, the progress bar
for "Checking sstate mirror object availability" is shown repeatedly
while the tasks are being executed. If the footer is not hidden then,
it will be moved up one line every time, creating a messy interface.

(Bitbake rev: 56b5ec4c2b3e658e73ca6c3a12feeb96df0977fb)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:12:23 +00:00
Ross Burton
fc81384198 gettext: fix typo in Upstream-Status
(From OE-Core rev: b6d4150f9c74f25a4022a3fa0bd489a8e85deb77)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:07:36 +00:00
Ross Burton
3e89d4c9be systemd: add missing Upstream-Status
(From OE-Core rev: 66d4314c12831cfdbe14130db204fa99e3c77f5e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:07:36 +00:00
Richard Purdie
de6f1393e9 scripts/oe-build-perf-report: Avoid buildstats warning
When a comparision branch is set we see warnings. If two branches are used,
look for buildstats information from both to avoid this kind of warning:

INFO: Parsing buildstats from 'refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86'
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/0
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/1
INFO: Buildstats were missing for some test runs, please run 'git fetch origin refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86:refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86' and try again

(the warning is due to stats being looked for in both branches, choose
the other branch and different warnings would be shown)

(From OE-Core rev: af58c18fcd0451540dd77ee862956b2b9dee17c4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:07:01 +00:00
Richard Purdie
3a83fec814 sstate: Improve move into place op and touch file
Depending on the kernel and coreutils version, mv operations test for existence
of files and can potentially race. It also leads to the file always changing which
leads to potential problems if using and NFS share and there are other readers.

Using ln instead means we don't overwrite the file if it already exists meaning
other readers aren't disrupted and should work more reliably on NFS which is used
for sstate on the autobuilder.

Since we're not overwriting files, touch the file to show activity as would have
been done it it were reused from sstate.

(From OE-Core rev: d8e9a22a4e23616ad01627c1e472296b1e26f13c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-13 13:07:01 +00:00
Peter Kjellerstedt
402b552239 toaster.bbclass: Correct pkgdatadir path in toaster_package_dumpdata()
In commit 692b2046 (package: Fix race between do_package and
do_packagedata), the path used for do_packagedata[sstate-inputdirs]
was changed from "${PKGDESTWORK}" to "${WORKDIR}/pkgdata-pdata-input".
This commit adapts the path used for pkgdatadir in
toaster_package_dumpdata() accordingly to avoid setscene errors like:

  ERROR: libgcc-9.2.0-r0 do_packagedata_setscene: Error executing a
  python function in exec_python_func() autogenerated:

  The stack trace of python calls that resulted in this
  exception/failure was:
  File: 'exec_python_func() autogenerated', lineno: 2, function:
  <module>
       0001:
   *** 0002:toaster_package_dumpdata(d)
       0003:
  File: 'meta/classes/toaster.bbclass', lineno: 130, function:
  toaster_package_dumpdata
       0126:    lpkgdata = {}
       0127:    datadir = os.path.join(pkgdatadir, 'runtime')
       0128:
       0129:    # scan and send data for each generated package
   *** 0130:    for datafile in os.listdir(datadir):
       0131:        if not datafile.endswith('.packaged'):
       0132:            lpkgdata = _toaster_load_pkgdatafile(datadir,
       0133:            # Fire an event containing the pkg data
       0134:            bb.event.fire(bb.event.MetadataEvent(
  Exception: FileNotFoundError: [Errno 2] No such file or directory:
  'tmp/work/mips32r2el-nf-poky-linux/libgcc/9.2.0-r0/pkgdata/runtime'

(From OE-Core rev: 5a0f6f631b86f7107aa72453b6d23f32ba39f713)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 15:19:27 +00:00
Richard Purdie
b4087338be glib-2.0: Fix hardcoded paths in checksums
The expansion by this function, recently added by the meson site handling code
was causing hardcoded paths to become embedded in the tash hashes. Avoid this
(and hence avoid eSDK failures which exposed this).

(From OE-Core rev: 83899aad423cd36cea7ab2ea210feae5b3359823)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 15:19:27 +00:00
Richard Purdie
e30b8ddad2 meta-extsdk-toolchain: Mark as nostamp
This recipe needs to generate the latest hashes. With unihash we may not
rebuild as previous dependencies may be marked as equivalent.

eSDK which uses this is nostamp already, mark this task as nostamp also
for the same reason.

(From OE-Core rev: e8cfc8525c5d903ee876eafd56521f4a7325a6f5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 15:19:27 +00:00
Ross Burton
64cacd1be4 glib: support target/os/libc-specific Meson cross files
Build systems have a common problem that some tests can only be done by
executing a piece of test code (compared to just compiling or linking test
code).  In a cross-compilation the execution of this code isn't possible and the
Meson solution to this is to allow 'cross properties' to be specified in the
cross files.

GLib has a number of these, for example determining the direction the stack
grows, whether /proc/self/cmdline exists, or the behaviour of snprintf().
Previously we'd passed values for these to the Glib build for target builds, but
this misses out nativesdk builds (which are also cross-compiled) and the fact
that some of these values are specific to the platform, some are specific to the
host OS, and some are specific to the libc implementation.

This problem has already been solved for autotools with the siteinfo class,
which turns the target platform/OS/libc variables into filenames (such as common
common-linux common-glibc).  We can look for these in FILESDIR and use them as
cross files.

Assuming that there are no problems with this appoach it can be moved into
meson.bbclass so that all Meson recipes can use it for their cross files.

(From OE-Core rev: 5acd9cbc9d5c6355010775250fb25f043441c5cd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 15:19:27 +00:00
Khem Raj
3189be6d63 weston-init: Let weston run without pam on distros without pam
When pam is not part of distro, user specific XDG_* environment
variables are not available since PAMName=login is in-effective and as a
result weston can not start because it direly needs XDG_RUNTIME_DIR
defined, therefore launching weston directly in systemd service will not
work, therefore call the helper script weston-start, which is also used
with sysvinit

extend enabling fbdev backend fallback to all qemu machines

Reported-by: Marek Vasut <marex@denx.de>
(From OE-Core rev: ae66cf5e03f04361aad2bd8784fb7d42e0f0bb08)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 15:19:27 +00:00
André Draszik
34c7222e1d site: musl and glibc have working mktime()
This coreutils (gnulib) test tests for various bugs that only
exist in ancient versions.

It defaults to assuming buggy behaviour with its own implementation
when cross-compiling.

musl and recent glibc (2.29) are not affected.

(From OE-Core rev: 65d38cc1ce5a106c4c2e5068b8440eb6e5a2b33e)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
39abf8342b site: strtod() works in glibc / musl
autoconf has a test for strtod(), which assumes non-working
when cross-compiling, but it does work in both musl and
recent glibc.

coreutils (gnulib) does some additional tests on top of that,
but assumes working glibc when >= 2.8 when cross compiling.
It doesn't know about musl where the additional tests also
work, though.

(From OE-Core rev: c8429f707d9ac785f295492470ec8b9ff56c043b)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a88dfc0ee8 site: set nanosleep() behaviour for glibc / musl
As per coreutils' (gnulib's) autotools test, nanosleep()
misbehaves on glibc (2.29), and works fine on musl.

During cross-compile, recent coreutils assume brokenness
when compiling for linux, which pessimises musl.

Set the correct result for musl, and for coherency reasons,
also specify the result for glibc.

(From OE-Core rev: 4522648758dc59f5ece736a0c1c0e95dcc7dafd1)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
c836211c6d site: on linux, link(2) doesn't follow symlinks
(but gnulib / coreutils assumes yes when cross-compiling)

(From OE-Core rev: e1a20bed0d1c6b5fc64c9200fcd8ce2496ce3e08)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
644c19059c site: on linux, pipes are fifos with max link count of 1
(From OE-Core rev: 13aa567ac1c2c5232378bb9de0bb4ccf04f8c2ac)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
56c6dde17b site: musl and glibc have working utimes()
This coreutils / gnulib autoconf test is for a broken glibc
implementation of utimes from 2003-07-12 to 2003-09-17.

(From OE-Core rev: a60ca6048cc3a4fef862b128a842c70ac0cd2253)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
b2ef331d0a site: linux supports NULL in utime()
to set the file to the current time

(From OE-Core rev: 530e01e79e9674d0049b183dc23491eb886b066b)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a127c4df0d site: musl and glibc have working getgroups()
recent coreutils (gnulib) assume yes when cross-compiling
for gnu (glibc), but don't know about musl.
For coherence, just set the result to yes for both.

Note that the old coreutils (from meta-gplv2) doesn't
assume anything and instead that recipe hard-codes to yes.
So behaviour with yocto when using meta-gplv2 is actually
better than when using the latest version (when using musl).

This patch rectifies this shortcoming.

(From OE-Core rev: 692fe85264e599eb659456bd2eebf5f12a1cd30f)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
f50911e245 site: set getcwd() test result for abort()-bug for glibc / musl
This coreutils (gnulib) test checks for an abort() that existed
in glibc before 2.4.90-10 (in 2006) in certain conditions.

Neither libraries exhibit this problem today.

(From OE-Core rev: 506c3b5adaa2fdffa051d83fb99efc00e432156b)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a1a0fa1317 site: set getcwd() behaviour for long paths for glibc / musl
In glibc, getcwd() handles long file names properly, on
musl, getcwd() only works up to PATH_MAX directory depths.

Configuring the autotools (gnulib) test result here allows
coreutils to compile more optimised code for both platforms,
rather than being pessimistic and re-implementing everything
itself.

The difference in behaviour is because both do the kernel
getcwd syscall (which only supports up to PATH_MAX), but
glibc implements fallbacks for longer paths, while musl
doesn't.

(From OE-Core rev: 525e33cf99983ee4bc3cf1822364123551aa7c83)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
e594841ef5 site: musl and glibc have glibc compatible getcwd()
I.e. allocate memory for the pointer returned when the first
argument is NULL.

(From OE-Core rev: fe148da36af2dc086e05e2ebc1c088f1b5485de2)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a67d08fd63 site: linux supports unlink() of executing program
I.e. shared text that is being executed.

(From OE-Core rev: 1370742d20aaa1a17f3e242ea9bb54df944b6416)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
3f1455887a site: musl and glibc have glibc compatible calloc()
calloc (N, S) returns non-NULL when N*S is zero,
and returns NULL when N*S overflows.

(From OE-Core rev: ba2bc4b6529013a303dd67abe944ceb619e7466c)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
8eec7e14db site: musl and glibc have working mkstemp()
their mkstemp() passes all tests from the gnulib m4 macro
gl_FUNC_MKSTEMP.

(From OE-Core rev: 2b0905d25fa295fc868bf6df1da89283b9dc1f45)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
fe141ba944 site: musl has working memcmp()
I.e. a memcmp() that is 8bit clean (like glibc).

(From OE-Core rev: d938ca1b8bc715047d771907c6ea4a1c9aa6594f)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
c2cf565e8d site: linux has working chown()
I.e. a chown() that works when given -1 as uid / gid

(From OE-Core rev: 226b8b2b1b565ef019b442ad3bf1f5d86704e1d2)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
Khem Raj
fa12bce81e busybox: Update inittab
Add stdin/stdout/stderr symlinks in case when not using hotplug
Disable ctrl+alt+del, not used much
Mount swap if defined

(From OE-Core rev: b1799bd40dfa3b244ddf2b7fba1fb4dc1f9a7394)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
Ross Burton
ea11f86ce9 perl: improve reproducibility
Occasionally the reproducibility selftest fails because perl-pod differs,
specifically that the perltoc.pod file was sometimes missing modules.

Debugging revealed that there are missing dependencies so there is a build race:
building perltoc.pod from an clean build tree results in no modules being listed
at all.

A bug has been filed at https://github.com/arsv/perl-cross/issues/86 to solve
this properly, but for now we can just delete perltoc.pod after make has
finished and re-generate it.

[ YOCTO #13726 ]

(From OE-Core rev: 7e0f6c9ea4f824f29dc30c6631fd8039ebe83a0b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:19 +00:00
Joshua Watt
08220028e5 runqemu: Add network bridge support
Qemu supports attaching the virtual machine to an existing network
bridge interface via the qemu-bridge-helper program (as long as the
system is correctly configured to give the user permissions). Add
support for runqemu to do this also via the "bridge=<INTERFACE>"
argument. Note that for this to work correctly, the host
qemu-bridge-helper must be used, not the one that might have been built
by qemu-native. In order for qemu to correctly find this program, a
qemu-oe-bridge-helper program has been added to qemu-helper-native, and
runqemu will use this helper as the bridge helper. The helper will look
for the host qemu-bridge-helper first by looking in the
QEMU_BRIDGE_HELPER environment variable, then by search common paths
where the helper is installed.

(From OE-Core rev: 9e7b38c61c6b84b7f137c733ac5da9414025693d)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:23 +00:00
Diego Rondini
1128c128ce cups: fix crossscripts
Fix crossscripts to report the correct "serverbin" value.
While the packaged "cups-config --serverbin" reported
"/usr/libexec/cups" the crossscripts version reported
"/usr/lib/cups", causing packaging issues when building for example
cups-filters.
Also fix FILES_${PN} to use ${libexecdir}; previously it was working
just because "${libexecdir}/*" was part of the default values in
bitbake.conf.

(From OE-Core rev: 2ce6ef29b9bb4f16ed9d78e166d455b7a6d968bf)

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Khem Raj
019f8d3c00 opensbi: Use -ffreestanding compiler options
This usually helps compiler to not use built-in optimizations
for string functions and mem* functions unnecessarily, since OE's
compiler is hosted for linux cross compile, this also means we instruct
it rightly for building a baremetal application

Refresh the patches to apply without fuzz
Fixes linking errors e.g.

platform/qemu/virt/lib/libplatsbi.a(sbi_string.o): in function `sbi_memset':
| /mnt/b/yoe/build/tmp/work/riscv64-yoe-linux/opensbi/0.5-r0/git/lib/sbi/sbi_string.c:102: undefined reference to `memset'
| collect2: error: ld returned 1 exit status

(From OE-Core rev: f599b6c77f3585c8917f4d685689da4cc8a8bf04)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Khem Raj
1eecc83125 Revert "tclibc-musl: Add -D__USE_TIME_BITS64 to c/c++ flags"
This reverts commit 194bd4136459e7a38510830b2fb0938d892ece45.

 __USE_TIME_BITS64 is already added by musl headers internally now [1]

 [1] https://git.musl-libc.org/cgit/musl/commit/include/alltypes.h.in?id=f12bd8e05c8bb2c3e2b91d635887ec424ef8fbd9

(From OE-Core rev: 2bc3f51a7151880fc7e27abf1762fb43f4e8fe54)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Tanu Kaskinen
6b55149cc4 alsa-plugins: 1.1.9 -> 1.2.1
(From OE-Core rev: 6ae82bd7ed6beece2fff8d83adcd86fc91cd8915)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Tanu Kaskinen
7df152a9d0 alsa-utils: 1.1.9 -> 1.2.1
I moved the ALLOW_EMPTY line next to the line that sets FILES to "".
That makes it easier to see that the package is not only allowed to be
empty, but forced to be empty.

(From OE-Core rev: c6bb27bee2f6f3f363893e59de0373d1532519e8)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Tanu Kaskinen
6cb10d7de5 alsa-topology-conf: new recipe, version 1.2.1
The topology configuration files were moved from the alsa-lib repository
to a new alsa-topology-conf repository. The move was accompanied by
a license change from LGPL2.1 to BSD-3-Clause.

(From OE-Core rev: 4dd61230a6d2cc8183a12edc9834cb506b488e3a)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Tanu Kaskinen
0c928e9ade alsa-ucm-conf: new recipe, version 1.2.1.2
The UCM configuration files were moved from the alsa-lib repository to a
new alsa-ucm-conf repository. The move was accompanied by a license
change from LGPL2.1 to BSD-3-Clause.

(From OE-Core rev: 769354b372a4a60dfec921789d875340b0244406)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Tanu Kaskinen
6593b950bb alsa-lib: 1.1.9 -> 1.2.1.2
Changelogs:
https://alsa-project.org/wiki/Changes_v1.1.9_v1.2.1
https://alsa-project.org/wiki/Changes_v1.2.1_v1.2.1.1
https://alsa-project.org/wiki/Changes_v1.2.1.1_v1.2.1.2

This upgrade brings support for the new "UCM2" configuration format.
Another big change is that the UCM and topology configuration files were
moved to separate repositories, so those are removed from alsa-lib and
will need to be packaged separately.

The topology API was moved from libasound to a separate libatopology
library. This seems like a recipe for regressions for applications that
used to use libasound for the topology stuff, but I don't think there
are many applications in existence that use the topology API. I hope the
upstream knows what they are doing.

Patches added:

0001-configure.ac-remove-an-unnecessary-libtool-fix.patch
This fixes a failure during configure.

0001-ucm-Use-strncmp-to-avoid-access-out-of-boundary.patch
0002-ucm-return-always-at-least-NULL-if-no-list-is-availa.patch
Backports. I don't know if these are regression fixes, but since the UCM
code was heavily worked on in this upgrade, it seems likely that these
patches fix regressions.

0003-namehint-correct-the-args-check.patch
0004-namehint-improve-the-previous-patch-check-the-return.patch
Backports. A change in alsa-plugins caused a regression in the pulse
plugin, but that was actually due to a bug in alsa-lib, which is fixed
by these patches.

0005-ucm-Do-not-fail-to-parse-configs-on-cards-with-an-em.patch
Backport. Fixes a regression with some Intel hardware.

0001-Fix-alsa-sound-.h-for-external-programs.patch
0001-uapi-Move-typedefs-from-uapi-to-sound.patch
Backports. These fix build failures in alsa-tools.

I removed alsa-doc from PACKAGES, because no files were assigned to it.

(From OE-Core rev: 966890009b4dd81abb72534192c688dbd1195d00)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Alexander Kanavin
fd61f30c2a ovmf: update to 201911
Remove unused patch.

(From OE-Core rev: 159328dde56e35ba56ec0b1e3602a3b2df6ad691)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Peter Kjellerstedt
e9e708f923 populate_sdk_ext.bbclass: No longer needed to clean away conf/sanity_info
Since the sanity_info file has moved from the conf directory to the
cache directory, there is no longer any need to clean it away
explicitly in clean_esdk_builddir() since the whole cache directory is
already cleaned away anyway.

(From OE-Core rev: 40c30990e1be72130819c040fe471e2bdc0c6e7d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00
Peter Kjellerstedt
2f90c165aa sanity.bbclass: Move sanity_info from conf to cache
Since this file is written during recipe parsing, having it in the
${BUILDDIR}/conf directory, which is covered by an inotify watcher,
will trigger a re-parse the next time bitbake is run and the resident
bitbake server is enabled. This causes the sanity_info file to be
updated again, which triggers a new parse the next time bitbake is run
ad infinitum. Moving it to ${BUILDDIR}/cache should avoid this.

(From OE-Core rev: f98103b548aa7dba6b1be6c8e02ef41858a8e85c)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-10 21:18:22 +00:00