rpm: produce sane amount of logging when creating a rootfs
Previously there was lots of irrelevant noise in the logs,
because we also wanted to be able to debug postinst issues
easily. I have adjusted the logging levels so that
postinst info is still written to the logs, but other
things are not.
[YOCTO #13119]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Robert Yang [Tue, 18 Dec 2018 02:21:36 +0000 (10:21 +0800)]
cmake.bbclass: Make it work with ccache
This can make the following recipes work with cmake:
cmake libdnf libcomps librepo createrepo-c llvm dnf libsolv assimp waffle
libjpeg-turbo taglib libproxy libical
And the following 3 recipes don't:
webkitgtk vulkan piglit
Now cmake.bbclass doesn't disble ccache any more, disable it in the recipes if
needed.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Robert Yang [Fri, 14 Dec 2018 09:50:20 +0000 (17:50 +0800)]
bitbake.conf: Enable -fdebug-prefix-map for nativesdk
Files like lib/.debug/libgcc_s.so.1 from nativesdk-libgcc-dbg contains
buildpath without -fdebug-prefix-map, the root cause is object files (.o)
contain buildpath, and then ccache can't use them correctly.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Robert Yang [Mon, 17 Dec 2018 06:30:27 +0000 (14:30 +0800)]
ccache.bbclass: Set CCACHE_CONFIGPATH to fix race issues
Fixed race issues when parallel build:
ccache: error: /path/to/ccache/i586-poky-linux/mmc-utils/ccache.conf: No such file or directory
ccache: error: /path/to/ccache/i586-poky-linux/mmc-utils/ccache.conf: No such file or directory
This is because we set CCACHE_DIR for earch recipe, and ccache will create a
ccache.conf for each CCACHE_DIR when CCACHE_CONFIGPATH is not set, but there
might be a race issue in parallel build:
ccache gcc file1.c
ccache gcc file2.c
If the two ccache processes use fopen(path, "w") to create ccache.conf at the
same time, the error would happen. Set CCACHE_CONFIGPATH to
meta/conf/ccache.conf can fix the problem, and we can add other configs to the
file when needed.
And also set cache_dir_levels to 1 (default is 2) since each recipe has a cache
dir, thus we don't have too many files in one dir.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Robert Yang [Fri, 7 Dec 2018 02:55:29 +0000 (18:55 -0800)]
ccache.bbclass: Refactor it to make it more reliable
The previous ccache.bbclass has the following problems:
- It uses host's ccache for native recipes, but this may not work on some
hosts, for example, it nerver works on my Ubuntu 14.04.4, there are always
build failures (m4-native failed at do_configure, and others will also be
failed if I disable CCACHE for m4-native)
- native/nativesdk/cross/crosssdk recipes use host's ccache, but target uses
ccache-native, this may confuse user.
- The target recipes may use both host's ccache and ccache-native, this may
cause unexpected problems and be hard to debug. This is because ccache-native is
in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS, so ccache-native may not be present when
rebuild target recipes, and then it would use hosttools/ccache, but the
previous ccache files were generated by ccache-native.
- Target recipes can't use ccache when no ccache is installed on the host:
CCACHE = "${@bb.utils.which(d.getVar('PATH'), 'ccache') and 'ccache '}"
After refactored:
All types recipes (native, target and others) will use ccache-native except
ccache-native itself, host's cache won't be used any more. It is more
reliable now, which will work everywhere when ccache-native can be built.
And now we need use "CCACHE_DISABLE = '1'" to disable ccache for the recipe
rather than "CCACHE = ''" since we set CCACHE in anonymous function, and
d.getVar('CCACHE') works after "CCACHE ??=" which is set in bitbake.conf, so we
can't check whether CCACHE is set or not in anonymous function since it is
always set. Use CCACHE_DISABLE to disable it would be more clear.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Robert Yang [Wed, 12 Dec 2018 02:31:34 +0000 (10:31 +0800)]
ccache-native: Remove dependencies
Remove ccache-native's dependencies so that all native recipes can depend on
ccache-native and use it except ccache-native itself.
It has the following 4 dependencies:
- xz-native: It is intruduced by ccache-3.4.2.tar.xz, use ccache-3.4.2.tar.gz
to replace of it can fix the problem.
- zlib-native: Use --with-bundled-zlib to fix it.
- autotools-native: Set INHIBIT_AUTOTOOLS_DEPS and add a do_configure() to fix
the problem.
- quilt-native: Set PATCHTOOL = "patch" to fix it.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Mingli Yu [Tue, 18 Dec 2018 05:21:00 +0000 (21:21 -0800)]
nfs-utils: fix build error under tests folder
* Redefine the reference path of libnfs.a to
../support/nfs/.libs/libnfs.a to fix below
error when run "make -C tests statdb_dump".
| make: *** No rule to make target '../support/nfs/libnfs.a', needed by 'statdb_dump'. Stop.
| make: *** No rule to make target '../../support/nfs/libnfs.a', needed by 'nsm_client'. Stop.
* The function generic_make_pathname is introduced in
nfs-utils 2.3.1.
Add the source file which defines function generic_make_pathname to
libnsm_a_SOURCES of libnsm.a to fix the undefined reference
when run "make -C tests statdb_dump"
| ../support/nsm/libnsm.a(file.o): In function `nsm_make_pathname':
| /usr/src/debug/nfs-utils/2.3.1-r0/nfs-utils-2.3.1/support/nsm/file.c:175: undefined reference to `generic_make_pathname'
| /usr/src/debug/nfs-utils/2.3.1-r0/nfs-utils-2.3.1/support/nsm/file.c:175: undefined reference to `generic_make_pathname'
| /usr/src/debug/nfs-utils/2.3.1-r0/nfs-utils-2.3.1/support/nsm/file.c:175: undefined reference to `generic_make_pathname'
| ../support/nsm/libnsm.a(file.o): In function `nsm_setup_pathnames':
| /usr/src/debug/nfs-utils/2.3.1-r0/nfs-utils-2.3.1/support/nsm/file.c:280: undefined reference to `generic_setup_basedir'
| collect2: error: ld returned 1 exit status
* After the logic of commit[dbb643e Removed missing-prototypes warnings.]
introduced, there comes below error when run
"make -C tests/nsm_client nsm_client"
| nlm_sm_inter_svc.c:20:1: error: no previous prototype for 'nlm_sm_prog_3' [-Werror=missing-prototypes]
It is because rpcgen doesn't generate -Wmissing-prototypes
free code for nlm_sm_inter_svc.c with below logic
in tests/nsm_client/Makefile.am
[snip]
GENFILES_SVC = nlm_sm_inter_svc.c
[snip]
$(GENFILES_SVC): %_svc.c: %.x $(RPCGEN)
test -f $@ && rm -rf $@ || true
$(RPCGEN) -m -o $@ $<
So add the patch to not fatalize -Wmissing-prototypes.
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This is because /tmp/oe-saved-tests was created by user A, while user B tries
to write data in it, then the error will happen. This patch can fix the
problem.
Move the dumped data to ${LOG_DIR}/runtime-hostdump/ rather than
/tmp/oe-saved-tests/ to fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Currently SDKIMAGE_LINGUAS is broken for any inputs except "all".
In the non-"all" case, each enabled language package is installed via
pm.install("nativesdk-glibc-binary-localedata-%s.utf-8" % lang)
This will throw a python exception since pm.install() expects a list of
strings and not a string.
Fix the problem by constructing a list.
That way it is now also possible to call the package installer just
once.
Cc: "Burton, Ross" <ross.burton@intel.com> Fixes: 67615e01751b ("rootfs_rpm.bbclass: migrate image creation to dnf") Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Ross Burton <ross.burton@intel.com>
Joshua Watt [Wed, 9 Jan 2019 15:28:20 +0000 (09:28 -0600)]
nativesdk-icecc-toolchain: Use TARGET_PREFIX in post-relocate
The icecc setup for the SDK was broken in multilib configurations now
that each multilib environment runs the post-relocate scripts
separately. Including $TARGET_PREFIX in the icecc shim path and in the
toolchain environment name prevents the various multilib setups from
conflicting.
[YOCTO #13128]
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Joshua Watt [Wed, 9 Jan 2019 15:28:18 +0000 (09:28 -0600)]
classes/icecc: Check blacklist for BPN
If a given PN is listed in the icecream blacklist, there is a very good
chance that the native, nativesdk, and multilib variants should also be
skipped. Check the blacklist entries against BPN to cover them.
[YOCTO #13128]
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Khem Raj [Wed, 2 Jan 2019 19:21:11 +0000 (11:21 -0800)]
busybox: Enable mountpoint and setsid applets
This is needed by some init system services and if
init system is not sysvinit then we dont have it, therefore
its useful to have it provided via busybox as a backup
Enable CONFIG_SETSID to get setsid, needed by runit
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Robert Yang [Fri, 14 Dec 2018 06:55:49 +0000 (14:55 +0800)]
package.bbclass: Do not hide cpio's error
We use subprocess.check_output() to run the command, which means that we need care
about the error, so the 2>/dev/null should not be used, otherwise it is hard to
debug when the error happens.
I guess it was copied from previous lines, but that command's error can be
ignored (excpet: pass):
try:
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
# Can "fail" if internal headers/transient sources are attempted
pass
But we don't do this in the current location, so remove "2>/dev/null"
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Hongxu Jia [Fri, 14 Dec 2018 07:29:56 +0000 (15:29 +0800)]
mdadm: fix gcc-8 format-truncation warning
While compiling with `-Werror=format-truncation=', it failed
[snip]
|super0.c:236:32: error: 'snprintf' output may be truncated
before the last format character [-Werror=format-truncation=]
| snprintf(nb, sizeof(nb), "%4d", d);
| ^
|super0.c:236:3: note: 'snprintf' output between 5 and 12 bytes
into a destination of size 11
| snprintf(nb, sizeof(nb), "%4d", d);
[snip]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Kai Kang [Thu, 6 Dec 2018 13:41:39 +0000 (21:41 +0800)]
distro_features_check.bbclass: show all error info at one time
In distro_features_check.bbclass it checks whether items in
REQUIRED_DISTRO_FEATURES and CONFLICT_DISTRO_FEATURES exist in
DISTRO_FEATURES. But it only shows one required or conflict distro
feature when error occurs. Update to show them all at one time.
Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Jacob Kroon [Tue, 8 Jan 2019 22:13:01 +0000 (23:13 +0100)]
package.bbclass: Sort FILES_INFO by key
Observing depsig.do_package for a package inbetween rebuilds indicated
that FILES_INFO was changing content order randomly. Force it to be
deterministic by sorting with respect to the keys when serializing.
Suggested-by: Joshua Watt <jpewhacker@gmail.com> Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes: adjust perl-related classes to the new recipes
This mostly means tweaking the paths to match upstream defaults.
get_perl_arch() functions are taken from the patch by Jens Rehsack:
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276546.html
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
perl: add a version that builds the recipe using perl-cross, and update to 5.28.1
perl-cross is a build system overlay from buildroot project that aims to bring
a bit of sanity to cross-building perl. The advantage of using that is that we
can drop a lot of custom patches (that no one really understands), and simplify
the perl recipe as well. Also the build time goes down from several minutes to
about 30 seconds. The whole thing becomes maintainable again, in my opinion.
When rewriting the recipe I had two goals in mind:
1. Stay with upstream defaults as much as possible
2. Add custom patches only when their necessity was proven through testing.
http://arsv.github.io/perl-cross/
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
This was change to git recently to obtain openssl 1.1 compatible pre-release code
(before 7.9 was out), however tarballs are preferred, and with them upstream version
checks work (openssh uses a weird git tag scheme).
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Various versions of ld have different defaults for this
(even between e.g. Ubuntu 16.04 and 18.04). This has the
consequence of putting either RPATH or RUNPATH into the binary,
depending on the linker, which have different priorities
vs LD_LIBRARY_PATH env var. Also, I think, the original
executable binary is looked up for the tags when resolving
a dependency of a shared library when using RPATH, but not
RUNPATH.
Let's make this deterministic.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Douglas Royds [Thu, 20 Dec 2018 23:10:22 +0000 (12:10 +1300)]
patch: reproducibility: Fix host umask leakage
Some patch files create entirely new files, so their permissions are subject to
the host umask. If such a file is later installed into a package with no change
in permissions, it breaks the reproducibility of the package.
This was observed on libpam, for instance: The patch file
pam-security-abstract-securetty-handling.patch creates a new file
(tty_secure.c). This file is later copied into the -dbg package with no change
in permissions.
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Anuj Mittal [Thu, 20 Dec 2018 08:43:32 +0000 (16:43 +0800)]
libsolv: upgrade 0.7.1 -> 0.7.2
>From NEWS:
- bug fixes:
* do not autouninstall packages because of forcebest updates
- new features:
* support rpm's new '^' version separator
* support set/get_considered_list in bindings
* new experimental SOLVER_FLAG_ONLY_NAMESPACE_RECOMMENDED flag
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Chen Qi [Tue, 8 Jan 2019 09:12:52 +0000 (17:12 +0800)]
netbase/base-files: move /etc/hosts from netbase to base-files
Move /etc/hosts to base-files, and also add entry to it according
to hostname setting. This fixes the problem of commands like
`hostname -f' failing due to lack of such entry.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 7 Jan 2019 15:07:43 +0000 (15:07 +0000)]
meson: fix nativesdk-meson for multilib SDKs
Multilib SDKs differ only in the environment variables set, so nativesdk-meson's
setup script needs to write a cross file for each environment.
Rename the shipped meson.cross to meson.cross.template, as it cannot be used
directly. Now that post-relocate scripts are called once for each environment,
the generated meson.cross can be prefixed with TARGET_PREFIX to ensure it is
unique.
Finally rewrite the setup script to use string.Template to perform the expansion
instead of hand-coding the logic.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Ross Burton [Fri, 4 Jan 2019 00:13:56 +0000 (00:13 +0000)]
meson: use a sensible default for libdir when cross-compiling
If --libdir isn't passed to Meson a default is used, but as this default value
changes depending on the host (whether it is Debian-like, or has /usr/lib64)
this isn't appropriate for cross builds.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Ross Burton [Mon, 7 Jan 2019 15:07:38 +0000 (15:07 +0000)]
toolchain-scripts: run post-relocate scripts for every environment
SDKs for multilib configurations have multiple environment scripts, so
re-arrange the post-relocate hook invocation so that it runs the post-relocate
hooks after sourcing each environment script.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Without installing gitpython package, oe-git-archive will face error
below, where it was referencing key that was non-existent inside
metadata object.
Traceback (most recent call last):
File "<poky_dir>/scripts/oe-git-archive", line 271, in <module>
sys.exit(main())
File "<poky_dir>/scripts/oe-git-archive", line 229, in main
'commit_count': metadata['layers']['meta']['commit_count'],
KeyError: 'commit_count'
Fix this error by adding exception catch when referencing
non-existent key (based on inputs provided by Richard Purdie).
[YOCTO# 13082]
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Chen Qi [Fri, 4 Jan 2019 02:09:35 +0000 (10:09 +0800)]
buildoptions.py: use different STAMPS_DIR and SSTATE_DIR
Use a different STAMPS_DIR and SSTATE_DIR in test_yocto_source_mirror.
Otherwise, when executing `oe-selftest -a', we will get a lot of failures
due to do_unpack failure.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[snip]
File "/buildarea1/lyang1/poky/meta/lib/oe/types.py", line 122, in boolean
raise ValueError("Invalid boolean value '%s'" % value)
ValueError: Invalid boolean value 'qemux86'
Now QEMU_USE_KVM can only be boolean, can not contain MACHINE any more, kvm
will be enabled if target_arch == build_arch or both of them are x86 archs.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Mon, 7 Jan 2019 14:33:47 +0000 (09:33 -0500)]
linux-yocto/4.18: update to v4.18.22
Integrating the -stable commits from Paul Gortmaker:
24ed0744622e Linux 4.18.22 8266951957ab tipc: use destination length for copy string 2f2b82e7b4f8 arc: [devboards] Add support of NFSv3 ACL 047e43ba5173 ARC: change defconfig defaults to ARCv2 f8d102775911 Input: elan_i2c - add ACPI ID for Lenovo IdeaPad 330-15ARR 91dfecd75ee7 Input: elan_i2c - add support for ELAN0621 touchpad 7c63af1039aa Input: elan_i2c - add ELAN0620 to the ACPI table 673d11935f70 Input: cros_ec_keyb - fix button/switch capability reports 39f1f992639d Input: matrix_keypad - check for errors from of_get_named_gpio() b3cda161024f Input: synaptics - add PNP ID for ThinkPad P50 to SMBus 3e533ca9eb5d Input: xpad - quirk all PDP Xbox One gamepads 1c42a30f4824 i40e: Fix deletion of MAC filters 0f2cbfeff18f svm: Add mutex_lock to protect apic_access_page_done on AMD systems af2cd1276d57 kgdboc: Fix warning with module build c72ba0c17cce kgdboc: Fix restrict error 6571f7ba5f6a userfaultfd: shmem: UFFDIO_COPY: set the page dirty if VM_WRITE is not set 3876646cbe3a userfaultfd: shmem: add i_size checks c8a600a72f36 userfaultfd: shmem: allocate anonymous memory for MAP_PRIVATE shmem bc43472443ee userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails 34bfc624bb6b drm/meson: Fix OOB memory accesses in meson_viu_set_osd_lut() a5fdd876d4f9 drm/meson: Enable fast_io in meson_dw_hdmi_regmap_config c98737cc98c1 drm/meson: Fixes for drm_crtc_vblank_on/off support b6ba7cf72463 drm: set is_master to 0 upon drm_new_set_master() failure f5551d7db284 drm/ast: Fix incorrect free on ioregs f43ce49c718d tracing/fgraph: Fix set_graph_function from showing interrupts c31675335d18 IB/mlx5: Avoid load failure due to unknown link width 339fc991ac42 mips: fix mips_get_syscall_arg o32 check ba720f00b540 MIPS: ralink: Fix mt7620 nd_sd pinmux 87b2d7eda8cc sched, trace: Fix prev_state output in sched_switch tracepoint 52338737ea2c mtd: nand: Fix memory allocation in nanddev_bbt_init() fa8d131f585a uprobes: Fix handle_swbp() vs. unregister() + register() race once more f895888ad58f iser: set sector for ambiguous mr status errors 62613ca14469 unifdef: use memcpy instead of strncpy 8a4fd8949897 test_hexdump: use memcpy instead of strncpy f68e638adaa5 misc: mic/scif: fix copy-paste error in scif_create_remote_lookup 021b5e5a42e3 Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() f6167c3770f1 mm: use swp_offset as key in shmem_replace_page() d7044875a946 mm: cleancache: fix corruption on missed inode invalidation b14c4a131d36 lib/test_kmod.c: fix rmmod double free 1b42a6def46d iio:st_magn: Fix enable device after trigger f6bd7b8e4dbc iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers a7cf14d6bbf0 Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid" b9be70d82cf4 usb: core: quirks: add RESET_RESUME quirk for Cherry G230 Stream series c233ce9ca873 USB: usb-storage: Add new IDs to ums-realtek 726cd6bbfb4f staging: rtl8723bs: Add missing return for cfg80211_rtw_get_station cc91a66f70cd staging: rtl8723bs: Fix incorrect sense of ether_addr_equal a4827072018e staging: mt7621-dma: fix potentially dereferencing uninitialized 'tx_desc' 3278d1121784 staging: vchiq_arm: fix compat VCHIQ_IOC_AWAIT_COMPLETION 4871268b9733 staging: most: use format specifier "%s" in snprintf f52619fef6f3 dmaengine: at_hdmac: fix module unloading 55a2c785818e dmaengine: at_hdmac: fix memory leak in at_dma_xlate() 7def2114f963 ARM: dts: rockchip: Remove @0 from the veyron memory node d66e9553bb93 ASoC: pcm186x: Fix device reset-registers trigger value f28e4296150d ext2: fix potential use after free 13cd83a3fdc6 ext2: initialize opts.s_mount_opt as zero before using it 715877236823 binder: fix race that allows malicious free of live buffer 4c80a994e1c3 function_graph: Reverse the order of pushing the ret_stack and the callback 401bacb8a999 function_graph: Move return callback before update of curr_ret_stack 5a45629359d8 function_graph: Have profiler use curr_ret_stack and not depth cdf8638a4a78 function_graph: Use new curr_ret_depth to manage depth instead of curr_ret_stack f54f3a8c164c function_graph: Make ftrace_push_return_trace() static 19ebfe10ab9d MIPS: function_graph: Simplify with function_graph_enter() be7bcea6943b arm64: function_graph: Simplify with function_graph_enter() 25465f3e0f89 s390/function_graph: Simplify with function_graph_enter() 212fd6ab8b90 riscv/function_graph: Simplify with function_graph_enter() 7845921e7845 parisc: function_graph: Simplify with function_graph_enter() 02c3b2f09537 sparc/function_graph: Simplify with function_graph_enter() fadb32957bd3 sh/function_graph: Simplify with function_graph_enter() e8dab372f22f powerpc/function_graph: Simplify with function_graph_enter() 06e04113d8ee x86/function_graph: Simplify with function_graph_enter() 8974d9ddee8c microblaze: function_graph: Simplify with function_graph_enter() 2ed3d836c186 ARM: function_graph: Simplify with function_graph_enter() a46f2a2ab8f7 function_graph: Create function_graph_enter() to consolidate architecture code 0c23df1fb2ee ALSA: hda/realtek - fix headset mic detection for MSI MS-B171 d33625c9ad99 ALSA: hda/realtek - Support ALC300 d3736fa6a629 ALSA: hda: Add ASRock N68C-S UCC the power_save blacklist ac3d401ca588 ALSA: sparc: Fix invalid snd_free_pages() at error path 5f8920cbdf8b ALSA: control: Fix race between adding and removing a user element 68d40bdae9e1 ALSA: ac97: Fix incorrect bit shift at AC97-SPSA control write 8a066b939728 ALSA: wss: Fix invalid snd_free_pages() at error path 4e153baac165 fs: fix lost error code in dio_complete b3a80504fc6b perf/x86/intel: Disallow precise_ip on BTS events ef7ffa5edebb perf/x86/intel: Add generic branch tracing check to intel_pmu_has_bts() f273d7b0f5ea perf/x86/intel: Move branch tracing setup to the Intel-specific source file 920db419fad5 x86/fpu: Disable bottom halves while loading FPU registers 01ae1b649cc4 x86/MCE/AMD: Fix the thresholding machinery initialization order 598ab7f4e75e arm64: dts: rockchip: Fix PCIe reset polarity for rk3399-puma-haikou. 39b75abd266e PCI: layerscape: Fix wrong invocation of outbound window disable accessor aede037397ca btrfs: relocation: set trans to be NULL after ending transaction 2fa66c494021 Btrfs: fix race between enabling quotas and subvolume creation 050f755e1050 Btrfs: ensure path name is null terminated at btrfs_control_ioctl 8640e4eba7a1 btrfs: Always try all copies when reading extent buffers d57b922c1fc6 udf: Allow mounting volumes with incorrect identification strings 633f035c73f8 xtensa: fix coprocessor part of ptrace_{get,set}xregs e3b5970eae2a xtensa: fix coprocessor context offset definitions 7123932c3463 xtensa: enable coprocessors that are being flushed 4fea3a135968 KVM: VMX: re-add ple_gap module parameter 2eda497b4155 KVM: X86: Fix scan ioapic use-before-initialization 8c896ea1f95d KVM: x86: Fix kernel info-leak in KVM_HC_CLOCK_PAIRING hypercall cee09b048c40 KVM: nVMX/nSVM: Fix bug which sets vcpu->arch.tsc_offset to L1 tsc_offset 60fa1976cc5a kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb 151d0990d8c6 kvm: mmu: Fix race in emulated page table writes e7f4a4ecf899 userfaultfd: shmem/hugetlbfs: only allow to register VM_MAYWRITE vmas d04ea8a3e52b x86/speculation: Provide IBPB always command line options ba6fd92d9dde x86/speculation: Add seccomp Spectre v2 user space protection mode e162e0cb9f48 x86/speculation: Enable prctl mode for spectre_v2_user 4fe877ade966 x86/speculation: Add prctl() control for indirect branch speculation 26a22284be5b x86/speculation: Prepare arch_smt_update() for PRCTL mode 3380e40c38d1 x86/speculation: Prevent stale SPEC_CTRL msr content dafcdc4d3ef4 x86/speculation: Split out TIF update b34c1d1e20ff ptrace: Remove unused ptrace_may_access_sched() and MODE_IBRS 2f191447843d x86/speculation: Prepare for conditional IBPB in switch_mm() 3c4a52665935 x86/speculation: Avoid __switch_to_xtra() calls 9a02cf2b59f7 x86/process: Consolidate and simplify switch_to_xtra() code e45f1bf477c2 x86/speculation: Prepare for per task indirect branch speculation control 40e17356647d x86/speculation: Add command line control for indirect branch speculation 34ca30f6ebb2 x86/speculation: Unify conditional spectre v2 print functions 8cf2abe5a48d x86/speculataion: Mark command line parser data __initdata b2e49f57b3d3 x86/speculation: Mark string arrays const correctly a951ec1282ca x86/speculation: Reorder the spec_v2 code f6e97c269fdf x86/l1tf: Show actual SMT state 124f1934f087 x86/speculation: Rework SMT state change 0db58041bd88 sched/smt: Expose sched_smt_present static key 9b76ef59f198 x86/Kconfig: Select SCHED_SMT if SMP enabled 74c0d392f4d2 sched/smt: Make sched_smt_present track topology 4b44044665b7 x86/speculation: Reorganize speculation control MSRs update 9d35dc0b1975 x86/speculation: Rename SSBD update functions ae5c861d44a2 x86/speculation: Disable STIBP when enhanced IBRS is in use 9fdce9f0d6f6 x86/speculation: Move STIPB/IBPB string conditionals out of cpu_show_common() d9e0d122ae45 x86/speculation: Remove unnecessary ret variable in cpu_show_common() 9ca44b34145e x86/speculation: Clean up spectre_v2_parse_cmdline() f472b112c142 x86/speculation: Update the TIF_SSBD comment 4fe817e5f922 x86/retpoline: Remove minimal retpoline support cdda9afbdbcb x86/build: Fix compiler support check for CONFIG_RETPOLINE 80420a04a82c x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support e338c91ae9bb x86/speculation: Add RETPOLINE_AMD support to the inline asm CALL_NOSPEC variant dd970c7bb37c x86/speculation: Propagate information about RSB filling mitigation to sysfs 1a42c7686198 x86/speculation: Apply IBPB more strictly to avoid cross-process data leak 3fafe253622e tcp: defer SACK compression after DupThresh 973b2d8edb37 net/dim: Update DIM start sample after each DIM iteration 0541a4ad4c11 virtio-net: fail XDP set if guest csum is negotiated 326888b906c0 virtio-net: disable guest csum during XDP set ce853ea2a2e1 net: skb_scrub_packet(): Scrub offload_fwd_mark 497d616f9ef9 net: thunderx: set xdp_prog to NULL if bpf_prog_add fails 32978c0d13b0 usbnet: ipheth: fix potential recvmsg bug and recvmsg bug 2 303b14516da0 s390/qeth: fix length check in SNMP processing beedfff965e4 rapidio/rionet: do not free skb before reading its length 9bde4bd658b6 packet: copy user buffers before orphan or clone 8240b24014e5 net: thunderx: set tso_hdrs pointer to NULL in nicvf_free_snd_queue f4b7bf2f7824 net: gemini: Fix copy/paste error 1a57f5e05433 net: don't keep lonely packets forever in the gro hash fa9f95c537f2 lan743x: fix return value for lan743x_tx_napi_poll e7ef14941113 lan743x: Enable driver to work with LAN7431 a7a42d6ae23e mm/khugepaged: collapse_shmem() do not crash on Compound 219f7f003c6b mm/khugepaged: collapse_shmem() without freezing new_page a5df6e4dd710 mm/khugepaged: minor reorderings in collapse_shmem() 1d0476b09ae2 mm/khugepaged: collapse_shmem() remember to clear holes ba76e023cbcd mm/khugepaged: fix crashes due to misaccounted holes 4ee51871be50 mm/khugepaged: collapse_shmem() stop if punched or truncated 4b7da0a23ab7 mm/huge_memory: fix lockdep complaint on 32-bit i_size_read() 4ea44ec50a87 mm/huge_memory: splitting set mapping+index before unfreeze 9385e2751953 mm/huge_memory: rename freeze_page() to unmap_page() cfe3f465651c media: ov5640: fix auto controls values when switching to manual mode ce92e4309a8f media: ov5640: fix wrong binning value in exposure calculation 797f0d9cdb19 media: ov5640: fix auto gain & exposure when changing mode 09dd7d55020c media: ov5640: fix exposure regression d081f6351a54 media: ov5640: Fix timings setup code e27220212028 media: ov5640: Re-work MIPI startup sequence 1941b77cf04d rcu: Make need_resched() respond to urgent RCU-QS needs 2d694e55c1a8 tty: wipe buffer if not echoing data ff91ad4b37b6 tty: wipe buffer. c9a2097b5bca include/linux/pfn_t.h: force '~' to be parsed as an unary operator 69adf873d6b7 mm, page_alloc: check for max order in hot path 4cf135795c19 tmpfs: make lseek(SEEK_DATA/SEK_HOLE) return ENXIO with a negative offset 5056621d3d82 mm, memory_hotplug: check zone_movable in has_unmovable_pages dfa625fbef30 z3fold: fix possible reclaim races 32536aab2f6d powerpc/numa: Suppress "VPHN is not supported" messages 41d104c27a25 NFSv4: Fix an Oops during delegation callbacks 7d1687dde51a kdb: Use strscpy with destination buffer size 32fe7d4fb78e drm/amdgpu: fix bug with IH ring setup f93e575d397a RISC-V: Silence some module warnings on 32-bit 8e1136c5aff5 riscv: add missing vdso_install target 48182b646f13 SUNRPC: Fix a bogus get/put in generic_key_to_expire() 11e0046dcfea perf/x86/intel/uncore: Add more IMC PCI IDs for KabyLake and CoffeeLake CPUs 73141f3f7b4f sched/fair: Fix cpu_util_wake() for 'execl' type workloads 757ebe2cf812 powerpc/io: Fix the IO workarounds code to work with Radix cf650c21904c floppy: fix race condition in __floppy_read_block_0() 7e04a587b960 crypto: simd - correctly take reqsize of wrapped skcipher into account eeb7ebec5993 rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write 1a7a12521b42 rtc: cmos: Do not export alarm rtc_ops when we do not support alarms 06200773ff6b cpufreq: imx6q: add return value check for voltage scale 8bc2418df6ef KVM: PPC: Move and undef TRACE_INCLUDE_PATH/FILE c2d490ff84be scsi: hisi_sas: Remove set but not used variable 'dq_list' 7fa1b9068daf pinctrl: meson: fix meson8b ao pull register bits c3faa93f65aa pinctrl: meson: fix meson8 ao pull register bits 539eae5c2efb pinctrl: meson: fix gxl ao pull register bits 81e6fb4d21c9 pinctrl: meson: fix gxbb ao pull register bits 23980899fd33 pinctrl: meson: fix pinconf bias disable 2acf52e0d024 fsnotify: generalize handling of extra event flags 70804a2395f9 IB/hfi1: Eliminate races in the SDMA send error path 36f0ce79eea5 ACPICA: AML interpreter: add region addresses in global list during initialization 98a7ff363966 can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv::tx_mb_idx 7e6c6e8f96a3 can: flexcan: Always use last mailbox for TX 09c695304ced can: hi311x: Use level-triggered interrupt d5f1bed61e87 can: raw: check for CAN FD capable netdev in raw_sendmsg() 5dbbeea479ba can: flexcan: handle tx-complete CAN frames via rx-offload infrastructure 9d698b0e8c60 can: flexcan: use can_rx_offload_queue_sorted() for flexcan_irq_bus_*() 3ca38586737b can: rx-offload: rename can_rx_offload_irq_queue_err_skb() to can_rx_offload_queue_tail() b564520dc84a can: rx-offload: introduce can_rx_offload_get_echo_skb() and can_rx_offload_queue_sorted() functions ba4d601f11da can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb 14daeee327c0 can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds bd8f43390a6e can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length ec51a36d40ba can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb() 17afd6b2f539 can: flexcan: Unlock the MB unconditionally 4e10eaf14115 drm/ast: Remove existing framebuffers before loading driver 2059f682eac4 drm/ast: fixed cursor may disappear sometimes 47d28426881e drm/ast: change resolution may cause screen blurred 231220ffbd0c drm/i915: Disable LP3 watermarks on all SNB machines 0ca629caa428 tcp: do not release socket ownership in tcp_close() 235bb14bb504 mm/memory.c: recheck page table entry with page table lock held 700d687423ce mm: don't warn about large allocations for slab 3deb594eb9cc llc: do not use sk_eat_skb() d62cdc16c019 gfs2: Don't leave s_fs_info pointing to freed memory in init_sbd 91aa78f105a0 sctp: clear the transport of some out_chunk_list chunks in sctp_assoc_rm_peer 1ffe2390eec3 bfs: add sanity check at bfs_fill_super() 609b2f88baa9 Input: synaptics - avoid using uninitialized variable when probing 1c3712cd9ec5 selinux: Add __GFP_NOWARN to allocation at str_read() f4dd907859f6 v9fs_dir_readdir: fix double-free on p9stat_read error 43fb0f750bf5 tools/power/cpupower: fix compilation with STATIC=true 7b18c23b8a15 opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call cdcc687a7c0f opp: ti-opp-supply: Dynamically update u_volt_min adf820e7040b brcmfmac: fix reporting support for 160 MHz channels 77260dca90d8 iwlwifi: mvm: don't use SAR Geo if basic SAR is not used 230956227e0f iwlwifi: mvm: fix regulatory domain update when the firmware starts 34c26e7ff77e iwlwifi: mvm: support sta_statistics() even on older firmware 4e7059a1ef08 iwlwifi: fix wrong WGDS_WIFI_DATA_SIZE 00db19541478 gpio: don't free unallocated ida on gpiochip_add_data_with_key() error path 1c65bc42b0b6 mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value e670f3c0bd7f mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL 0279a3e8c9a3 Documentation/security-bugs: Postpone fix publication in exceptional cases bea263a4d369 Documentation/security-bugs: Clarify treatment of embargoed information 85225e451366 MAINTAINERS: Add Sasha as a stable branch maintainer a820ce4d4189 ALSA: oss: Use kvzalloc() for local buffer allocations 7ca1b0cfd1f5 usb: xhci: Prevent bus suspend if a port connect change or polling state is detected 6dc2234cfc3d xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc e23d44bfb180 usb: xhci: fix timeout for transition from RExit to U0 794e4eca3eb8 usb: xhci: fix uninitialized completion when USB3 port got wrong status e705be077247 xhci: Add check for invalid byte size error when UAS devices are connected. a065ce744fcb xhci: handle port status events for removed USB3 hcd d0ab048de951 xhci: Fix leaking USB3 shared_hcd at xhci removal c191d670df6c usb: dwc3: core: Clean up ULPI device baae5ac1953b usb: dwc3: gadget: Properly check last unaligned/zero chain TRB a3c907510737 usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers 2b5d953d4120 usb: core: Fix hub port connection events lost 015ca0f92560 efi/libstub: arm: support building with clang 7972aba9b9a0 HID: steam: remove input device when a hid client is running.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
He Zhe [Mon, 7 Jan 2019 14:33:45 +0000 (09:33 -0500)]
linux-libc-headers: Fix build failure with fixed input and output files instead of pipe
This is an amendment for 2322dc4 "linux-libc-headers: Fix build failure by using fixed temporary file instead of pipe"
which moves just the temporary input file from /tmp to build directory. But the
build directory may not in the same file system with the output file,
/dev/null, either and thus make it possible to trigger that bug, 67f846b, in
binutil v2.31.
This patch puts both the input and output files into build directory for good.
Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt [Fri, 4 Jan 2019 16:20:15 +0000 (10:20 -0600)]
sstate: Implement hash equivalence sstate
Converts sstate so that it can use a hash equivalence server to
determine if a task really needs to be rebuilt, or if it can be restored
from a different (equivalent) sstate object.
The unique hashes are cached persistently using persist_data. This has
a number of advantages:
1) Unique hashes can be cached between invocations of bitbake to
prevent needing to contact the server every time (which is slow)
2) The value of each tasks unique hash can easily be synchronized
between different threads, which will be useful if bitbake is
updated to do on the fly task re-hashing.
[YOCTO #13030]
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Thu, 25 Oct 2018 08:59:28 +0000 (16:59 +0800)]
python-native: fix one do_populate_sysroot warning
Fix below warning:
WARNING: Skipping RPATH /usr/lib64 as is a standard search path for
work/x86_64-linux/python-native/2.7.15-r1.1/recipe-sysroot-native/
usr/lib/python2.7/lib-dynload/_bsddb.so
setup.py will check db.h under include_dirs, for native build,
/usr/lib64 will be insert to postion 0 of include_dirs, so
it's priority is higher then our sysroot, cause db.h sysroot
is ignored, and rpath set to /usr/lib64. and this cause warning
when do_populate_sysroot. use append to fix it.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Tue, 23 Oct 2018 05:22:18 +0000 (13:22 +0800)]
python/python3: use cc_basename to replace CC for checking compiler
When working path contains "clang"/"gcc"/"icc", it might be part of $CC
because of the "--sysroot" parameter. That could cause judgement error
about clang/gcc/icc compilers.
eg: if build under /yocto/builds/xicc/, bitbake python, $CC will contains
xicc, will make $CC match *icc, but actuall xicc just folder name.
When "*icc" is matched, below errors are reported when
compiling python/python3:
x86_64-wrs-linux-gcc: error: strict: No such file or directory
x86_64-wrs-linux-gcc: error: unrecognized command line option '-fp-model'
Here use cc_basename to replace CC for checking compiler to avoid such
kind of issue.
Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kernel.bbclass: Fix incorrect deploying of fitimage.initramfs
When kernel-fitimage and initramfs is enabled using
INITRAMFS_IMAGE_BUNDLE = "1", kernel do_deploy tries to deploy
fitImage.initramfs with following error
| install: cannot stat 'arch/arm64/boot/fitImage.initramfs': No such
file or directory
Skip deploying fitimage.initramfs, since fitimage does not
create fitimage.initramfs
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Clemens Lang [Thu, 3 Jan 2019 15:55:29 +0000 (16:55 +0100)]
update-alternatives.bbclass: Stabilize iteration order
The use of a dictionary for link_rename causes problems for higher-order
alternatives, i.e. when an alternative link points to another
alternative link, since these links must be processed in the order in
which they were originally added for symlink correction to work.
Switch from a dict to a list of tuples to ensure processing happens in
the original order.
Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
u-boot mainline supports menuconfig, this patch enables menuconfig for
u-boot using cml1.
u-boot recipe in OE-core handles multi configuration of u-boot using
UBOOT_CONFIG. Since we cannot determine on which u-boot config the
menuconfig should run, the patch limits when UBOOT_CONFIG is not
defined.
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Liu Haitao [Thu, 3 Jan 2019 05:48:38 +0000 (13:48 +0800)]
iw: fix parsing of WEP keys
The current iw4.14 has a fatal bug that could casue a Segmentation fault
when parsing WEP keys. The issue has been fixed by upstream.
[https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git/commit/?id=0e39f109c4b8155697a12ef090b59cdb304c8c44]
Signed-off-by: Liu Haitao <haitao.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Thu, 3 Jan 2019 07:40:42 +0000 (23:40 -0800)]
arch-armv4.inc, arch-armv5.inc: Do not tie generating thumb ISA to -march
-march=armv5't'e means that CPU can execute thumb ISA, we do not need to
tie this to exclusively generating thumb ISA, this change means that
when we have thumb in tune features then it can use 't' in -march
options irrespective of ISA being thumb or arm.
This fixes derivative of armv5 tunes and paves way for gcc9 where e.g.
armv5e is dropped and minimum arch supported is armv5te
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>