Commit Graph

58402 Commits

Author SHA1 Message Date
Anuj Mittal
b66b9f7548 linux-yocto: bump genericx86 kernel version to v5.4.40
(From meta-yocto rev: bae0a97a39dad445c9655bc61ae3b7e6a667cbba)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:29:02 +01:00
akuster
2f9cf90ac8 yocto-docs: Add SPDX headers in scripts and Makefile
[Yocto #13873]

(From yocto-docs rev: b87c540a1a6c0dce4c6010b89d9831442e0e7f70)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:29:02 +01:00
Richard Purdie
109a501faf poky.ent: Update XXX_HOST_PACKAGES_ESSENTIAL to include mesa for other distros
(From yocto-docs rev: e187f0f858bd4ed2eda10a5140cbc5ec222d7092)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:29:02 +01:00
akuster
f4856db1e3 poky.ent: Update OPENSUSE_HOST_PACKAGES_ESSENTIAL to include mesa-dri-devel
(From yocto-docs rev: 3003075b29bee696f226533e24ab7121508ca99b)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:29:02 +01:00
Paul Barker
1251765fff bitbake: fetch2: Add the ability to list expanded URL data
Some fetchers may download additional sources along with those
explicitly listed in SRC_URI. These "implicit URLs" will be needed by
the archiver to ensure that all sources can be archived.

We can't just return a list of URL strings since each URL may need its
own SRCREV data so we return a list of FetchData objects.

Each fetcher can override the implicit_urldata() function to provide the
additional FetchData objects. For now this is just needed in the gitsm
fetcher to walk git submodules recursively.

(Bitbake rev: 1350f241b7d991bd191ce9e44f6662e4376c6e24)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:28:16 +01:00
Mauro Queirós
d648096794 bitbake: git.py: Use the correct branch to check if the repository has LFS objects.
Function "contains_lfs" was only looking at the master branch when searching for LFS
content. LFS may be configured in specific branches only, so we need to use the
correct branch.

(Bitbake rev: 4fa67c2af830035a1ddedc14592ee25a15ebff22)

Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:28:16 +01:00
Mauro Queirós
3f8b8f8bca bitbake: git.py: LFS bitbake note should not be printed if need_lfs is not set.
The message "Repository %s has LFS content but it is not being fetched" was
being printed, even when Git-LFS was available and "lfs=1" was set. In those
situations, we want to fetch LFS content, so that message would not make sense.

(Bitbake rev: 45028dfda5a29a34ab408cb3f11d72ae17963340)

Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:28:16 +01:00
Mauro Queirós
8051b79733 bitbake: git.py: skip smudging if lfs=0 is set
Git-LFS objects were being fetched even when lfs=0 was not set.
This patch disables LFS smudging when lfs=0. That way, only the LFS pointers
are downloaded during checkout.

(Bitbake rev: 646d86df7de774255246a3d7051c308e43eb257d)

Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:28:16 +01:00
Paul Barker
9800884deb oe-selftest: Recursively patch test case paths
This ensures that builddir is updated correctly to point to the new
selftest build directory when we're given a list of test suites instead
of a list of test cases.

(From OE-Core rev: 56e211d0f3c6cb84f5982e5de00faeeed69c1912)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Paul Barker
18a69b1cd2 oe-selftest: Support verbose log output
(From OE-Core rev: 6a607da9a6aa05f86b0e77cccd066b9f286cfada)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Paul Barker
05882158de oe-selftest: Allow overriding the build directory used for tests
This may be useful if the parent directory of the original builddir is
not writable, on a lower performance drive, etc.

(From OE-Core rev: dab719e5f1964fd48e9a35e6b9db1508b5414540)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Paul Barker
822f6b6143 archiver: Fix test case for srpm archiver mode
We can't assume that rpm packaging will always be enabled when running
oe-selftest. In particular when using nodistro instead of poky this is
not enabled by default.

(From OE-Core rev: 23df3024664ec56dbbe8865ef3953d2c33a7a2cb)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Ming Liu
e52d60d9d4 u-boot: introduce UBOOT_INITIAL_ENV
It defaults to ${PN}-initial-env, no functional changes with current
implementation, but this allows it to be changed in individual u-boot
recipes.

If UBOOT_INITIAL_ENV is empty, then no initial env would be compiled/
installed/deployed, set ALLOW_EMPTY_${PN}-env = "1".

The major purpose for introducing this, is that the users might have
some scripts on targets like:
```
/sbin/fw_setenv -f /etc/u-boot-initial-env
```

and it should be able to run against a identical path generated by
different u-boot recipes.

(From OE-Core rev: fb7e8b6b88855f3f523b2176ea2c85a330bfe00b)

Signed-off-by: Ming Liu <ming.liu@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Ming Liu
43dbbb8712 u-boot.inc: fix some inconsistent coding style
(From OE-Core rev: 5ffefba5f1a7a37f4752e34be86f1dc2942192d0)

Signed-off-by: Ming Liu <ming.liu@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Junling Zheng
171a8360f5 security_flags: Remove stack protector flag from LDFLAGS
SECURITY_LDFLAGS contains stack protector flag inappropriately, which
has already be contained in SECURITY_CFLAGS. Let's remove it from
SECURITY_LDFLAGS.

(From OE-Core rev: 549cce578b859986e37900bf15c1bf904d33e47b)

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Richard Purdie
07223656d2 patchelf: Add patch to address corrupt shared library issue
patchelf can corrupt shared libraries if the program headers don't
immediately follow the elf header. Add a patch submitted upstream
to address this.

(From OE-Core rev: e7811c787bbe2f5d49b3506309499acc27189988)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
5cbf053481 dbus-test: upgrade 1.12.16 -> 1.12.18
(From OE-Core rev: 839695e0c1b0c0fcfbb924c2b174c4a638067a32)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
82b89e732c valgrind: upgrade 3.15.0 -> 3.16.0
0001-gcc10-arm64-build-needs-__getauxval-for-linking-with.patch
0001-tests-Make-pthread_detatch-call-portable-across-plat.patch
0004-pth_atfork1.c-Define-error-API-for-musl.patch
removed since they are included in 3.16.0

refresh 0004-Fix-out-of-tree-builds.patch

-License-Update:
before:
   You should have received a copy of the GNU General Public
   License along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
   02111-1307, USA.
after:
   You should have received a copy of the GNU General Public License
   along with this program; if not, see <http://www.gnu.org/licenses/>.

(From OE-Core rev: a627a350cf3db99a63d6be2701957e3de0654370)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
c15d342e45 sqlite: upgrade 3.31.1 -> 3.32.1
CVE-2020-11655.patch
CVE-2020-11656.patch
CVE-2020-9327.patch
removed since they are included in 3.32.1

(From OE-Core rev: 7ee8501146ceccdbd07104903694a435b75c0606)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
6ce944904f libyaml: upgrade 0.2.4 -> 0.2.5
(From OE-Core rev: b574c04a26ab49ee0588e37606dd100a939a90a9)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
a62471f064 dbus: upgrade 1.12.16 -> 1.12.18
(From OE-Core rev: 8d33a2a4e4b6ff8f831523e5b1b16ead6b29cc79)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Wang Mingyu
00a50debbb ca-certificates: upgrade 20190110 -> 20200601
-License-Update: format changed

(From OE-Core rev: 0007f38b03bcb0bd561bd9181fbffc7dec47fe9a)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Lee Chee Yang
1f142dbaf6 glib-networking: 2.64.2 -> 2.64.3
update to 2.64.3 which include fix for CVE-2020-13645, see:
https://gitlab.gnome.org/GNOME/glib-networking/-/issues/135

(From OE-Core rev: 752310aaee91f017907bb4a7c0f4eaa1f41fda6e)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Jens Rehsack
ccbeea1c0b init-system-helpers: avoid superfluous update-rc.d
Debians init-system-helpers bundle an own, perl written update-rc.d which
doesn't fulfill embedded/cross-build requirements as our own in
    meta/recipes-core/update-rc.d
does. To avoid unnecessary conflicts or questions, do not bundle it by
default. Whoever wants it is invited to have an .bbappend.

(From OE-Core rev: 4e5a55c7ecf7100bb87dcad31723ee27b7006ac2)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Jens Rehsack
850abc548b initscripts/init-system-helpers: fix mountnfs.sh dependency
With commit c9fc9110be
    Author: Yue Tao <Yue.Tao@windriver.com>
    Date:   Fri May 25 10:48:08 2018 +0800

	initscripts: Avoid starting rpcbind daemon twice

	Check the status before start it to avoid duplicates.

the use of a script {/usr/sbin/}service is introduced - maybe earlier
provided by systemd, nowadays mostly by init-system-helpers from
debian project.

For the very first shot, maybe discussions and improvements based
on that script collection, use just the init-system-helpers-service
in initscripts/mountnfs.sh to avoid problems mounting NFS in later
boot stage.

(From OE-Core rev: db690c3bf4664ce71fc21650fbcd8b6ac2eb71f1)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Lee Chee Yang
e0b8083761 glib-2.0: 2.64.2 -> 2.64.3
remove patch which already upstream
3c5512222c

(From OE-Core rev: 265a19308ad7dad1970c2d439103b7b485c4fbfc)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Alex Kiernan
a5bb13b43f systemd: upgrade v245.5 -> v245.6
Commits:

  aa0cb635f1f6 network: L2TP fix crash
  9774347b5775 Fix typo.
  2cac801f0f37 stat-util: trivial empty_or_null() tweaks
  b054e69bf98e Check ambient set against bounding set prior to applying ambient set
  bed695375abc udev: when the BSD lock on a block device is taken, don't complain
  66fcfdfde7d9 core: add forgotten return in error path
  05dd19fad320 shared/efi-loader: remove check that uses absolute tick value
  753a71ad1d0e gpt: include homed GPT partition type in well-known partition table
  366872204933 units: don't set PrivateNetwork= in systemd-homed.service
  2bca2d77d37d resolved-dns-query: remove dns_query_candidate_is_routable
  a3f60204325a sd-network: fix inverted error message
  a7a9fe3c930d network: allow empty assignment to PreferredLifetime=
  8df6fc1241d1 Update resolvectl zsh completion
  c1a83277d086 shared: treat generator units as vendor units
  1f382d818dd0 tree-wide: fix bad errno checks
  667c2076838f bus-message: immediately reject messages with invalid type
  116a8eadb6ad bus-message: fix negative offset with ~empty message
  4d5779d886d0 load-fragment: fix a typo
  c8b6de003a07 NEWS: retroactively document Family=
  cf6b8e6ec524 man: fix dir name in sysctl.d(5)
  6d009b7a25b1 journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable
  cf786ef1643e makefs: log about OOM condition
  0b1839822f9e blockdev: propagate one more unexpected error
  d78ce949d001 repart: don't insist on coming up on partition label ourselves
  9e1363fcc65f journal: fix dropping first record during upload to remote journal
  50cb4e418dab meson: initialize time-epoch to reproducible builds compatible value
  76abe079b79a limit-util: quieten a very common debug message that is misleading
  b3e484a3b133 shared: fix integer overflow in calendarspec
  0c29eea9691d repart: suppress complaints about lack of BLKRRPART when operating on regular file
  3db52f5ed840 repart: explain when we exit early and don't do a thing
  d99cba3aaa8c mount: introduce mount_is_nofail() helper
  7bc4bcea15aa mount: default startup dependencies and default network ones are orthogonal
  7fe617fa5381 mount: introduce mount_add_default_ordering_dependencies()
  e1c091b6d4c5 automount: fix handling of default dependencies for automount units
  ae05a137c9d4 mount: let pid1 alone handle the default dependencies for mount units
  f1fb1971767d mount: mount unit activated by automount unit should be only ordered against the automount unit
  c9bcc69703c1 generator: don't generate device dependencies for extrinsic mounts
  ebac09ea0a4e fstab-util: introduce fstab_is_extrinsic()
  a20e4ea0ed98 device: drop refuse_after
  2799fffac1eb man: drop some left-over mentions of StandardOutput=syslog
  144aff9c3beb sd-netlink: remove unused RTNL_WQUEUE_MAX define
  34ca8df8e131 test: Add return 0 to main() function (even it is not strictly necessary)
  6e03f328a939 network: 'cur' variable cannot be null, so simplify code
  8d0c97f6ca3c tree-wide: Initialize _cleanup_ variables if needed
  4f174e49aef8 netlink: Fix assert condition on n_containers
  3905ce532c86 journald: Increase stdout buffer size sooner, when almost full
  5a37eb7c6155 core: don't bind varlink socket if running in test mode
  33fff72ce665 pam_systemd: also print debug lines when ending a session
  ba9af79ccbab pam_systemd_home: use correct macro for converting ptr to fd
  619923548961 Fix misuse of PAM_PROMPT_ECHO_OFF in systemd-homed
  c180a2c4520e shared/ethtool-util: hush gcc warnings about array bounds
  1addba4aac47 core: fix compilation with gcc -O3
  9c46b97161c7 random-util: use ERRNO_IS_NOT_SUPPORTED() macro
  d85f9093d2f5 tmpfiles: clarify that "!" lines are filtered before collisions are checked
  2fac966a5ca3 man: mention the exclamation mark and minus sign literally, to make things searchable
  4f61be3373e3 man: clarify that exit status name mappings are unaffected by SuccessExitStatus=
  b747d74a4102 seccomp-util: add new syscalls from kernel 5.6 to syscall filter table
  c30d8caf8b3d tree-wide: Replace assert() by assert_se() when there is side effect
  b6e8e3be7e48 networkctl: use uint64_t for link speed throughout
  be66ce60891d tree-wide: use CMSG_SPACE() (and not CMSG_LEN()) to allocate control buffers
  1cb197798a40 man: suffix pam options with "=" where arg is required too
  a5fe01d3da4c test: Use assert_se() where variables are only checked by assert
  6960efd19892 tree-wide: Fix, replace assert() by assert_se() when there is side effect
  93c1b0307496 tree-wide: Mark as _unused_ variables that are only used in assert()
  c7679d7a9f01 tree-wide: Workaround -Wnonnull GCC bug
  073b257fd760 man: bring example PAM snippet of pam_systemd and pam_systemd_home back in sync
  855291a81ca6 man: highlight relevant lines in pam_systemd_home.so example PAM snippet
  f89ad7c0fdd9 login: include pam_systemd_home.so in the default PAM snippet we ship for user@.service
  9357f9466f80 test: Skip test-boot-timestamps on permission denied
  cad4ebe14e9e sysusers: be extra careful when locking accounts
  551e6f233a52 shared/install: print name of offending file in error
  c6a2e5123206 systemctl: fix --root support in querying presets
  6f1eedbfdda5 systemctl: fix hint when 'systemctl help' is given
  925521df7c86 shared/unit-file: fix resolution of absoulute symlinks with --root
  756ba362e873 man: mention that ProtectSystem= also takes care of /efi
  4f77cf43b5de man: systemd.service: systemd-analyze exit-codes -> exit-status
  7c6ea7a0534c man: expand on the star…end/repetition time expressions
  e06b9407928c calendarspec: be more graceful with two kinds of calendar expressions
  f3dd0b476d9d calendarspec: minor simplification
  3581c16d5681 shutdown: fix spacing in shutdown error message
  9556255349ff nspawn: mount custom paths before writing to /etc
  37447b7e78ad repart: fix partition maximum size segfault
  7f231ba503e7 link: Add units and fix typo in (Rx|Tx)BufferSize= manpage. Clean up the implementation slightly
  e75d2cdb0b22 main: bump RLIMIT_MEMLOCK by physical RAM size
  e16b9a1e31bf nspawn: be more careful with creating/chowning directories to overmount
  765d184a6976 homectl: say "home area" in more places
  c11bff4fa72b userdbctl: make --help fit in 80 columns
  0e56c2ef3fe3 shell-completion/zsh: update systemd-analyze completions
  2bb580f9942d zsh: fix disable/enable completion
  607a19a30936 cgroup-util: check for SYSFS_MAGIC when detecting cgroup format
  ddb3c38efce1 stat-util: no need to open a file to check fs type
  bd8842304c87 sysusers,tmpfiles: always mention error when failing to replace specifiers
  bdea9b65d21a sysusers: add accidentally forgotten 'return'
  17b059774dd4 man: document binfmt's new --unregister switch
  560380d8ec94 binfmt: also unregister binfmt entries from unit
  80835d9c51bd binfmt: modernize code a bit
  a1745741b82f shutdown: unregister all binfmt_misc entries before entering shutdown loop
  b637445950c8 shared: add common helper for unregistering all binfmt entries
  0215625e9927 home: fix strv NUL termination
  038988baa14e networkd: don't do lldp rx nor tx on bond devices
  9512d576d9f3 sd-bus: Fix typo in sd_bus_message_append_array docs
  63cef71dd068 shared: add NULL callback check in one more place
  6b91ca22a2e5 core: fix unused variable warning when !HAVE_SECCOMP
  f7c1c79c576d udev: prepare memory for extra NUL termination for NULSTR
  69e0ef0d99ec tree-wide: use recvmsg_safe() at various places
  cd0a84d4e956 socket-util: add recvmsg_safe() wrapper that handles MSG_CTRUNC
  2bb48c704b8d sd-bus: work around ubsan warning
  c147bba1fb4a shared: Don't try calling NULL callback in bus_wait_for_units_clear
  f907491463ac run: don't wait for start job to complete when running interactively anyway
  d3d1550a5d98 man: Fix typo "multiplied with" -> "multiplied by"
  ae5a9f27c5e5 core: make sure we don't get confused when setting TERM for a tty fd
  a07d3eaf7657 man: document that VirtualEthernetExtra= has nothing to do with Bridge=
  35fe81078eb1 core: add debug log when a job in the activation queue is not runnable
  a0cd882be891 core: add log_get_max_level check optimization in log_unit_full
  2a6ad1093c3c util: return the correct correct wd from inotify helpers
  9ec244c5c121 core: minor error code handling fixes
  a799283c91f6 man: document how to get the boot menu with zero time-out
  7263e86c8dd8 resolved: return org.freedesktop.resolve1.DnsError.NXDOMAIN on LLMNR resolution failure
  6eab4c2b3ece man: use manpages.ubuntu.com for resolvconf(8) link
  75ccec5cde54 man: add a note that resolvconf updates /etc/resolv.conf in specific circumstances
  3e3a31743a45 resolvectl: fix indentation of hexdump'ed packets
  6576058fab75 journald: add configuration option for enabling/disabling audit during journald startup
  52c5909f15ff man/systemd-service: clarify env variable expansion
  ac08df59c0db resolved: fix typo in an unused function and add comment

(From OE-Core rev: 2ffe399df1670cc8e41cc5e0e854dadd5766a800)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Christian Eggers
d3984cd771 tiff: Extend for nativesdk
Doxygen in meta-oe has recently been extended for nativesdk. Doxygen is
often used together with mscgen which in turn depends indirectly on
tiff (via gd library).

(From OE-Core rev: 929cf038ec0f49e86d9ab0ec7e012320598ceb81)

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Christian Eggers
8d0df773bb librsvg: Extend for nativesdk
Doxygen in meta-oe has recently been extended for nativesdk. Doxygen is
often used together with dot (graphviz) which in turn depends on
librsvg.

(From OE-Core rev: cccc14d5fe334b6995c54a80a1b65fce357e4582)

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Joshua Watt
ba9be4bfa5 wic: Add --offset argument for partitions
Add support for an --offset argument when defining a partition. Many
SoCs require that boot partitions be located at specific offsets. Prior
to this argument, most WKS files were using the --align attribute to
specify the location of these fixed partitions but this is not ideal
because in the event that the partition couldn't be placed in the
specified location, wic would move it to the next sector with that
alignment, often preventing the device from booting. Unlike the --align
argument, wic will fail if a partition cannot be placed at the exact
offset specified with --offset.

Changes in V2:
* Fixed a small typo that prevented test_fixed_size_error from passing

(From OE-Core rev: 467f84e12b96bc977d57575023517dd6f8ef7f29)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Pierre-Jean Texier
6b4299df5d diffoscope: upgrade 144 -> 146
See full changelog https://diffoscope.org/news/diffoscope-146-released/

(From OE-Core rev: 942a02154c6b20a5cce583607b6f36bb7657ef0d)

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Hongxu Jia
7adde4fa40 rpm: fix rpm -Kv xxx.rpm failed if signature header is larger than 64KB
Since commits [Place file signatures into the signature header where they
belong][1] applied, run `rpm -Kv **.rpm' failed if signature header
is larger than 64KB. Here are steps:

1) A unsigned rpm package, the size is 227560 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 227560 Jun  3 09:59

2) Sign the rpm package
$ rpmsign --addsign ... xz-src-5.2.5-r0.corei7_64.rpm

3) The size of signed rpm is 312208 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 312208 Jun  3 09:48

4) Run `rpm -Kv' failed with signature hdr data out of range
$ rpm -Kv xz-src-5.2.5-r0.corei7_64.rpm
xz-src-5.2.5-r0.corei7_64.rpm:
error: xz-src-5.2.5-r0.corei7_64.rpm: signature hdr data: BAD, no. of
bytes(88864) out of range

>From 1) and 3), the size of signed rpm package increased
312208 - 227560 = 84648, so the check of dl_max (64KB,65536)
is not enough.

As [1] said:

    This also means the signature header can be MUCH bigger than ever
    before,so bump up the limit (to 64MB, arbitrary something for now)

So [1] missed to multiply by 1024.

[1] f558e88605

(From OE-Core rev: 8359bdd60afafd80d354f7f40ed648643d8db292)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Jan Luebbe
e4faf3b3d0 classes/buildhistory: capture package config
As the PACKAGECONFIG variable has a large influence on the resulting
package sizes and dependencies, it's useful to capture it in the
recipe-level buildhistory. This makes it straightforward to analyze the
impact of PACKAGECONFIG changes on the resulting image size.

(From OE-Core rev: 189fae9f2df58759e9d66a3877c9ef30df4854bf)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Junling Zheng
373c2637c3 buildstats.bbclass: Do not recalculate build start time
The build start time is recorded in __timedata_build, which we should
use rather than recalculating it.

(From OE-Core rev: b723e9a4de67f33f61f2e7fe36ea451a46840b3e)

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Junling Zheng
388250a48f buildstats.bbclass: Remove useless variables
Remove useless variables bn and bsdir in write_task_data().

(From OE-Core rev: de26d6ce9d2154b5bb51491d9f4bd590cb5a0fc7)

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:32 +01:00
Konrad Weihmann
bd0a9ea61b cogl: point to correct HOMEPAGE
As the previousy set wasn't reachable anymore

(From OE-Core rev: 3ae0aa1df25c8c7511950c6fc965955bdb205cd2)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
c6eda7a98f libxt: fix whitespaces
remove unnecessary whitespace and line breaks

(From OE-Core rev: dd41594cb8340fb1f4df5822f42c4742d720805b)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
9f36414d22 gtk-doc: remove trailing whitespace
remove unnecessary trailing whitespace

(From OE-Core rev: 237e03e7a62c713f9eee9e853b0b452a3260b512)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
5e0783d1f2 cairo: remove trailing whitespace
Remove trailing whitespaces after line continuation

(From OE-Core rev: b44a30b7443f271771665c9282ec4cd14e57678b)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
2f1680f706 libjpeg-turbo: whitespace fixes
Added the proper amount of blanks around equation-signs

(From OE-Core rev: 3ab229aafc62e039662adc1c89637ba9c5d4016c)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
473f8839e6 debianutils: whitespace fixes
Added whitespaces around equation-signs

(From OE-Core rev: db9275d565bf1daa01825239909620751a6f0967)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Andreas Müller
57b49ced17 vte: Pack ${libexecdir}/vte-urlencode-cwd to vte-prompt
Have vte-prompt in my images. Since upgrade 0.60.2 all terminals complain with:

| bash: /usr/libexec/vte-urlencode-cwd: No such file or directory

Grepping sources shows that vte.csh and vte.sh are the only callers of
vte-urlencode-cwd. Both are installed by vte-prompt so move vte-urlencode-cwd
where it's used.

(From OE-Core rev: 1ea62721b1c06a77b18cf210ee437c292f58104b)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Ralph Siemsen
9fef505804 cve-check: include epoch in product version output
In the generated cve.log files, include the epoch in the product
version. This better matches how versions are displayed elsewhere,
in particular the bb.warn("Found unpatched CVE...") that appears
on the terminal when CVEs are found.

(From OE-Core rev: e1c3c0b6e5b01304e2127f5058986697e82adf93)

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Richard Purdie
098d1a65e0 oeqa/targetcontrol: Rework exception handling to avoid warnings
We're seeing:

WARNING: bitbake/lib/bb/cookerdata.py:136: ResourceWarning: unclosed file <_io.FileIO
name='tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/qemurunner_log.20200601181912'
mode='ab' closefd=True

which can only be caused by the qemu.stop() method not being called.
Tweak the error handling to fix the blanket exception handler which
is likely meaning this function isn't getting called.

(From OE-Core rev: ee707090848d793e3b2d82dd3861ae22222682c0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Peter Kjellerstedt
e075a77c14 cairo: Do not try to remove nonexistent directories
Commit 0e1f8fa0 (bitbake.conf: propagate 'opengl' DISTRO_FEATURE to
native/nativesdk from target) changed the default PACKAGECONFIG for
native and nativesdk so that it becomes empty unless "x11" is in
DISTRO_FEATURES since "trace" was also removed (propbably
unintentionally). This highlighted than an empty PACKAGECONFIG would
lead to a build failure since /usr/bin is never created under these
conditions, but the recipe still tried to remove it.

(From OE-Core rev: 9bb2268677ac8f0c97433bf1f04555abe88028a9)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Richard Purdie
251aa56136 logrotate: Drop obsolete setting/comment
The comment applies to an old version and the WORKDIR setting matches
the default so drop it.

(From OE-Core rev: 7cc4c0e7665111616c7e8a1dc512b8d9022ca664)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Richard Purdie
ee2e42f871 maintainers: Update Ross' email address
Update Ross' address to a valid one.

(From OE-Core rev: 22e1605ce45482c49d06a7c56a46b71f76955e31)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Alexander Kanavin
e98ee51078 lz4: disable static library
It was found to be built in a non-reproducible way.

[YOCTO #13925]

(From OE-Core rev: f8f3f03e7ffcefdb6a97b747a26276dec4bfa77c)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Konrad Weihmann
ace48c7ad6 sysfsutils: rem leftover settings for libsysfs-dev
22af6a2595 removed the PACKAGES
setting, but left the FILES-assignments of libsysfs-dev and -staticdev.
As these have no use anymore they can be safely removed

(From OE-Core rev: 941cc0cd0a69e95ca571a9a8cb0732bb06fa2b3a)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00
Alexander Kanavin
cc87ddc0b8 xinetd: switch to a maintained opensuse fork
Updating to the latest release will be done later.

(From OE-Core rev: 1e34883cf5ccfbde498c1b2b5afc1e26c35b1d3a)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04 13:27:31 +01:00