Commit Graph

44411 Commits

Author SHA1 Message Date
Richard Purdie 701ae7d1f4 bitbake: doc: Replace depexp UI with taskexp and cleanup UI lists
The depexp UI has been replaced with taskexp, also remove old
references to goggle and hob.

(Bitbake rev: 814c2b232ea5f88b5ad5031fb9d389c9c594aa01)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:28:46 -08:00
Richard Purdie 6a531c8b33 bitbake: ui: Replace depexp with taskexp
The data displayed by the depexp UI is buggy, bitbake can't convey
accurate runtime dependency information.

Convert the UI to become taskexp ("Task Explorer") which provides
a graphical way of exploring the task-depends.dot file. This data
is accurate and being able to visualise the data is an often requested
feature as standard dot file viewers can't usualy cope.

(Bitbake rev: 416a496edc692982af2feec768ac4df8fb799853)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:28:46 -08:00
Richard Purdie 0bc0e9801b wget: Upgrade 1.19 -> 1.19.1
This fixes musl build issues and avoids autobuilder failures.

(From OE-Core rev: 3a31d04b49efdc4d899d7da9f16e1899256f497d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Patrick Ohly bcb24c013d rootfspostcommands: remove shadow backup files instead of trying to sort
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]

(From OE-Core rev: e5628c80a52f3caeea9d9dc7f67d1b8a61222aef)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 2a6323d300 linux-yocto-rt/4.9: update to 4.9-rt6
Updating the SRCREVs to make Paul Gortmaker's port of 4.9-rt6 active.

(From OE-Core rev: b3e3ef85f5fd64473cae4aa72243665ac1e618e9)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 9b77a677a0 kernel-yocto: trivial: remove extra } from bsp_definition
A typo introduced an extra } in the logging of the bsp_definition.
While this won't cause problems .. it needs to be fixed!

(From OE-Core rev: 9b95f3fca2a94ca922e05321096e07a11e98f9bb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield c57ccdcb5b linux-yocto/4.4: meta/configuration updates
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>

(From OE-Core rev: e853327447908d1be085a96f8dda1c53305f9552)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 98f7fbfd6c linux-yocto/4.9: update to v4.9.9
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

(From OE-Core rev: e1866b78d8365855583250877db7f11f98de65df)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 005bc03aed linux-yocto-dev: bump to v4.10+
(From OE-Core rev: fe6a071babf542f3cdbbce618c70cb256bf364e8)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield b327597104 linux-yocto/4.8/4.9: fix tpm.cfg and add dm-verity
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

(From OE-Core rev: 7fc93859ce805a604814b1b373d77ecc547e812f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 3c3cba24bd linux-yocto/4.9: 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.

(From OE-Core rev: bf822184419592bb680fa6886c0d18f105857f0e)

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-19 06:16:58 -08:00
Bruce Ashfield 315e8835ec linux-yocto-rt/4.9: integrate 4.9-rt4
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

(From OE-Core rev: c1fd9a544d2165c0f3d827d3ad3c90f9c7781f09)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield eccbb9a670 linux-yocto/4.8: update to v4.8.18
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

(From OE-Core rev: 1a3daa89e28d58d35692cd2ae2af3e49c9f536fb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Bruce Ashfield 92ee540257 linux-yocto/4.9: bump to v4.9.8
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

(From OE-Core rev: 83722e881167e3b6414a9a83056f7a25ee23ae91)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-19 06:16:58 -08:00
Awais Belal 35a79cc495 kernel-yocto.bbclass: ensure repatching when HEAD is checked out
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.

(From OE-Core rev: d57aeafdd2b49010a9fa6d1cd9d10f3cfd5754a5)

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-19 06:16:57 -08:00
Juro Bystricky e98757e267 bitbake: cooker.py: run sanity checks for multiconfig
Also run sanity check for all additional multiconfig configurations
as listed in BBMULTICONFIG, not just the "default" configuration.

[YOCTO#10810]

(Bitbake rev: b9777374cbe63cdcf80767033f628c26d23e90f9)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
Sujith H d4b5a70831 bitbake: bitbake: toaster: add wic.bmap support to toaster
Add wic.bmap file extension support for toaster

(Bitbake rev: 6a3f6f1b5cc9ec69b28bebf70daed7579c60cd9e)

Signed-off-by: Sujith H <sujith.h@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
brian avery 9bc41e1e8d bitbake: toaster: remove cut and paste cruft
There was a superfluous section in toaster start/stop script that was
setting the TOASTER_DIR and had a set of comments around that setting.
This was done in two places and only the last one was effective. This
patch removes the spurious section to make it clearer what was
happening and what TOASTER_DIR was actually getting set to.

(Bitbake rev: e551e73a094f5a1937bce78de9e41908bf3e07c3)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
brian avery f43d97af94 bitbake: toaster: move sqlite database to TOASTER_DIR
The toaster.sqlite database was located in TOASTER_DIR/build.  This
meant that if you named your build directory something else (like cow),
Toaster would fail to make/find the database.  TOASTER_DIR is on the
whitelist unlike BUILDDIR and we need to be able to write there anyway
given our current layout so this should not disrupt anything.

[YOCTO #9992]

(Bitbake rev: 2c48168a86309c0cf2be793e7409a78ba21fca14)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
brian avery 3b7ab16bf8 bitbake: toaster: remove cut and paste cruft
There was a superfluous section in toaster start/stop script that was
setting the TOASTER_DIR and had a set of comments around that setting.
This was done in two places and only the last one was effective. This
patch removes the spurious section to make it clearer what was
happening and what TOASTER_DIR was actually getting set to.

(Bitbake rev: 1f0eac0a172a4fbe1799675f2c3ce989743bd862)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
Richard Purdie f0d5eb39c3 bitbake: lib: Drop now unneeded update_data calls
Now that the datastore works dynamically we don't need the update_data calls
so we can just remove them. They're not actually done anything at all for
a while.

(Bitbake rev: 2300beb50333bb620013b058a7309e7f2042101d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:08:15 -08:00
Ed Bartosh 01b9ab89de wic: direct: move creation of PartitionedImage to __init__
Moved creation of PartitionedImage object from DirectPlugin.create
method to init. It makes the code a bit more readable and logical.

(From OE-Core rev: 9f225ef5620f2e47e762b2fd16fa5f8d6f1f60fd)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 924e84ea8d wic: direct: move generation of part.realnum to PartitionedImage
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.

(From OE-Core rev: dbd58b0b32288821d9dd5d1a3118cf7c6e8f098a)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 32e2d92913 wic: direct: add PartitionedImage.prepare method
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.

(From OE-Core rev: 700aa424f0aa239cf4149eed4bfb1dc7d9677431)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 01d37e7537 wic: direct: set bootloader.source in the __init__
Moved setting of bootloader source from do_create method
to __init__ as it doesn't have anything to do with image
creation.

(From OE-Core rev: 361b890da1c7b24de0a62516545e4c164830081d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 58528cd5a7 wic: direct: move UUID generation to PartitionedImage
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.

(From OE-Core rev: 20c70dd617d4abfff507e210610a58a9989f7c9b)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh d5f42cad0c wic: direct: add 'realnum' attribute to partition
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.

(From OE-Core rev: 96a26b6ddf22346dafa06b00816579439e98445f)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 77dc8e6ef3 wic: direct: remove useless code
Removed catching CreatorError and raising it again.

(From OE-Core rev: c17353c8ec9ecb52368e08dad999aafc9ac1b734)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 870171a205 wic: direct: don't catch ImagerError
Don't transform ImagerError exception into warning.
Let wic to catch it on the upper level.

(From OE-Core rev: 0cc84c81dd4a776aa37c8d1bcdcc3fa3af78d1e4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 417e5fbe2b wic: direct: remove set_bootimg_dir setter
Removed java-like setter set_bootimg_dir. It's more pythonic
to access public attributes directly.

(From OE-Core rev: c2a6ca4883ea59e6492ad3b4aa0e9bc358b87fed)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 6d91c5f6f4 wic: ksparser: set default disk to 'sda'
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.

(From OE-Core rev: caa243a86ba50c676f8eb0a71440885a49f10cc4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh 93906fb830 wic: remove utils/oe/__init__.py
This file and utils/oe folder are not needed anymore as
all modules were removed or moved out of this directory.

(From OE-Core rev: e3b73b1c07620cde423cc7db7e2f7d8b1ad25e25)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:45 -08:00
Ed Bartosh cdcc6e2753 wic: move PartitionedImage class to direct.py
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.

(From OE-Core rev: 2550622371f5c50857e5d58eabab01a1823c6fc3)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh adf5e2956c wic: move disk operations to PartitionImage class
Disk operations were spread over DirectPlugin, DiskImage and Image
code making the code hard to understand.

Renamed Image class to PartitionedImage.
Removed DiskImage class.
Moved disk operations to PartitionedImage.

There was an implicit support for multiple disks: if different devices
were specified in .wks file (e.g. --ondisk sda and --ondisk sdb), wic
would theoretically generate multiple images. This is quite confusing
option and the code supporting it was broken for a long time. The same
effect (multiple output images) can be achieved in obvious and clear
way - by using multiple .wks files.

This functionality was removed. PartitionedImage works only with
one image. This makes the code less complex and easier to maintain.

(From OE-Core rev: 4dc9dbfc7fbc16d349a019e8973d50905cd28244)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Kristian Amlie 47ee6c2153 selftest/wic: Add tests for --exclude-dir option.
Based partially on an earlier patch by Maciej Borzecki.

Note that because tools now reside in recipe specific sysroots, we
need to import the path from bitbake and apply it during the test.

(From OE-Core rev: c826233ad08ee5a4b9943a05d4e73f3fb3281588)

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Kristian Amlie f6a064d969 wic: Add --exclude-path option to rootfs source plugin.
It will omit the given path from the resulting partition, and if the
given path ends in a slash, it will only delete the content, and keep
the directory.

Since mkfs only accepts whole directories as input, we need to copy
the rootfs directory to the workdir so that we can selectively delete
files from it.

Since we want to use the copyhardlinktree() function, we need to put
the generic oe lib in the module search path.

(From OE-Core rev: 6602392db3d391d926dead49fcc54326015cfe35)

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 7cb17e3e9e wic: remove unused argument scripts_path
There is no need to pass scripts_path from main wic module
down the stack as it's not used there.

Removed scripts_path argument from DirectPlugin class
and wic_create function.

(From OE-Core rev: f9f72c506befdff13260f37ded0beaea3aa30fad)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 74aee7a1a7 wic: direct: remove unused import
Removed unused import of wic.errors module.

(From OE-Core rev: 318ba1edfcf0cacf6adae7e1af625dcb43ec3881)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 348c9c50c1 wic: direct: remove unused plugin attributes
Removed unused _disks, _disk_format and _disk_names
attributes from DirectPlugin class.

(From OE-Core rev: 178df49cf1674bfcf1cb7295d0494c3b23929d22)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh a9be5de4a1 wic: make sure layout_partitions is called once
Removed artificial _partitions_layed_out attribute and
unneeded call of layout_partitions method.

(From OE-Core rev: 702772edc839c220140ac0572bb14b4e44c81c1c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh fd1f6fb201 wic: use the same partition object in direct and partitionedfs
Partition attributes were copied to the dictionary in partitionedfs
code, which makes the code hard to follow.

Used partition object passed from direct.py module as is in
partitionedfs.

(From OE-Core rev: 97db24d34847a641868f9ee83aae56f9dd5e0a8a)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 4edcd63ba1 wic: direct: get rid of _get_parts getter
Replaced _get_parts getter with direct attribute
access to self.parts

Removed code that implicitly created partition
if there are no partitions mentioned in .wks file

(From OE-Core rev: 7ece57a80f4002d0d83dc322092e9178380ab509)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 6355150674 wic: partitionedfs: rename __create_partition and __add_disk
Renamed private methods with leading double underscores:
__create_partition -> _create_partition
__add_disk -> _add_disk

There is no point to have those names mangled, one underscore
is enough.

(From OE-Core rev: 26f3218070d34ccd4e81fa3b8e1a15c03583d070)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh 86e190a614 wic: partitionedfs: get rid of __add_partition
3 lines long private method __add_partition is called only
from add_partition method. Merged them together to increase
readability.

(From OE-Core rev: b7fb20fffada61211dda6d41f99407618428f23c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ed Bartosh b8354df789 wic: partitionedfs: merged __format_disks and create
Private method __format_disks is called only from create
method making the code less readable. Merged the code
into one method.

(From OE-Core rev: b76b1bd404487df38fd99bc0d0e6a59acb10c9d3)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Ross Burton 03648d3d04 m4: use wildcard for selftest bbappend
(From OE-Core rev: 8b62ac7e1de9e76e5fde9f741da8c224384298ad)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Li Zhou 1b2857a781 bash: fix CVE-2016-9401
popd in bash might allow local users to bypass the restricted shell
and cause a use-after-free via a crafted address.

Porting patch from <https://ftp.gnu.org/pub/gnu/bash/bash-4.4-patches/
bash44-006> to solve CVE-2016-9401.

(From OE-Core rev: 6987b317d5ce8dc50a37ebba395aa8424bec358c)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Jussi Kukkonen 70907e352e libxslt: Add build fix (with ld-is-gold)
Libraries must be linked with "-lm", otherwise gold fails to link
binaries with those libraries.

(From OE-Core rev: 9175164380b50852a21a05d4e81294394c5486f4)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Andrej Valek 18951ec67d lighttpd: Upgrade 1.4.43 -> 1.4.45
(From OE-Core rev: 94fc70a60a26c1bc402e0e410ab1992d3d9effb4)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-15 20:06:44 -08:00
Robert Yang a06e298de8 m4: 1.4.17 -> 1.4.18
Rebased remove-gets.patch.

(From OE-Core rev: d87a41d2dc611259989cb1252c34d0c6ef802971)

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-15 20:06:43 -08:00