[yocto] Reducing the size of the image by optimizing python

2019-10-18 Thread Abhi Arora
Hello,
I am having an embedded system. We have bsp with python 3.5 but we want to 
reduce its size further. I am planning to have only oyc files but not sure how 
it can be achieved in recipes. Also, I want to know if there is a other way to 
reduce the footprint.

Please help.

Get Outlook for Android

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


Re: [yocto] Reducing the size of the image by optimizing python

2019-10-18 Thread Khem Raj
On Fri, Oct 18, 2019 at 1:21 PM Abhi Arora  wrote:

> Hello,
> I am having an embedded system. We have bsp with python 3.5 but we want to
> reduce its size further. I am planning to have only oyc files but not sure
> how it can be achieved in recipes. Also, I want to know if there is a other
> way to reduce the footprint.
>

Please start by eliminating modules first so find which modules are
required for your workloads and remove all other modules from image by
adding them to BAD_RECOMMENDATIONS from IMAGE_INSTALL

>
>
> Please help.
>
> Get Outlook for Android 
>
> --
> ___
> 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] [meta-selinux] Warrior branch glib/meson problem

2019-10-18 Thread Joe MacDonald
Hi Vincent,

[[yocto] [meta-selinux] Warrior branch glib/meson problem] On 19.10.17 (Thu 
12:50) Vincent Prince wrote:

> Hi Team,
> 
> I have a problem with meta-selinux layer on warrior branch, especially 
> building
> glib-2.0 with meson.
> This commit introduces enabled/disabled flags instead of true/false:
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/commit/?h=warrior&id=
> bb0c9c3abcb935e4b362eb57985e1ee7fec0bfe0
> 
> But current glib-2.0 is not 2.60 yet:
> https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/glib-2.0/?h=
> warrior
> 
> Can we revert this patch on warrior?

Sorry, I've been away from meta-selinux the last couple of weeks, I'm
addressing the warrior (and other patches in the backlog) right now.

-- 
-Joe MacDonald.
:wq


signature.asc
Description: PGP signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [yocto-autobuilder2][PATCH][v2] scheduler: make the default choice an option

2019-10-18 Thread Michael Halstead
The default choice on the force build form will select a random worker.

builder_to_workers dictionary values can no longer be strings.

Signed-off-by: Michael Halstead 
---
 config.py | 4 ++--
 schedulers.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.py b/config.py
index e9d6d98..1577bcf 100644
--- a/config.py
+++ b/config.py
@@ -127,7 +127,7 @@ builder_to_workers = {
 "oe-selftest-opensuse": workers_opensuse,
 "oe-selftest-centos": workers_centos,
 "meta-mingw": workers_wine,
-"buildperf-ubuntu1604": "perf-ubuntu1604",
-"buildperf-centos7": "perf-centos7",
+"buildperf-ubuntu1604": ["perf-ubuntu1604"],
+"buildperf-centos7": ["perf-centos7"],
 "default": workers
 }
diff --git a/schedulers.py b/schedulers.py
index b22f18f..671baae 100644
--- a/schedulers.py
+++ b/schedulers.py
@@ -81,7 +81,7 @@ def props_for_builder(builder):
   default="*",
   multiple=False,
   strict=True,
-  choices=worker_list))
+  choices=worker_list + ["*"]))
 return props
 
 
-- 
2.21.0

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


[yocto] [yocto-autobuilder-helper] Replaced hardcoded BASE_HOMEDIR directory

2019-10-18 Thread Marco
Replaced hardcoded BASE_HOMEDIR directory.
Please apologize the missing send-email on my machine.
--
Marco
From 90f9ec8460e7054e67e74f7d0d54179e15c1c9bd Mon Sep 17 00:00:00 2001
From: Marco Cavallini 
Date: Fri, 18 Oct 2019 18:40:43 +0200
Subject: [PATCH] config.json: Replaced occurrencies of /home/pokybuild with
 ${BASE_HOMEDIR}

Signed-off-by: Marco Cavallini 
---
 config.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.json b/config.json
index 88795b7..1493ab5 100644
--- a/config.json
+++ b/config.json
@@ -16,8 +16,8 @@
 "WEBPUBLISH_DIR" : "${BASE_SHAREDDIR}/",
 "WEBPUBLISH_URL" : "https://autobuilder.yocto.io/";,
 
-"BUILDPERF_STATEDIR" : "/home/pokybuild/buildperf",
-"BUILDPERF_RESULTSDIR" : "/home/pokybuild/buildperf-results",
+"BUILDPERF_STATEDIR" : "${BASE_HOMEDIR}/buildperf",
+"BUILDPERF_RESULTSDIR" : "${BASE_HOMEDIR}/buildperf-results",
 
 "defaults" : {
 "NEEDREPOS" : ["poky"],
@@ -141,7 +141,7 @@
 "SSTATEDIR_RELEASE" : ["SSTATE_DIR ?= '${HELPERBUILDDIR}/sstate'"],
 "PACKAGE_CLASSES" : "package_rpm",
 "EXTRAPLAINCMDS" : [
-"${SCRIPTSDIR}/build-perf-test-wrapper -r ${BUILDPERF_RESULTSDIR} -E yocto-p...@yoctoproject.org -d ${BUILDPERF_STATEDIR}/downloads -w /home/pokybuild/build-perf-test -p ${HELPERRESULTSDIR}/${HELPERTARGET} -R ${HELPERREPONAME} -b ${HELPERBRANCHNAME} --push g...@push.yoctoproject.org:yocto-buildstats"
+"${SCRIPTSDIR}/build-perf-test-wrapper -r ${BUILDPERF_RESULTSDIR} -E yocto-p...@yoctoproject.org -d ${BUILDPERF_STATEDIR}/downloads -w ${BASE_HOMEDIR}/build-perf-test -p ${HELPERRESULTSDIR}/${HELPERTARGET} -R ${HELPERREPONAME} -b ${HELPERBRANCHNAME} --push g...@push.yoctoproject.org:yocto-buildstats"
 ],
 "extravars" : [
 "BB_NUMBER_THREADS = '24'",
-- 
2.7.4

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


Re: [yocto] [opkg-devel] [OE-core][opkg-utils ] Bug 13528 : adding SPDX license identifier

2019-10-18 Thread Alejandro Del Castillo
merged, thanks!

On 10/15/19 2:58 PM, Alejandro Del Castillo wrote:
> 
> 
> On 10/14/19 7:36 AM, Ycn aKaJoseph wrote:
>> Hi,
>>
>> GPL-2.0-only was applied to script without previous Licences and
>> GPL-2.0-or-later to those mentioning it, however I'm wondering if I
>> should also add a SPDX id to the makefile ?
>>
>> Here's first attempt without identifier to the Makefile.
> 
> I don't have a preference regarding adding a SPDX identifier for the
> Makefile. If I don't see any comments one way or the other, I will pull
> the patch in, by the end of the week.
> 
> thanks again for taking care of this,
> 
> Alejandro
> 
>> On Fri, Oct 11, 2019 at 6:45 PM > > wrote:
>>
>>  On Fri, 2019-10-11 at 15:54 +, Alejandro Del Castillo wrote:
>>   > On 10/11/19 8:51 AM, Ycn aKaJoseph wrote:
>>   > > Hi guys,
>>   > >
>>   > > 
>> https://urldefense.com/v3/__https://bugzilla.yoctoproject.org/show_bug.cgi?id=13528__;!fqWJcnlTkjM!4_UTkft6YvqISMi_ZyxT3nbBDdxbyllWZ59OHmmikFQqAnQ-ln7pGeLjNidedeIGY0iDgA$
>>  
>> 
>>
>>   > > <
>>   > >
>>  
>> https://urldefense.com/v3/__https://bugzilla.yoctoproject.org/show_bug.cgi?id=13528__;!fqWJcnlTkjM!8RtsWJXbDz_l063ZSVKrRMwvQ5KGdD0lk9aSjlUW9VHM2wufITJnBuIvovQxoT0yJXu-6Q$
>>   > > >
>>   > >
>>   > > I'm about to work on that bug however most of the script in opkg-
>>   > > utils
>>   > > dir are un-licenced and there's no hint for me to decide what SPDX
>>   > > Identifier to add.
>>   >
>>   > thanks for doing this!
>>   >
>>   > > The doubt concerns those script :
>>   > > makePackage
>>   > > opkg-build
>>   > > opkg-buildpackage
>>   > > opkg-compare-indexes
>>   > > opkg-diff
>>   > > opkg-extract-file
>>   > > opkg-graph-deps
>>   > > opkg-list-fields
>>   > > opkg-make-index
>>   > > opkg-show-deps
>>   > > opkg-unbuild
>>   > > opkg-update-index
>>   > >
>>   > > What license do you want them to carry ?
>>   >
>>   > Looking at the commit history, opkg-graph-deps was authored by Haris
>>   > Okanovic, and the rest by Richard Purdie (included them on the
>>   > thread).
>>   >
>>   > My take on it:  since opkg is licensed as GPLv2+, and the files that
>>   > have a license in opkg-utils are GPLv2+, make sense to me to license
>>   > the rest as GPLv2+ too.
>>
>>  I didn't author these, they were imported from ipkg-utils which was
>>  part of handhelds.org
>>  
>> .
>>  I did modify things quite a bit during the
>>  import.
>>
>>  handhelds.org
>>  
>> 's
>>  CVS repos aren't there any more but I do have old
>>  sources lying around locally. I have a snapshot of the CVS repo from
>>  20050930 and it has GPLv2 COPYING file (not 2+, just 2).
>>
>>  I'd suggest we follow the original licensing of that and go with GPLv2.
>>
>>  Cheers,
>>
>>  Richard
>>
>>
>>
>>
> 

-- 
Cheers,

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


Re: [yocto] [yocto-autobuilder-helper] Replaced hardcoded BASE_HOMEDIR directory

2019-10-18 Thread akuster808


On 10/18/19 9:55 AM, Marco wrote:
> Replaced hardcoded BASE_HOMEDIR directory.
> Please apologize the missing send-email on my machine.
Thanks Marco,

Would the be any need to add something to the README regarding the use
of this variable?

- armin
> --
> Marco
>

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