summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2017-02-23gdb: Upgrade to 7.12.1Khem Raj5
Drop already applied patches (From OE-Core rev: 233641857bdc4071e5cb9a25206def880eb2754d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23musl: Update to latestKhem Raj1
here is shortlog * d6601f0a avoid unbounded strlen in gettext functions * dbbb3734 fix use of uninitialized pointer in gettext core * 01e6bbec fix bindtextdomain logic error deactivating other domains * 6894f847 fix spurious EINTR errors from multithreaded set*id, etc. * 1f53e7d0 fix crashes in x32 __tls_get_addr * 27b3fd68 fix crash from corrupted tls module list after failed dlopen * 809ff8cf treat base 1 as an error in strtol-family functions * 786fda87 fix getopt[_long] clobbering of optopt on success * 150747b4 reduce impact of REG_* namespace pollution in x86[_64] signal.h (From OE-Core rev: 6f42e7be18e0896aac357ce2aedaa3b32b2ad98e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23libpcre2: add it for newer vteRobert Yang2
There are two major versions of the PCRE library. The newest version, PCRE2, was released in 2015 and is at version 10.22. The original, very widely deployed PCRE library, originally released in 1997, is at version 8.40, and the API and feature set are stable, future releases will be for bugfixes only. All new future features will be to PCRE2, not the original PCRE 8.x series. The newer vte depends on libpcre2, so add it. (From OE-Core rev: f7165d379cb67c4d4918a8a3e9509d3d823d61da) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23tremor: removeRoss Burton3
Now that Tremor isn't enabled by default in oe-core's GStreamer plugins and has been added to meta-multimedia, it can be removed from oe-core. (From OE-Core rev: 30f5c80943f69884b3d7323b540c8bb0f1efd8fd) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23slang: rewrite recipe to run autoconfRoss Burton6
I discovered that we were not running autoreconf (and cannot due to the unconvential file structure upstream), so manually run autoconf and move the generated configure to the right place as we do already for gnu-configize. Update no-x.patch (now that it is actually being used) so that it doesn't break the build. Patch out the use of INST_LIB_DIR in slsh/Makefile.in as this is the *target* path, so is inappropriate to link to. This means we can remove the custom do_install() which was working around the problem. Remove all rpath patches (now overwritten by autoconf) and replace with just passing RPATH='' via oe_runmake. Remove the library search path patches (now overwritten by autoconf) and replace with passing explicit pointers to the sysroot in the options. [ YOCTO #10969 ] (From OE-Core rev: 48fe39b09fbac973ba188938ab2a080f71ee8d68) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23depmodwrapper-cross/qemuwrapper-cross: Drop unneeded binutils dependencyRichard Purdie2
By default these pull in binutils-cross since they're a cross tool and pull in any native tool requirements. In reality they don't need such tools at build time or runtime since they're scripts. Therefore clear the dependency and save on some processing time. (From OE-Core rev: 63796765122e2eee2b78930797d571acb5c244d1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23gcc-cross: Avoid races with gcc_stash_builddirRichard Purdie1
Its sad we need to do this but do_install and do_populate_sysroot appear to change the files in ${B} and this breaks if something works in parallel like gcc_stash_builddir. We've seen a few too many race errors on the autobuilder which appear to be from this so make things run in sequence deterministically for now. An example failure was this from do_populate_sysroot whilst stash_builddir was running in parallel: ERROR: gcc-cross-initial-arm-6.3.0-r0 do_populate_sysroot: split_and_strip_files: 'file /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/work/x86_64-linux/ gcc-cross-initial-arm/6.3.0-r0/sysroot-destdir/home/pokybuild/yocto-autobuilder/yocto-worker/ nightly-arm-lsb/build/build/tmp/work/x86_64-linux/gcc-cross-initial-arm/6.3.0-r0/recipe-sysroot-native/ usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/arm-poky-linux-gnueabi-gcov' failed Exception: subprocess.CalledProcessError: Command '('patchelf-uninative', '--set-interpreter', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots-uninative/ x86_64-linux/lib/ld-linux-x86-64.so.2', '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/ build/build/tmp/work/x86_64-linux/gcc-cross-initial-arm/6.3.0-r0/sstate-build-populate_sysroot/ recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/arm-poky-linux-gnueabi-gcov')' returned non-zero exit status 1 Subprocess output: missing section headers (From OE-Core rev: 75b76eb08c7e344142f0326605aeb6b24e61e38e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23binconfig.bbclass: fix get_binconfig_mangle()Robert Yang1
The command was: s += " -e 's:-L${libdir}:-LOELIBDIR:;'" s += " -e 's:-I${includedir}:-IOEINCDIR:;'" s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" The STAGING_LIBDIR and STAGING_INCDIR now contains WORKDIR, so the result would be incorrect like: TCL_INCLUDE_SPEC='-IFIXMESTAGINGDIRTARGET/usr/include/recipe-sysroot/usr/include/tcl8.6' Note, the "/usr/include/recipe-sysroot" is not needed. Move the last two sed commands ahead will fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23native.bbclass: populate native recipe with it's filesSaul Wold1
This allows a native package's recipe-sysroot-native to be populated with that packages native image files. This in turns allows it to be used by scripts or other tools without creating un-necessary DEPENDS. An example of this is systemtap-native and the crosstap script. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23kernel.bbclass: do_deploy requires depmodwrapperRobert Yang1
Fixed: run.do_deploy.27809: line 155: depmodwrapper: command not found Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23devtool: upgrade: fix error of import recipeutilsLuck Hoang1
upgrade.py imports oe.recipeutils in meta/lib/ but path to oe.recipeutils is not provided. This fails populate_sdk_ext. Signed-off-by: Luck Hoang <huyht1205@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23terminal.bbclass: export configure varsRobert Yang1
So that we can easily reproduce configure by: $ $CACHED_CONFIGUREVARS ./configure $CONFIGUREOPTS $EXTRA_OECONF [YOCTO #9423] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23useradd-staticids: fix typo for '--expiredate'Peter Bergin1
There is a typo in the useradd-staticids.bbclass that causes error during do_install. If build was configured to use usedadd-staticids and the recipe included (for example): USERADD_PARAM_${PN} = "--expiredate '' testUser" Due to the typo this added the wrong option '--expiredata ' that caused an error. Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23arch-arm*.inc: squash whitespace within TUNE_FEATURES stringsAndre McCurdy5
TUNE_FEATURES is include in BUILDCFG_VARS, so any whitespace is visible to the user during the build process. Remove the extra whitespace added during the 2.1 development cycle: http://git.openembedded.org/openembedded-core/commit/?id=f774b44fa007a2a756ada892ede832b1251d940c For consistency, squash whitespace within PACKAGE_EXTRA_ARCHS strings too. Whitespace within TUNE_FEATURES strings in the tune-cortexa*.inc files has been fixed in a separate commit: http://git.openembedded.org/openembedded-core/commit/?id=5610c6397ee098dd998b7417b343494de77179f9 (From OE-Core rev: 3cd0c5ef748ad072f1bd9a8d42157e9643bf97eb) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23scripts/buildstats-diff: fix epoch numbers in --ver-diffMarkus Lehtonen1
Incorrect data was printed (recipe name instead of epoch number) when displaying changes in epoch. (From OE-Core rev: 5e2b1bfb684dc76963f692172f7457c2249c3266) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23lib/oe/patch: Support xz-compressed patchesDominic Sacré1
Add .xz to the list of extensions recognized by patch_path(), so that compressed patches ending in .patch.xz or .diff.xz are automatically applied. (From OE-Core rev: f1a2c45765d14d3ca09657ad1f6b526554af2bb6) Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23bitbake.conf: Point KERNELORG_MIRROR to cdn.kernel.orgDominic Sacré1
Use cdn.kernel.org to distribute the server load and improve download speeds. Leave www.kernel.org in MIRRORS as a fallback. See https://www.kernel.org/introducing-fastly-cdn.html (From OE-Core rev: 7c81b680a3cc4602c9c153398103d5477d7fd894) Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23oeqa/runtime/context.py: Fix use of getTarget() with testexportMariano Lopez3
The idea on getTarget is to use kwargs to send custom variables to different targets, instead of this, a new variable was added (just used for custom targets) and this broke testexport. So in order to fix it, just add the custom variable to kwargs. This fixes the use of getTarget() in testexport class that was introduced in 1dc8010afd71fe46fb28bb86fb7c07a5fbd3d7cf. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-23oeqa: fix typoHumberto Ibarra4
The word 'uninstall' was spelled incorrectly in various parts of oeqa files. (From OE-Core rev: af365e025030436f83b233fa51ecc9c58c58ce3c) Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23image_types_wic: fix expansion errorEd Bartosh1
Variable WKS_SEARCH_PATH was not fully expanded when used directly in this expression: WKS_FULL_PATH = "${@wks_search('${WKS_FILES}'.split(), '${WKS_SEARCH_PATH}') or ''}" This caused expansion error: bb.data_smart.ExpansionError: Failure expanding variable WKS_FULL_PATH, .... which triggered exception SyntaxError: invalid syntax (WKS_FULL_PATH, line 1) Calling d.getVar instead of directly referencing variables should fix the issue. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-19layer.conf: bump version for change in eSDK selftest behaviourJoshua Lock1
Since 59a99cd8 "oeqa/sdk: Updates sanity tests for minimal eSDK" we can now run oe-selftests against a minimal eSDK. We need to increase the layer version so that we can detect this change in behaviour in our automated testing. Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19selftest/containerimage.py: Add container IMAGE_FSTYPES testRandy Witt3
This test checks to make sure only the files expected exist in a container image. Currently only ROOTFS_BOOTSTRAP_INSTALL, gets added to all images without the user specifying it. But this test should help if a developer in the future ever silently adds more than just ROOTFS_BOOTSTRAP_INSTALL, and that the developer can make sure it also gets removed from a container image. [YOCTO #9502] Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-19image-container.bbclass: Error if not using linux-dummyRandy Witt1
In the typical case of a container, the user doesn't particularly care about the kernel version used. Since using linux-dummy prevents building a kernel in the most common case, alert the user if they choose a container image, but don't also specify linux-dummy. In the cases the user actually does want to build against particular kernel headers, etc, they can override by setting IMAGE_CONTAINER_NO_DUMMY = "1". [YOCTO #9502] Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-19image-container.bbclass: Add the "container" IMAGE_FSTYPESRandy Witt3
The "container" fstype does very little other than pick tar.bz2 as the actual image type and disable installation of ROOTFS_BOOTSTRAP_INSTALL. [YOCTO #9502] Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-02-19oeqa/selftest/bbtests: Update after changes to dependency graph file generationRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19wget: Upgrade 1.19 -> 1.19.1Richard Purdie1
This fixes musl build issues and avoids autobuilder failures. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19rootfspostcommands: remove shadow backup files instead of trying to sortPatrick Ohly1
Backup are files sometimes are inconsistent and then cannot be sorted (YOCTO #11043), and more importantly, are not needed in the initial rootfs, so they get deleted. Fixes: [YOCTO #11007] Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2017-02-19linux-yocto-rt/4.9: update to 4.9-rt6Bruce Ashfield3
Updating the SRCREVs to make Paul Gortmaker's port of 4.9-rt6 active. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19kernel-yocto: trivial: remove extra } from bsp_definitionBruce Ashfield1
A typo introduced an extra } in the logging of the bsp_definition. While this won't cause problems .. it needs to be fixed! Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.4: meta/configuration updatesBruce Ashfield3
Integrating the following commit already in 4.9 and 4.8: intel-quark: Add intel-quark-preempt-rt bsp configuration While there are intel-quark configurations for the KTYPEs standard and tiny in bsp/intel-common, there's none for the preempt-rt KTYPE. Trying to build preempt-rt enabled kernels such as linux-yocto-rt for intel-quark yields a .config having a potentially misconfigured architecture. More importantly, however, preempt-rt related CONFIG options are not enabled. Hence, a build of, e.g., linux-yocto-rt, does not result in a preempt-rt enabled kernel. This patch qualifies to be (back)ported to other branches than master. Signed-off-by: Christian Storm <christian.storm@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.9: update to v4.9.9Bruce Ashfield3
Updating to the korg -stable release. Changelog is as follows: d2e4b66b4ef2 Linux 4.9.9 f2a0409a0850 drm/i915/execlists: Reset RING registers upon resume 72cd604cfd86 fs: break out of iomap_file_buffered_write on fatal signals bf9ab22c350d iw_cxgb4: set correct FetchBurstMax for QPs 13363b6988f6 x86/irq: Make irq activate operations symmetric e02136282296 irqdomain: Avoid activating interrupts more than once c6b0333baea0 iio: health: max30100: fixed parenthesis around FIFO count check 12c2fcf6bcf7 iio: dht11: Use usleep_range instead of msleep for start signal 7baa8491d47d iio: health: afe4403: retrieve a valid iio_dev in suspend/resume 5f0ee562605b iio: health: afe4404: retrieve a valid iio_dev in suspend/resume 54d2ccc4003b iio: adc: palmas_gpadc: retrieve a valid iio_dev in suspend/resume db0e02ef6b82 staging: greybus: timesync: validate platform state callback 89cc65c1117f USB: serial: option: add device ID for HP lt2523 (Novatel E371) 12a9c11c2e19 usb: gadget: f_fs: Assorted buffer overflow checks. e40d15fce929 usb: musb: Fix host mode error -71 regression cbd819e7db3a USB: Add quirk for WORLDE easykey.25 MIDI keyboard 4807725aab0b USB: serial: pl2303: add ATEN device ID 8bc382a9652b USB: serial: qcserial: add Dell DW5570 QDL 0dcbd0aa44e6 KVM: x86: do not save guest-unsupported XSAVE state bc05a2e940fe dmaengine: cppi41: Fix oops in cppi41_runtime_resume 2c2e7fe7c9c5 dmaengine: cppi41: Fix runtime PM timeouts with USB mass storage bebb9d75e84d perf/x86/intel/uncore: Clean up hotplug conversion fallout e6bd712154aa HID: wacom: Fix poor prox handling in 'wacom_pl_irq' f24bc920612c HID: hid-lg: Fix immediate disconnection of Logitech Rumblepad 2 80246551c7d7 HID: usbhid: Quirk a AMI virtual mouse and keyboard with ALWAYS_POLL 40add19d3897 iwlwifi: mvm: avoid crash on restart w/o reserved queues 97663735a96f iwlwifi: fix double hyphen in MODULE_FIRMWARE for 8000 3d8ec7d2d5f9 pinctrl: intel: merrifield: Add missed check in mrfld_config_set() 2cf6c49264e4 pinctrl: baytrail: Debounce register is one per community 449d3ecfbd76 Revert "vring: Force use of DMA API for ARM-based systems with legacy devices" 16f61dee7e7c Revert "bcma: init serial console directly from ChipCommon code" 12f822d23dee percpu-refcount: fix reference leak during percpu-atomic transition 8ee8ff9e2652 regulator: axp20x: AXP806: Fix dcdcb being set instead of dcdce 1594edd9ea0d vhost: fix initialization for vq->is_le 04eb7db25bb1 mmc: sdhci: Ignore unexpected CARD_INT interrupts 1d88791d5ed5 cgroup: don't online subsystems before cgroup_name/path() are operational a150e08704b2 can: bcm: fix hrtimer/tasklet termination in bcm op removal a93ae8dccc3c tracing: Fix hwlat kthread migration b67c7d39bc28 mm, fs: check for fatal signals in do_generic_file_read() 6cb0497aec81 base/memory, hotplug: fix a kernel oops in show_valid_zones() 72f7419610c8 mm/memory_hotplug.c: check start_pfn in test_pages_in_a_zone() 9e255997c2e1 cifs: initialize file_info_lock f0c3a0ac3349 zswap: disable changing params if init fails a3d729526f2f svcrpc: fix oops in absence of krb5 module 743146d347f3 NFSD: Fix a null reference case in find_or_create_lock_stateid() 4c953848c95b powerpc/mm: Use the correct pointer when setting a 2MB pte 8f415333be3a powerpc: Fix build failure with clang due to BUILD_BUG_ON() bbf69e5197da powerpc: Add missing error check to prom_find_boot_cpu() 73d45909780e powerpc/eeh: Fix wrong flag passed to eeh_unfreeze_pe() 4b70d598c2ee libata: Fix ATA request sense 6d08607ef35b libata: apply MAX_SEC_1024 to all CX1-JB*-HP devices fc794153c407 ata: sata_mv:- Handle return value of devm_ioremap. b41615aa7056 perf/core: Fix PERF_RECORD_MMAP2 prot/flags for anonymous memory 3996a91e3bdc perf/core: Fix use-after-free bug 53bed1f64025 crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes b04a39f88ced crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg 2eb8f7c4225a drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval bd5cefed1ccc drm/nouveau/disp/gt215: Fix HDA ELD handling (thus, HDMI audio) on gt215 c9fb422fd938 drm/amdgpu/si: fix crash on headless asics 20658b3df8b9 pinctrl: baytrail: Add missing spinlock usage in byt_gpio_irq_handler 7396685a1bca HID: cp2112: fix gpio-callback error handling a18c4584a489 HID: cp2112: fix sleep-while-atomic dfd713307adb xtensa: fix noMMU build on cores with MMU f2e24dd91818 efi/fdt: Avoid FDT manipulation after ExitBootServices() f0c7412edfc1 x86/efi: Always map the first physical page into the EFI pagetables 13e6ef99d23b ext4: validate s_first_meta_bg at mount time 610c2b7ff8f6 PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchies Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto-dev: bump to v4.10+Bruce Ashfield1
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.8/4.9: fix tpm.cfg and add dm-verityBruce Ashfield6
Integrating the following commits to fix a configuration warning and to add a tpm configuration feature: 8f3bc608ae61 features: add dm-verity 0ad64750fef1 tpm: avoid warning due to double CONFIG_TCG_TPM Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.9: Intel-quark: Add intel-quark-preempt-rt bsp configurationBruce Ashfield3
While there are intel-quark configurations for the KTYPEs standard and tiny in bsp/intel-common, there's none for the preempt-rt KTYPE. Trying to build preempt-rt enabled kernels such as linux-yocto-rt for intel-quark yields a .config having a potentially misconfigured architecture. More importantly, however, preempt-rt related CONFIG options are not enabled. Hence, a build of, e.g., linux-yocto-rt, does not result in a preempt-rt enabled kernel. Signed-off-by: Christian Storm <christian.storm@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto-rt/4.9: integrate 4.9-rt4Bruce Ashfield3
Integrating the 4.9-rt4 new changes: 56a3dd6fb4e9 x86/mm/cpa: avoid wbinvd() for PREEMPT 221db3244e71 pinctrl: qcom: Use raw spinlock variants 43158f23e188 radix-tree: use local locks 109a8fea2c4a cpuset: Convert callback_lock to raw_spinlock_t 3741fb19d20f softirq: wake the timer softirq if needed Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.8: update to v4.8.18Bruce Ashfield3
Paul Gortmaker has started doing 4.8 -stable updates. This integrates his 4.8.18 queue from: git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-4.8.y.git Change log is as follows: 28dda89acd7c Linux 4.8.18 936e79682048 tick/broadcast: Prevent NULL pointer dereference f22b03e15427 clocksource/dummy_timer: Move hotplug callback after the real timers 8f78db7e5df0 xfs: use GPF_NOFS when allocating btree cursors 1d818a81bac6 xfs: ignore leaf attr ichdr.count in verifier during log replay 62ef2c9c1d94 xfs: don't allow di_size with high bit set db28776559c7 xfs: error out if trying to add attrs and anextents > 0 fb70f2a64910 xfs: don't crash if reading a directory results in an unexpected hole ebff27d76e7e xfs: complain if we don't get nextents bmap records 14c3f0b270aa xfs: check for bogus values in btree block headers 31f0f90742a3 xfs: pass state not whichfork to trace_xfs_extlist 430a362685e9 xfs: Move AGI buffer type setting to xfs_read_agi 20aa52b53586 xfs: new inode extent list lookup helpers c7b75fcea4e6 xfs: fix unbalanced inode reclaim flush locking e89df591f833 xfs: check minimum block size for CRC filesystems b04a2c02f4d7 xfs: provide helper for counting extents from if_bytes f4e7f4cd52b1 xfs: don't BUG() on mixed direct and mapped I/O 49f159ae6e80 xfs: check return value of _trans_reserve_quota_nblks 23bb39fdbb96 xfs: don't call xfs_sb_quota_from_disk twice d3c7d2aa00d4 tpm_tis: Check return values from get_burstcount. 9fc58e555d78 drm/i915/gen9: fix the WM memory bandwidth WA for Y tiling cases 4f075608d2c4 drm/i915/gen9: unconditionally apply the memory bandwidth WA 55e9c9d00d70 drm/i915: disable PSR by default on HSW/BDW 2c266a9a3631 drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values e4d1900e15db s390/topology: always use s390 specific sched_domain_topology_level b04e5322d8a4 powerpc/pci/rpadlpar: Fix device reference leaks 458e63f135d6 PCI: Enable access to non-standard VPD for Chelsio devices (cxgb3) 05a725c46f56 PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+ 8d12795b1eac PCI: Convert Mellanox broken INTx quirks to be for listed devices only 24af87eb2ffa PCI: Convert broken INTx masking quirks from HEADER to FINAL ec9f277f52e9 PCI: Add Mellanox device IDs 9e7c8ebc1316 staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs() 8c6c73a692c9 f2fs: hide a maybe-uninitialized warning a91f2c1d4f45 f2fs: remove percpu_count due to performance regression 93634e1cc928 md: MD_RECOVERY_NEEDED is set for mddev->recovery 239b31c50bde crypto: arm64/aes-ce - fix for big endian a3141467e092 crypto: arm64/aes-xts-ce: fix for big endian 7c26ef18f05a crypto: arm64/sha1-ce - fix for big endian cb70151453a1 crypto: arm64/aes-neon - fix for big endian c1c451bea4af crypto: arm64/aes-ccm-ce: fix for big endian c4957563b255 crypto: arm/aes-ce - fix for big endian dcb0c4ebc7ad crypto: arm64/ghash-ce - fix for big endian d60ecc7f02a4 crypto: arm64/sha2-ce - fix for big endian f9315853c7c1 s390/crypto: unlock on error in prng_tdes_read() a76c795f53e7 mm, compaction: fix NR_ISOLATED_* stats for pfn based migration d3b82f9a9716 mm: khugepaged: fix radix tree node leak in shmem collapse error path ab533014582f mm: khugepaged: close use-after-free race during shmem collapsing c9777f749c4c mm/hugetlb.c: use the right pte val for compare in hugetlb_cow 0ff00251359e mmc: mmc_test: Uninitialized return value abe558647a0f PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend b90b6b8cce53 irqchip/bcm7038-l1: Implement irq_cpu_offline() callback d6229a05dd06 ima: fix memory leak in ima_release_policy 8cbe9b689467 sbp-target: Fix second argument of percpu_ida_alloc() fed8068fd1de target/iscsi: Fix double free in lio_target_tiqn_addtpg() ec92af68808e scsi: mvsas: fix command_active typo efe08cc6939b ASoC: samsung: i2s: Fixup last IRQ unsafe spin lock call a5a550bd0768 ASoC: cht_bsw_rt5645: Fix leftover kmalloc 3fcdecb0f9f6 iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped 22604a045edb iommu/vt-d: Fix pasid table size encoding f7dd8813279b iommu/amd: Fix the left value check of cmd buffer 9a134d29af48 iommu/amd: Missing error code in amd_iommu_init_device() 35a294dd5723 clk: renesas: mstp: Support 8-bit registers for r7s72100 8a7022b2ffad clk: imx31: fix rewritten input argument of mx31_clocks_init() 8b4940dd9224 clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks a13af6a13e68 clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message c54f34533601 clk: clk-wm831x: fix a logic error 36c3481984b5 clk: qcom: ipq806x: Fix board clk rates fdd91f12bebc hwmon: (g762) Fix overflows and crash seen when writing limit attributes 18d749bb756f hwmon: (nct7802) Fix overflows seen when writing into limit attributes 1e6b9473280a hwmon: (ds620) Fix overflows seen when writing temperature limits 0bc18f1d87d9 hwmon: (amc6821) sign extension temperature 4c8493cb90b9 hwmon: (scpi) Fix module autoload d618b1647e27 platform/x86: fujitsu-laptop: use brightness_set_blocking for LED-setting callbacks b803e5984015 x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 1121b5f49eb7 debugfs: improve DEFINE_DEBUGFS_ATTRIBUTE for !CONFIG_DEBUG_FS f4b9eaba036c clk: renesas: cpg-mssr: Fix inverted debug check a25cb9b5744b efi/efivar_ssdt_load: Don't return success on allocation failure b36f676475bd cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected 40b0bbe612bb ath10k: use the right length of "background" 3e0f61361a82 nl80211: Use different attrs for BSSID and random MAC addr in scan req 3d04e6a06abc mac80211: fix tid_agg_rx NULL dereference f4ded840a335 drm/i915: tune down the fast link training vs boot fail 2ed2b3cc6ae3 drm/i915/dp: add lane_count check in intel_dp_check_link_status ac2370c93a40 usb: dwc3: gadget: always unmap EP0 requests 6039272a760e usb: dwc3: ep0: explicitly call dwc3_ep0_prepare_one_trb() 4f76ead23734 usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb() 7acc87fae524 iio: accel: st_accel: fix LIS3LV02 reading and scaling d59378efa7ac staging: iio: ad7606: fix improper setting of oversampling pins 401316ef7253 mei: move write cb to completion on credentials failures 3ab87b8fd267 mei: bus: fix mei_cldev_enable KDoc c103d55bb7d7 USB: serial: io_ti: bind to interface after fw download d302588a910f ARM: dts: sun7i: bananapi-m1-plus: Enable USB PHY for USB host support 56dce131ec69 arm64: dts: hip06: Correct hardware pin number of usb node 0c03658a3e7b USB: phy: am335x-control: fix device and of_node leaks 518a4d8d533c ARM: dts: r8a7794: Correct hsusb parent clock 7780eb2fd54b usb: gadget: Fix second argument of percpu_ida_alloc() a3ff51875d83 USB: serial: kl5kusb105: abort on open exception path 5f8a0a2fd33b ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream() fb106dc8b847 usb: musb: blackfin: add bfin_fifo_offset in bfin_ops 1bff22506598 usb: gadget: udc: core: fix return code of usb_gadget_probe_driver() c7c4ad7fce6d usb: hub: Move hub_port_disable() to fix warning if PM is disabled b7fb0479ecd6 usb: musb: Fix trying to free already-free IRQ 4 217c03eaf10c usb: dwc3: gadget: Fix full speed mode 7de3c659811a usb: dwc3: pci: Fix dr_mode misspelling 6fdac0047799 usb: dwc3: pci: add Intel Gemini Lake PCI ID 220d6521aac2 xhci: Fix race related to abort operation d3f3b0bd0756 xhci: Use delayed_work instead of timer for command timeout 0da62a5b5242 usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL 997d598c694f USB: serial: mos7720: fix parallel probe eb9e22ac9265 USB: serial: mos7720: fix parport use-after-free on probe errors c91243377c8d USB: serial: mos7720: fix use-after-free on probe errors b756fba5e563 USB: serial: mos7720: fix NULL-deref at open 8cc2ae8e130e USB: serial: mos7840: fix NULL-deref at open 68ab1ccfc085 USB: serial: kobil_sct: fix NULL-deref in write 37ca8378e77c USB: serial: cyberjack: fix NULL-deref at open fd435e99f5ed USB: serial: oti6858: fix NULL-deref at open 1653f66ba3fb USB: serial: io_edgeport: fix NULL-deref at open 73ec9d58b1c7 USB: serial: ti_usb_3410_5052: fix NULL-deref at open d1706b42d164 USB: serial: garmin_gps: fix memory leak on failed URB submit b653000d9b0c USB: serial: iuu_phoenix: fix NULL-deref at open 427bac51ce67 USB: serial: io_ti: fix I/O after disconnect 59f740cd834c USB: serial: io_ti: fix another NULL-deref at open 2ef82cf063c8 USB: serial: io_ti: fix NULL-deref at open 8d5f29b2d578 USB: serial: spcp8x5: fix NULL-deref at open e1fe8df45b74 USB: serial: keyspan_pda: verify endpoints at probe 10da95b6a2eb USB: serial: pl2303: fix NULL-deref at open e29498ba6e1f USB: serial: quatech2: fix sleep-while-atomic in close 05859d754d6f USB: serial: omninet: fix NULL-derefs at open and disconnect be17e1c916ce usb: return error code when platform_get_irq fails 0e9fc72194ce usb: xhci: hold lock over xhci_abort_cmd_ring() 527f810d8a86 xhci: Handle command completion and timeout race c18ca85fd6de usb: host: xhci: Fix possible wild pointer when handling abort command 67a7de5a2f35 usb: xhci: fix return value of xhci_setup_device() 775a2bec9cdf xhci: free xhci virtual devices with leaf nodes first 80c502e0ce6f usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Apollo Lake d3a9f7c7e8c4 usb: xhci: fix possible wild pointer 5ded28d83128 usb: gadget: composite: Test get_alt() presence instead of set_alt() 16718d267e09 USB: dummy-hcd: fix bug in stop_activity (handle ep0) 47acb8434892 USB: fix problems with duplicate endpoint addresses a45f34e820c6 USB: gadgetfs: fix checks of wTotalLength in config descriptors 27b4d04d1b87 USB: gadgetfs: fix use-after-free bug cd4da96b1bac USB: gadgetfs: fix unbounded memory allocation bug 1fa95887b663 usb: gadgetfs: restrict upper bound on device configuration size e4efa88511eb usb: storage: unusual_uas: Add JMicron JMS56x to unusual device 05ace125078d usb: musb: dsps: implement clear_ep_rxintr() callback 38caa4d8986e usb: musb: core: add clear_ep_rxintr() to musb_platform_ops 483c56831853 KVM: MIPS: Flush KVM entry code from icache globally 08aa895b61e1 KVM: MIPS: Don't clobber CP0_Status.UX d33b04df932e KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS e3843cdbf81a drm/i915: Force VDD off on the new power seqeuencer before starting to use it dbce182845b4 gcc-plugins: update gcc-common.h for gcc-7 970150316c04 mac80211: initialize fast-xmit 'info' later cf3b94f8fe70 ARM: davinci: da850: don't add emac clock to lookup table twice 391c21a9ab0a parisc: Mark cr16 clocksource unstable on SMP systems 684f6df20889 fscrypt: fix renaming and linking special files 6c55d3ad7fb3 ALSA: usb-audio: Fix irq/process data synchronization 3074297922e2 ALSA: hda - Apply asus-mode8 fixup to ASUS X71SL 81a35981225c ALSA: hda - Fix up GPIO for ASUS ROG Ranger 576b9d7789d8 iio: bmi160: Fix time needed to sleep after command execution ad2a1ae984c6 iio: max44000: correct value in illuminance_integration_time_available ee8e4a73dbf6 iio: common: st_sensors: fix channel data parsing Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19linux-yocto/4.9: bump to v4.9.8Bruce Ashfield3
Integrating the -stable releases. Changelog is as follows: c8ea2f3b8247 Linux 4.9.8 b5b4d4a9141e xfs: fix bmv_count confusion w/ shared extents 5d44dd54bd57 xfs: clear _XBF_PAGES from buffers when readahead page 29f96b7e9023 xfs: extsize hints are not unlikely in xfs_bmap_btalloc aab858dabd5e xfs: remove racy hasattr check from attr ops 29094164ea99 xfs: verify dirblocklog correctly 214d55efa255 xfs: fix COW writeback race 29f319275e76 xfs: fix xfs_mode_to_ftype() prototype d062d90c35f2 xfs: don't wrap ID in xfs_dq_get_next_id d3201a14b36a xfs: sanity check inode di_mode 43ce5921773b xfs: sanity check inode mode when creating new dentry b5f68e24cc7b xfs: replace xfs_mode_to_ftype table with switch statement 4fac84ba1da7 xfs: add missing include dependencies to xfs_dir2.h e5325fcf70b1 xfs: sanity check directory inode di_size 624e54b5aff1 xfs: make the ASSERT() condition likely 4f4d5082ec73 xfs: don't print warnings when xfs_log_force fails e9b776519107 xfs: don't rely on ->total in xfs_alloc_space_available 6b81365b1e57 xfs: adjust allocation length in xfs_alloc_space_available c63f4d3aa09d xfs: fix bogus minleft manipulations d20e4ad06c4b xfs: bump up reserved blocks in xfs_alloc_set_aside 9f42bc4f9c1c net: dsa: Bring back device detaching in dsa_slave_suspend() e972cce0c833 lwtunnel: Fix oops on state free after encap module unload 89c2588627c2 net: Specify the owning module for lwtunnel ops 087c2ecb21af qmi_wwan/cdc_ether: add device ID for HP lt2523 (Novatel E371) WWAN card 93ff5e03bcba af_unix: move unix_mknod() out of bindlock 37b27b20a8a9 r8152: don't execute runtime suspend if the tx is not empty ad864d9fce0e net: mpls: Fix multipath selection for LSR use case 74423145d931 bridge: netlink: call br_changelink() during br_dev_newlink() 087dced61adc net/mlx5e: Do not recycle pages from emergency reserve 0c687a735cdb tcp: initialize max window for a new fastopen socket 79453ab88164 ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock e9db042dca20 lwtunnel: fix autoload of lwt modules b335e6566661 net: phy: bcm63xx: Utilize correct config_intr function 948e137ad9ba net: fix harmonize_features() vs NETIF_F_HIGHDMA d1c95f9ce102 vxlan: fix byte order of vxlan-gpe port number 1e7cbb413f63 virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving 3eab5dd0eb19 virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit b260a714a638 net sched actions: fix refcnt when GETing of action after bind 2d6b61ec9d3a ax25: Fix segfault after sock connection timeout c7a5df92d1e8 ip6_tunnel: Account for tunnel header in tunnel MTU 08e650708dd0 ravb: do not use zero-length alignment DMA descriptor 77ce30dc4df4 mlx4: do not call napi_schedule() without care 18767acb7b67 openvswitch: maintain correct checksum state in conntrack actions 3524f64224bd tcp: fix tcp_fastopen unaligned access complaints on sparc b66b1f5ac33d net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim 958bb1bdc2c2 net: ipv4: fix table id in getroute response 6980c52c4efb net: lwtunnel: Handle lwtunnel_fill_encap failure ec1aa8d49532 mlxsw: pci: Fix EQE structure definition 4ec59d1fe470 mlxsw: switchx2: Fix memory leak at skb reallocation 7c249f3306b6 mlxsw: spectrum: Fix memory leak at skb reallocation 5b3df4401064 netvsc: add rcu_read locking to netvsc callback a37f2311e63c r8152: fix the sw rx checksum is unavailable fd2ffe57dda0 Linux 4.9.7 b59dd202f231 drm/i915: Remove WaDisableLSQCROPERFforOCL KBL workaround. 922813f4d66f perf/core: Fix concurrent sys_perf_event_open() vs. 'move_group' race f5f415c13209 mm, memcg: do not retry precharge charges 98185d4b18a1 platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT adb260d15134 platform/x86: mlx-platform: free first dev on error 776050a9b55e virtio_mmio: Set DMA masks appropriately 143a9ad4e68c memory_hotplug: make zone_can_shift() return a boolean value da1fdb8456ac pinctrl: baytrail: Rectify debounce support 583eded5860b pinctrl: uniphier: fix Ethernet (RMII) pin-mux setting for LD20 35948ae694c0 pinctrl: broxton: Use correct PADCFGLOCK offset 668a827a6c9d s5k4ecgx: select CRC32 helper 9a335996bfcf IB/rxe: Prevent from completer to operate on non valid QP fed1e89a16e3 IB/rxe: Fix rxe dev insertion to rxe_dev_list c81ee4ed9c0d IB/umem: Release pid in error and ODP flow d7c3d7e453b7 drm/i915: Check for NULL atomic state in intel_crtc_disable_noatomic() 181478cdb75e drm/i915: Fix calculation of rotated x and y offsets for planar formats ff4956555513 drm/i915: Don't init hpd polling for vlv and chv from runtime_suspend() 8d7c76ae613e drm/i915: Don't leak edid in intel_crt_detect_ddc() 2cff678d0bb5 drm/i915: prevent crash with .disable_display parameter 9913aca2d587 drm/i915: Clear ret before unbinding in i915_gem_evict_something() 1b8ff91ae545 v4l: tvp5150: Don't override output pinmuxing at stream on/off time 11e5015ae1d1 v4l: tvp5150: Fix comment regarding output pin muxing d25f9bfeb62f v4l: tvp5150: Reset device at probe time, not in get/set format handlers fe6531075e1d pctv452e: move buffer to heap, no mutex 0bd3cb8d470b iw_cxgb4: free EQ queue memory on last deref cb1d48f55a6d SUNRPC: cleanup ida information when removing sunrpc module 5637949edb50 NFSv4.0: always send mode in SETATTR after EXCLUSIVE4 0a7023506112 NFSv4.1: Fix a deadlock in layoutget 73fdda3b01cd nfs: Don't increment lock sequence ID after NFS4ERR_MOVED 2b95f1210e50 parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header ca332b96ba62 ARC: [arcompact] handle unaligned access delay slot corner case 9d5f2c151ec0 ARC: udelay: fix inline assembler by adding LP_COUNT to clobber list 50f5972cc231 can: ti_hecc: add missing prepare and unprepare of the clock 9f56548b0077 can: c_can_pci: fix null-pointer-deref in c_can_start() - set device pointer a1af471b4151 IB/srp: fix invalid indirect_sg_entries parameter value c2293e76babe IB/srp: fix mr allocation when the device supports sg gaps 24be606cd3b4 IB/iser: Fix sg_tablesize calculation 95600605ffaa IB/cxgb3: fix misspelling in header guard d7f56ee1198a s390/ptrace: Preserve previous registers for short regset write 62d7f2123f19 s390/mm: Fix cmma unused transfer from pgste into pte 97a2e39b7ab9 RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled ffb97c11d05f Btrfs: remove ->{get, set}_acl() from btrfs_dir_ro_inode_operations ad80fada9d6d Btrfs: disable xattr operations on subvolume directories 79babd4a6ce2 Btrfs: remove old tree_root case in btrfs_read_locked_inode() 959f9709c025 ISDN: eicon: silence misleading array-bounds warning 485952414360 xfs: prevent quotacheck from overloading inode lru 03707d6c36f9 sysctl: fix proc_doulongvec_ms_jiffies_minmax() c7556867782e userns: Make ucounts lock irq-safe 13e39d5930ec vring: Force use of DMA API for ARM-based systems with legacy devices 96e5cec10e7a mm, page_alloc: fix premature OOM when racing with cpuset mems update b678e4ff7ce0 mm, page_alloc: move cpuset seqcount checking to slowpath d1656c5aef4d mm, page_alloc: fix fast-path race with cpuset update or removal ade7afe9dca6 mm, page_alloc: fix check for NULL preferred_zone 9b1a1ae9b528 mm/mempolicy.c: do not put mempolicy before using its nodemask 6676aa65464f mm/huge_memory.c: respect FOLL_FORCE/FOLL_COW for thp a2104c7cd3b2 drm/atomic: clear out fence when duplicating state bbae3c452596 Revert "drm/radeon: always apply pci shutdown callbacks" 5270c017f19f drm/vc4: fix a bounds check cfba2a001d0e drm/vc4: Return -EINVAL on the overflow checks failing. b9edac54cb85 drm/vc4: Fix an integer overflow in temporary allocation layout. 32600835ebe1 drm/vc4: Fix memory leak of the CRTC state. 4c741e2adb35 drm/i915: Ignore bogus plane coordinates on SKL when the plane is not visible f1dc9aaee029 drm: Fix broken VT switch with video=1366x768 option 2abb7f408f7c drm: Schedule the output_poll_work with 1s delay if we have delayed event e4be4d4942b9 tile/ptrace: Preserve previous registers for short regset write 544160b6ea18 fbdev: color map copying bounds checking Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19kernel-yocto.bbclass: ensure repatching when HEAD is checked outAwais Belal2
In some cases it is seen that kernel_checkout and validate_branches are run again in simultaneous builds. During do_patch the kgit-s2q mechanism looks for a sentinel file inside the .git directory, finds a fence post and starts picking up patches after that. This can create trouble as validate_branches checks out the HEAD of the branch and so the patches should be reapplied rather than skipped due to finding of the fence post. We can call kgit-s2q --clean to remove the sentinel file when the branches are checked out. Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15wic: direct: move creation of PartitionedImage to __init__Ed Bartosh1
Moved creation of PartitionedImage object from DirectPlugin.create method to init. It makes the code a bit more readable and logical. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: move generation of part.realnum to PartitionedImageEd Bartosh1
Moved the code that generates real partition numbers from DirectPlugin to PartitionedImage. The idea is to have all code that works with partitions in PartitionedImage class. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: add PartitionedImage.prepare methodEd Bartosh1
Moved code that calls prepare method of Partition objects from DirectPlugin to PartitionedImage.prepare. The idea is to have all code that works with partitions in PartitionedImage class. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: set bootloader.source in the __init__Ed Bartosh1
Moved setting of bootloader source from do_create method to __init__ as it doesn't have anything to do with image creation. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: move UUID generation to PartitionedImageEd Bartosh1
Moved code that generates partition UUIDs from DirectPlugin to PartitionedImage class as it's more logical to have it there. This allows the code to be reused by other imager plugins. Got rid of having yet another list of partitions in PartitionedImage. Reused the list passed from DirectPlugin. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: add 'realnum' attribute to partitionEd Bartosh1
Replaced call of _get_part_num method with an attribute. This eliminates the need to call the method and loop over partitions every time we need to know realnum for partition. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: remove useless codeEd Bartosh1
Removed catching CreatorError and raising it again. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: don't catch ImagerErrorEd Bartosh1
Don't transform ImagerError exception into warning. Let wic to catch it on the upper level. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: direct: remove set_bootimg_dir setterEd Bartosh3
Removed java-like setter set_bootimg_dir. It's more pythonic to access public attributes directly. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: ksparser: set default disk to 'sda'Ed Bartosh1
Set default value of --ondisk to 'sda' to ensure we always have disk name for the partition. This is a first step of replacing --ondisk with disk <name> attribute of .wks. This is better as all partitions share the same disk. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: remove utils/oe/__init__.pyEd Bartosh1
This file and utils/oe folder are not needed anymore as all modules were removed or moved out of this directory. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-02-15wic: move PartitionedImage class to direct.pyEd Bartosh2
As PartitionedImage is only used in direct.py it makes sense to move it there. It's easier to maintain (and refactor) it this way. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>