[yocto] Reminder: Yocto Project Technical Team Meeting - Tuesday, Jan. 3, 2017 8:00 AM US Pacific Time

2017-01-02 Thread Jolley, Stephen K
Tuesday, Jan. 3, 2017 8:00 AM US Pacific Time



Agenda:



* Opens collection - 5 min (Stephen)

* Yocto Project status - 5 min (Stephen/team)

https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.3_Status

https://wiki.yoctoproject.org/wiki/Yocto_2.3_Schedule

https://wiki.yoctoproject.org/wiki/Yocto_2.3_Features

* Opens - 10 min

* Team Sharing - 10 min



We encourage people attending the meeting to logon the Yocto Project IRC 
chancel during the meeting (optional):



Yocto IRC: http://webchat.freenode.net/?channels=#yocto

IRC Tutorial: http://www.irchelp.org/irchelp/irctutorial.html



Conference Details:

Company:   WIND RIVER SYS

Ready-Access Number: 8007302996/9139049836

Access Code: 2705751


For International numbers see: 
https://www.yoctoproject.org/tools-resources/community/monthly-technical-call


Thanks,

Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
*   Work Telephone:(503) 712-0534
*Cell:   (208) 244-4460
* Email:stephen.k.jol...@intel.com

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH 1/1] linux-raspberrypi: support configuration fragments / in-tree defconfig

2017-01-02 Thread Piotr Lewicki
From: Alex J Lennon 

Resending a patch by Alex J Lennon
(https://lists.yoctoproject.org/pipermail/yocto/2015-October/027034.html).

Signed-off-by: Piotr Lewicki 
---
 recipes-kernel/linux/linux-raspberrypi.inc   | 12 
 recipes-kernel/linux/linux-raspberrypi/defconfig |  1 -
 recipes-kernel/linux/linux-rpi.inc   |  6 +++---
 3 files changed, 7 insertions(+), 12 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-raspberrypi/defconfig

diff --git a/recipes-kernel/linux/linux-raspberrypi.inc 
b/recipes-kernel/linux/linux-raspberrypi.inc
index 98229d9..ba2cf06 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -6,10 +6,6 @@ SECTION = "kernel"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
-SRC_URI += " \
-file://defconfig \
-"
-
 COMPATIBLE_MACHINE = "raspberrypi"
 
 PE = "1"
@@ -18,6 +14,10 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 # NOTE: For now we pull in the default config from the RPi kernel GIT tree.
 KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
 KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
+KMACHINE ?= "${MACHINE}"
+KCONFIG_MODE = "--alldefconfig"
+KBUILD_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
+KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
 
 # CMDLINE for raspberrypi
 CMDLINE = "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 
rootfstype=ext4 rootwait"
@@ -37,10 +37,6 @@ python __anonymous () {
 d.setVar("KERNEL_DEVICETREE", kerneldt)
 }
 
-do_kernel_configme_prepend() {
-install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} 
${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / 
${KERNEL_DEFCONFIG} available."
-}
-
 do_install_prepend() {
 install -d ${D}/lib/firmware
 }
diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig 
b/recipes-kernel/linux/linux-raspberrypi/defconfig
deleted file mode 100644
index ecbf32c..000
--- a/recipes-kernel/linux/linux-raspberrypi/defconfig
+++ /dev/null
@@ -1 +0,0 @@
-# Dummy file to get through do_kernel_configme.
diff --git a/recipes-kernel/linux/linux-rpi.inc 
b/recipes-kernel/linux/linux-rpi.inc
index 53383b0..ba47e31 100644
--- a/recipes-kernel/linux/linux-rpi.inc
+++ b/recipes-kernel/linux/linux-rpi.inc
@@ -35,8 +35,7 @@ kernel_configure_variable() {
 }
 
 do_configure_prepend() {
-# Clean .config
-echo "" > ${B}/.config
+mv -f ${B}/.config ${B}/.config.patched
 CONF_SED_SCRIPT=""
 
 # oabi / eabi support
@@ -123,7 +122,8 @@ do_configure_prepend() {
 
 # Keep this the last line
 # Remove all modified configs and add the rest to .config
-sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
+sed -e "${CONF_SED_SCRIPT}" < '${B}/.config.patched' >> '${B}/.config'
+rm -f ${B}/.config.patched
 
 yes '' | oe_runmake oldconfig
 }
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH 0/1] support of kernel config fragments

2017-01-02 Thread Piotr Lewicki
Resending a patch by Alex J Lennon
(https://lists.yoctoproject.org/pipermail/yocto/2015-October/027034.html).

Applied manually to the newest revision.

Alex J Lennon (1):
  linux-raspberrypi: support configuration fragments / in-tree defconfig

 recipes-kernel/linux/linux-raspberrypi.inc   | 12 
 recipes-kernel/linux/linux-raspberrypi/defconfig |  1 -
 recipes-kernel/linux/linux-rpi.inc   |  6 +++---
 3 files changed, 7 insertions(+), 12 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-raspberrypi/defconfig

-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH 1/1] linux-rpi: clean .config in before do_configure step

2017-01-02 Thread Piotr Lewicki

On 30.12.2016 14:20, Andrei Gherzan wrote:

On Fri, Dec 30, 2016 at 08:20:00AM +0100, Piotr Lewicki wrote:

On 29.12.2016 19:20, Andrei Gherzan wrote:

On Fri, Dec 16, 2016 at 08:58:22AM -0800, Khem Raj wrote:

On Dec 15, 2016, at 2:05 AM, Piotr Lewicki  wrote:

Signed-off-by: Piotr Lewicki 
---
recipes-kernel/linux/linux-rpi.inc | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-rpi.inc 
b/recipes-kernel/linux/linux-rpi.inc
index 95a9530..c665b9f 100644
--- a/recipes-kernel/linux/linux-rpi.inc
+++ b/recipes-kernel/linux/linux-rpi.inc
@@ -34,11 +34,13 @@ kernel_configure_variable() {
  fi
}

-do_configure_prepend() {
+do_rpi_kconfig_clean() {
  # Clean .config
-echo "" > ${B}/.config
+echo -n "" > ${B}/.config
  CONF_SED_SCRIPT=""
+}

+do_configure_prepend() {
  # oabi / eabi support
  kernel_configure_variable AEABI y
  if [ "${ARM_KEEP_OABI}" = "1" ] ; then
@@ -124,8 +126,11 @@ do_configure_prepend() {
  # Keep this the last line
  # Remove all modified configs and add the rest to .config
  sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
+# Clean variable- useful when calling configure step multiple times
+CONF_SED_SCRIPT=""

  yes '' | oe_runmake oldconfig
+
}

# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
@@ -146,3 +151,5 @@ python () {

  configfile.close()
}
+
+addtask rpi_kconfig_clean before do_configure after do_populate_lic

we should investigate the kernel tooling from OE-Core and use that IMO

I'm all for this. We should get rid of this and unify with oe-core
tooling.

@Piotr Would you like to work on this and remove completely this while
reworking on the kernel fragments configuration support? I'll take a
look on the old patches too.

@Andrei: I'll try to do this.

That would be very helpful. This one of my top things to change in this
layer.
I'm wondering if this make sense to rewrite linux-rpi.inc file so that 
it uses config fragments.
If we only apply the old patch from Alex J Lennon ("linux-raspberrypi: 
support configuration fragments / in-tree defconfig") than kernel config 
fragments (using .cfg files with kernel configs) can be used with 
linux-raspberrypi (tested).


All of the kernel configs that are set in "linux-rpi.inc" file (e.g. VC4 
related config flags if one has VC4 support) should be applied even if 
somebody sets some other value in config fragment file.


If we only use Alex's patch then we first apply all of the config 
fragments and then if needed - overwrite them with options necessary by 
the rpi machine.


I'm resending Alex's patch either way for easier applying.


--
Andrei Gherzan

--
Piotr Lewicki
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH 2/3] linux-raspberrypi: Drop v4.1

2017-01-02 Thread Paul Barker
The linux-raspberrypi 4.1 recipe has been broken for a while, probably since
09b76a43f6f6852406de385a45f472c52b6a8571. It should now be safe to drop this
version.

Signed-off-by: Paul Barker 
---
 .../0001-dts-add-overlay-for-pitft22.patch | 110 -
 ...ove-unused-sm_cache_map_vector-definition.patch |  31 --
 .../linux-raspberrypi-4.1/0003-fix-gcc6.patch  |  78 ---
 recipes-kernel/linux/linux-raspberrypi_4.1.bb  |  12 ---
 4 files changed, 231 deletions(-)
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0001-dts-add-overlay-for-pitft22.patch
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0002-vmcs-Remove-unused-sm_cache_map_vector-definition.patch
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0003-fix-gcc6.patch
 delete mode 100644 recipes-kernel/linux/linux-raspberrypi_4.1.bb

diff --git 
a/recipes-kernel/linux/linux-raspberrypi-4.1/0001-dts-add-overlay-for-pitft22.patch
 
b/recipes-kernel/linux/linux-raspberrypi-4.1/0001-dts-add-overlay-for-pitft22.patch
deleted file mode 100644
index e6e0a84..000
--- 
a/recipes-kernel/linux/linux-raspberrypi-4.1/0001-dts-add-overlay-for-pitft22.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-From a28bd410022b32a64e208f04b45add6326990332 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petter=20Mab=C3=A4cker?= 
-Date: Fri, 8 Jan 2016 09:02:44 +0100
-Subject: [PATCH] dts: add overlay for pitft22
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Upstream-Status: Pending
-
-Add the pitft22 overlay from adafruit Adafruit-Pi-Kernel-o-Matic repo:
-https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic
-
-Signed-off-by: Petter Mabäcker 

- arch/arm/boot/dts/overlays/Makefile|  1 +
- arch/arm/boot/dts/overlays/pitft22-overlay.dts | 69 ++
- 2 files changed, 70 insertions(+)
- create mode 100755 arch/arm/boot/dts/overlays/pitft22-overlay.dts
-
-diff --git a/arch/arm/boot/dts/overlays/Makefile 
b/arch/arm/boot/dts/overlays/Makefile
-index 1a60e9c..a2535a2 100644
 a/arch/arm/boot/dts/overlays/Makefile
-+++ b/arch/arm/boot/dts/overlays/Makefile
-@@ -37,6 +37,7 @@ dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += piscreen2r-overlay.dtb
-+dtb-$(RPI_DT_OVERLAYS) += pitft22-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += pitft28-capacitive-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb
- dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
-diff --git a/arch/arm/boot/dts/overlays/pitft22-overlay.dts 
b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
-new file mode 100755
-index 000..894ba22
 /dev/null
-+++ b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
-@@ -0,0 +1,69 @@
-+/*
-+ * Device Tree overlay for pitft by Adafruit
-+ *
-+ */
-+
-+/dts-v1/;
-+/plugin/;
-+
-+/ {
-+compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
-+
-+fragment@0 {
-+target = <&spi0>;
-+__overlay__ {
-+status = "okay";
-+
-+spidev@0{
-+status = "disabled";
-+};
-+
-+spidev@1{
-+status = "disabled";
-+};
-+};
-+};
-+
-+fragment@1 {
-+target = <&gpio>;
-+__overlay__ {
-+pitft_pins: pitft_pins {
-+brcm,pins = <25>;
-+brcm,function = <1>; /* out */
-+brcm,pull = <0>; /* none */
-+};
-+};
-+};
-+
-+fragment@2 {
-+target = <&spi0>;
-+__overlay__ {
-+/* needed to avoid dtc warning */
-+#address-cells = <1>;
-+#size-cells = <0>;
-+
-+pitft: pitft@0{
-+compatible = "ilitek,ili9340";
-+reg = <0>;
-+pinctrl-names = "default";
-+pinctrl-0 = <&pitft_pins>;
-+
-+spi-max-frequency = <3200>;
-+rotate = <90>;
-+fps = <25>;
-+bgr;
-+buswidth = <8>;
-+dc-gpios = <&gpio 25 0>;
-+debug = <0>;
-+};
-+
-+};
-+};
-+
-+__overrides__ {
-+speed =   <&pitft>,"spi-max-frequency:0";
-+rotate =  <&pitft>,"rotate:0";
-+fps = <&pitft>,"fps:0";
-+debug =   <&pitft>,"debug

[yocto] [meta-raspberrypi][PATCH 3/3] linux-raspberrypi: Upgrade to v4.4.39

2017-01-02 Thread Paul Barker
Signed-off-by: Paul Barker 
---
 recipes-kernel/linux/linux-raspberrypi_4.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-raspberrypi_4.4.bb 
b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
index 35a72d7..3317c02 100644
--- a/recipes-kernel/linux/linux-raspberrypi_4.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
@@ -1,8 +1,8 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
 
-LINUX_VERSION ?= "4.4.35"
+LINUX_VERSION ?= "4.4.39"
 
-SRCREV = "5d765c8b5782de7ed49f623c107f1b395429b560"
+SRCREV = "5e46914b3417fe9ff42546dcacd0f41f9a0fb172"
 SRC_URI = 
"git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
file://0001-fix-dtbo-rules.patch \
 "
-- 
2.1.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH 1/3] Remove True option to getVar calls

2017-01-02 Thread Paul Barker
getVar() now defaults to expanding by default.

Signed-off-by: Paul Barker 
---
 classes/linux-raspberrypi-base.bbclass | 4 ++--
 recipes-kernel/linux/linux-raspberrypi.inc | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/classes/linux-raspberrypi-base.bbclass 
b/classes/linux-raspberrypi-base.bbclass
index dc2330a..e925d4e 100644
--- a/classes/linux-raspberrypi-base.bbclass
+++ b/classes/linux-raspberrypi-base.bbclass
@@ -3,8 +3,8 @@ inherit linux-kernel-base
 def get_dts(d, ver=None):
 import re
 
-staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR", True)
-dts = d.getVar("KERNEL_DEVICETREE", True)
+staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR")
+dts = d.getVar("KERNEL_DEVICETREE")
 
 # d.getVar() might return 'None' as a normal string
 # leading to 'is None' check isn't enough.
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc 
b/recipes-kernel/linux/linux-raspberrypi.inc
index 98229d9..19ebefb 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -32,8 +32,8 @@ KERNEL_MODULE_AUTOLOAD += 
"${@bb.utils.contains("MACHINE_FEATURES", "pitft28r",
 # Set programmatically some variables during recipe parsing
 # See 
http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
 python __anonymous () {
-kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
-kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True))
+kerneltype = d.getVar('KERNEL_IMAGETYPE')
+kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
 d.setVar("KERNEL_DEVICETREE", kerneldt)
 }
 
-- 
2.1.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH 0/3] Kernel update and getVar cleanup

2017-01-02 Thread Paul Barker
These patches have been boot tested for both raspberrypi and raspberrypi3.

The first patch in the series probably breaks things for the morty branch. I'm
also proposing we drop support for linux-raspberrypi v4.1 as it's currently
broken on master. We should create a morty branch for meta-raspberrypi before
applying these patches.

Any objections to dropping linux-raspberrypi v4.1 or making a morty branch at
this point?

Paul Barker (3):
  Remove True option to getVar calls
  linux-raspberrypi: Drop v4.1
  linux-raspberrypi: Upgrade to v4.4.39

 classes/linux-raspberrypi-base.bbclass |   4 +-
 .../0001-dts-add-overlay-for-pitft22.patch | 110 -
 ...ove-unused-sm_cache_map_vector-definition.patch |  31 --
 .../linux-raspberrypi-4.1/0003-fix-gcc6.patch  |  78 ---
 recipes-kernel/linux/linux-raspberrypi.inc |   4 +-
 recipes-kernel/linux/linux-raspberrypi_4.1.bb  |  12 ---
 recipes-kernel/linux/linux-raspberrypi_4.4.bb  |   4 +-
 7 files changed, 6 insertions(+), 237 deletions(-)
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0001-dts-add-overlay-for-pitft22.patch
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0002-vmcs-Remove-unused-sm_cache_map_vector-definition.patch
 delete mode 100644 
recipes-kernel/linux/linux-raspberrypi-4.1/0003-fix-gcc6.patch
 delete mode 100644 recipes-kernel/linux/linux-raspberrypi_4.1.bb

-- 
2.1.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto