Re: [yocto] [meta-raspberrypi][PATCH 1/3] linux-firmware: Replace /lib with ${nonarch_base_libdir}

2017-10-25 Thread Paul Barker
On Wed, Oct 25, 2017 at 6:43 AM, Michael Gloff  wrote:
> From: Michael Gloff 
>
> Use standard variable name and avoid
> QA errors when usermerge DISTRO_FEATURE is enabled.
>
> Signed-off-by: Michael Gloff 
> ---
>  recipes-kernel/linux-firmware/linux-firmware_%.bbappend | 8 
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend 
> b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> index 565b735..daf1dbc 100644
> --- a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> +++ b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> @@ -10,17 +10,17 @@ do_install_append() {
> # (v7.45.41.46)
> local _firmware="brcmfmac43430-sdio.bin"
> local _oldmd5=9258986488eca9fe5343b0d6fe040f8e
> -   if [ "$(md5sum ${D}/lib/firmware/brcm/$_firmware | awk '{print $1}')" 
> != "$_oldmd5" ]; then
> +   if [ "$(md5sum ${D}${nonarch_base_libdir}/firmware/brcm/$_firmware | 
> awk '{print $1}')" != "$_oldmd5" ]; then
> _firmware=""
> bbwarn "linux-firmware stopped providing brcmfmac43430 
> v7.45.41.26."
> else
> _firmware="${WORKDIR}/$_firmware"
> fi
>
> -   mkdir -p ${D}/lib/firmware/brcm
> -   install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt 
> ${D}/lib/firmware/brcm
> +   mkdir -p ${D}/${nonarch_base_libdir}/firmware/brcm
> +   install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt 
> ${D}${nonarch_base_libdir}/firmware/brcm
>  }
>
>  FILES_${PN}-bcm43430 += " \
> -   /lib/firmware/brcm/brcmfmac43430-sdio.txt \
> +   ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \
>  "
> --
> 2.14.3
>

All 3 patches look good at first glace. Could you submit them as a
pull request on https://github.com/agherzan/meta-raspberrypi please?

Thanks,

-- 
Paul Barker
Togán Labs Ltd
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi] Rocko branch maintenance

2017-10-25 Thread Paul Barker
Hi all,

I'd like to put myself forward as stable branch maintainer for
meta-raspberrypi again. The plan is to maintain rocko for 12 months in
line with the Yocto Project's current maintenance period. I'm
currently looking after pyro and I think it's gone well over the last
6 months. Obviously, pyro will also continue to be maintained until
it's around 12 months old.

However, if anyone else wants to help spread the load then feel free
to step forward and propose yourself for rocko branch maintenance.

Cheers,

-- 
Paul Barker
Togán Labs Ltd
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH] devtool: add clean command

2017-10-25 Thread Josef Holzmayr
Add an idiomatic way to devtool to clean a recipe.

Signed-off-by: Josef Holzmayr 
---
 scripts/lib/devtool/clean.py | 48 
 1 file changed, 48 insertions(+)
 create mode 100644 scripts/lib/devtool/clean.py

diff --git a/scripts/lib/devtool/clean.py b/scripts/lib/devtool/clean.py
new file mode 100644
index 000..30f4044
--- /dev/null
+++ b/scripts/lib/devtool/clean.py
@@ -0,0 +1,48 @@
+# Development tool - clean command plugin
+#
+# Copyright (C) 2014-2015 Intel Corporation
+#   2017 R-S-I Elektrotechnik GmbH & Co. KG
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+"""Devtool clean plugin"""
+
+import bb
+from devtool import exec_build_env_command, check_workspace_recipe
+
+def _get_build_tasks(config):
+tasks = config.get('Clean', 'clean_task', 'clean').split(',')
+return ['do_%s' % task.strip() for task in tasks]
+
+def clean(args, config, basepath, workspace):
+"""Entry point for the devtool 'clean' subcommand"""
+
+build_tasks = _get_build_tasks(config)
+try:
+bbargs = []
+for task in build_tasks:
+bbargs.append('%s:%s' % (args.recipename, task))
+exec_build_env_command(config.init_path, basepath, 'bitbake %s' % ' 
'.join(bbargs), watch=True)
+except bb.process.ExecutionError as e:
+# We've already seen the output since watch=True, so just ensure we 
return something to the user
+return e.exitcode
+
+return 0
+
+def register_commands(subparsers, context):
+"""Register devtool subcommands from this plugin"""
+parser_build = subparsers.add_parser('clean', help='Clean a recipe',
+ description='Cleans the specified 
recipe using bitbake',
+ group='working', order=50)
+parser_build.add_argument('recipename', help='Recipe to clean')
+parser_build.set_defaults(func=clean)
-- 
2.7.4


-- 
_
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

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


Re: [yocto] [PATCH] devtool: add clean command

2017-10-25 Thread Leonardo Sandoval



On Wed, Oct 25, 2017 at 7:20 AM, Josef Holzmayr 
 wrote:

Add an idiomatic way to devtool to clean a recipe.


what I can see on the patch,  this does a bitbake -c clean 
, right?




Signed-off-by: Josef Holzmayr 
---
 scripts/lib/devtool/clean.py | 48 


 1 file changed, 48 insertions(+)
 create mode 100644 scripts/lib/devtool/clean.py

diff --git a/scripts/lib/devtool/clean.py 
b/scripts/lib/devtool/clean.py

new file mode 100644
index 000..30f4044
--- /dev/null
+++ b/scripts/lib/devtool/clean.py
@@ -0,0 +1,48 @@
+# Development tool - clean command plugin
+#
+# Copyright (C) 2014-2015 Intel Corporation
+#   2017 R-S-I Elektrotechnik GmbH & Co. KG
+#
+# This program is free software; you can redistribute it and/or 
modify

+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License 
along
+# with this program; if not, write to the Free Software Foundation, 
Inc.,

+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+"""Devtool clean plugin"""
+
+import bb
+from devtool import exec_build_env_command, check_workspace_recipe
+
+def _get_build_tasks(config):
+tasks = config.get('Clean', 'clean_task', 'clean').split(',')
+return ['do_%s' % task.strip() for task in tasks]
+
+def clean(args, config, basepath, workspace):
+"""Entry point for the devtool 'clean' subcommand"""
+
+build_tasks = _get_build_tasks(config)
+try:
+bbargs = []
+for task in build_tasks:
+bbargs.append('%s:%s' % (args.recipename, task))
+exec_build_env_command(config.init_path, basepath, 'bitbake 
%s' % ' '.join(bbargs), watch=True)

+except bb.process.ExecutionError as e:
+# We've already seen the output since watch=True, so just 
ensure we return something to the user

+return e.exitcode
+
+return 0
+
+def register_commands(subparsers, context):
+"""Register devtool subcommands from this plugin"""
+parser_build = subparsers.add_parser('clean', help='Clean a 
recipe',
+ description='Cleans the 
specified recipe using bitbake',

+ group='working', order=50)
+parser_build.add_argument('recipename', help='Recipe to clean')
+parser_build.set_defaults(func=clean)
--
2.7.4


--
_
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschftsfhrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

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


Re: [yocto] [PATCH] devtool: add clean command

2017-10-25 Thread Josef Holzmayr

Hi!

On 25.10.2017 16:20, Leonardo Sandoval wrote:



On Wed, Oct 25, 2017 at 7:20 AM, Josef Holzmayr 
 wrote:
Add an idiomatic way to devtool to clean a recipe. 


what I can see on the patch,  this does a bitbake -c clean , 
right?




In a nutshell and by default, yes. It sticks to the configurability that 
was already there in the build command, but in the end thats what it is 
meant to do in the vast majority of cases. The motivation is just that 
when using an eSDK, you don't have direct access to bitbake for 
triggering that task - which in turn is helpful in some application 
development situations,


Greetz
--
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

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


Re: [yocto] [meta-raspberrypi] Rocko branch maintenance

2017-10-25 Thread Khem Raj
On Wed, Oct 25, 2017 at 1:50 AM, Paul Barker  wrote:
> Hi all,
>
> I'd like to put myself forward as stable branch maintainer for
> meta-raspberrypi again. The plan is to maintain rocko for 12 months in
> line with the Yocto Project's current maintenance period. I'm
> currently looking after pyro and I think it's gone well over the last
> 6 months. Obviously, pyro will also continue to be maintained until
> it's around 12 months old.
>
> However, if anyone else wants to help spread the load then feel free
> to step forward and propose yourself for rocko branch maintenance.
>

you are volunteered :)
good luck

> Cheers,
>
> --
> Paul Barker
> Togán Labs Ltd
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH] devtool: add clean command

2017-10-25 Thread Paul Eggleton
Hi Josef,

Looks good, just a couple of minor tweaks to be made:

On Thursday, 26 October 2017 1:20:39 AM NZDT Josef Holzmayr wrote:
> Add an idiomatic way to devtool to clean a recipe.

It would be worth noting that this is particularly important within the eSDK 
because you can't run bitbake -c clean directly there.

> Signed-off-by: Josef Holzmayr 
> ---
>  scripts/lib/devtool/clean.py | 48 +
+++
>  1 file changed, 48 insertions(+)
>  create mode 100644 scripts/lib/devtool/clean.py
> 
> diff --git a/scripts/lib/devtool/clean.py b/scripts/lib/devtool/clean.py
> new file mode 100644
> index 000..30f4044
> --- /dev/null
> +++ b/scripts/lib/devtool/clean.py
> @@ -0,0 +1,48 @@
> +# Development tool - clean command plugin
> +#
> +# Copyright (C) 2014-2015 Intel Corporation
> +#   2017 R-S-I Elektrotechnik GmbH & Co. KG
> +#
> +# This program is free software; you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License version 2 as
> +# published by the Free Software Foundation.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License along
> +# with this program; if not, write to the Free Software Foundation, Inc.,
> +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> +"""Devtool clean plugin"""
> +
> +import bb
> +from devtool import exec_build_env_command, check_workspace_recipe
> +
> +def _get_build_tasks(config):

This function should really be called "_get_clean_tasks".

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [PATCH] devtool: add clean command

2017-10-25 Thread Paul Eggleton
On Thursday, 26 October 2017 11:51:07 AM NZDT Paul Eggleton wrote:
> Hi Josef,
> 
> Looks good, just a couple of minor tweaks to be made:
> 
> On Thursday, 26 October 2017 1:20:39 AM NZDT Josef Holzmayr wrote:
> > Add an idiomatic way to devtool to clean a recipe.
> 
> It would be worth noting that this is particularly important within the eSDK 
> because you can't run bitbake -c clean directly there.
> 
> > Signed-off-by: Josef Holzmayr 
> > ---
> >  scripts/lib/devtool/clean.py | 48 +++
++
> +++
> >  1 file changed, 48 insertions(+)
> >  create mode 100644 scripts/lib/devtool/clean.py
> > 
> > diff --git a/scripts/lib/devtool/clean.py b/scripts/lib/devtool/clean.py
> > new file mode 100644
> > index 000..30f4044
> > --- /dev/null
> > +++ b/scripts/lib/devtool/clean.py
> > @@ -0,0 +1,48 @@
> > +# Development tool - clean command plugin
> > +#
> > +# Copyright (C) 2014-2015 Intel Corporation
> > +#   2017 R-S-I Elektrotechnik GmbH & Co. KG
> > +#
> > +# This program is free software; you can redistribute it and/or modify
> > +# it under the terms of the GNU General Public License version 2 as
> > +# published by the Free Software Foundation.
> > +#
> > +# This program is distributed in the hope that it will be useful,
> > +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> > +# GNU General Public License for more details.
> > +#
> > +# You should have received a copy of the GNU General Public License along
> > +# with this program; if not, write to the Free Software Foundation, Inc.,
> > +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> > +"""Devtool clean plugin"""
> > +
> > +import bb
> > +from devtool import exec_build_env_command, check_workspace_recipe
> > +
> > +def _get_build_tasks(config):
> 
> This function should really be called "_get_clean_tasks".

I didn't notice until I hit send but this patch should go to the oe-core list, 
if you could send v2 there that would be great.

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] build error on raspberrypi3

2017-10-25 Thread vishal ashapur
hi im buliding linux on rpi3 using yocto pyro branch. after doing
"bitbake linux-raspberrypi -c menuconfig"  it is downloading all
sources but at the end it is showing the following error.

ERROR: linux-raspberrypi-1_4.9.30+gitAUTOINC+e54215a9bc-r28 do_fetch:
Fetcher failure for URL:
'git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y'.
Unable to fetch URL from any source.
ERROR: linux-raspberrypi-1_4.9.30+gitAUTOINC+e54215a9bc-r28 do_fetch:
Function failed: base_do_fetch
ERROR: Logfile of failure stored in:
/u/rpi2/rpi/build/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.9.30+gitAUTOINC+e54215a9bc-r28/temp/log.do_fetch.30856
ERROR: Task 
(/u/rpi2/sources/poky-morty/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:do_fetch)
failed with exit code '1'

so can anybody help with this error.
my detailed procedure for build is below
git clone -b pyro git://git.yoctoproject.org/poky
cd poky
git clone -b pyro git://git.openembedded.org/meta-openembedded
git clone -b pyro git://git.yoctoproject.org/meta-raspberrypi

source sources/poky/oe-init-build-env rpi-build

changes in local.conf
MACHINE = "raspberrypi3"
PREFERRED_VERSION_linux-raspberrypi = "4.9.%"
DISTRO_FEATURES_remove = "x11 wayland"
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
IMAGE_INSTALL += "packagegroup-core-buildessential"

changes in bblayers.conf
BBLAYERS ?= " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  ${BSPDIR}/sources/poky/meta-yocto-bsp \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-raspberrypi \

bitbake linux-raspberrypi -c menuconfig
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto