Re: [yocto] Which repo for meta-altera ?

2015-07-29 Thread Spriggs, Jim
Hi Kevin,

Rodger, got it this time – I had indeed missed the clue about the maintainers.

I should RTFM more often….

Many thanks for your help and patience ☺.
--
jim

Von: enak...@googlemail.com [mailto:enak...@googlemail.com]
Gesendet: Mittwoch, 29. Juli 2015 22:37
An: Dalon Westergreen ; Spriggs, Jim 
; Alex J Lennon 
Cc: yocto@yoctoproject.org; r...@lists.rocketboards.org
Betreff: Re: [yocto] Which repo for meta-altera ?

As you can read in the ReadMe.md Khem Raj and Yves Vandervennet are the 
official maintainers of 
github.com/altera-opensource/meta-altera

I really recommend to use 
github.com/altera-opensource/meta-altera
 instead of the fork from Khem Raj. But since you use the fork of one of the 
maintainers, it will probably be most of the time in synch with the 
altera-opensource repository.

Von: Dalon Westergreen
Gesendet: ‎Mittwoch‎, ‎29‎. ‎Juli‎ ‎2015 ‎21‎:‎54
An: Spriggs, Jim, Alex J 
Lennon, Kevin 
B.
Cc: yocto@yoctoproject.org, 
r...@lists.rocketboards.org

As far as I understand it Altera only maintains the one repo.
On July 29, 2015 6:44:23 AM PDT, "Spriggs, Jim" 
mailto:j.spri...@raylase.de>> wrote:

Hi Alex, Dalon, Kevin, Lists

hmmm, so I guess I'm still confused (sorry).

Alex recommends going via the "official" oe layers index, which currently links 
directly to github.com/kraj/meta-altera.

Kevin and Dalon hold out for 
github.com/altera-opensource/meta-altera,
 and Dalon specifically says "... and repos under any user name in github are 
forks".

So is there an official ;-) dichotomy between altera and oe?

Thanks for listening...
--
jim


-Ursprüngliche Nachricht-
Von: Alex J Lennon [mailto:ajlen...@dynamicdevices.co.uk]
Gesendet: Mittwoch, 29. Juli 2015 15:10
An: Spriggs, Jim mailto:j.spri...@raylase.de>>
Cc: yocto@yoctoproject.org
Betreff: Re: [yocto] Which repo for meta-altera ?



On 28/07/2015 10:10, Spriggs, Jim

wrote:

 Hi Guys; confused noob here...

 There appear to be (at least) two "official" repos for meta-altera:

 github.com/kraj/meta-altera

 and

 
git.rocketboards.org/meta-altera.git


 So how should I choose between them?

 Thanks!
 --
 Jim

 Sorry about the company sig.: I can't switch it off.


fwiw I would usually start with the official index

http://layers.openembedded.org/layerindex/branch/master/layers/

This seems to point to github

Cheers, Alex





RAYLASE AG
Argelsrieder Feld 2+4
82234 Wessling
Germany
Tel.: +49-(0)8153/88 98-0
Fax: +49-(0)8153/88 98-10
http://www.raylase.de

District Court Munich, HRB 131450

Board: Peter von Jan (CEO)

Supervisory Board: Dr. Ulrich Lohmann (Chairman)


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.



RAYLASE AG
Argelsrieder Feld 2+4
82234 Wessling
Germany
Tel.: +49-(0)8153/88 98-0
Fax: +49-(0)8153/88 98-10
http://www.raylase.de

District Court Munich, HRB 131450

Board: Peter von Jan (CEO)

Supervisory Board: Dr. Ulrich Lohmann (Chairman)


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Core-image-weston network problems

2015-07-29 Thread Eirik Solberg Hamnvik
Hey!

I am building core-image-weston. Branch fido. I have a postinstall script that 
runs some code on first startup. The script is supposed to do  apt-get install 
of some packages. The problem is that the postinstall script runs before the 
network is correctly configured.
Meaning my packages wont download. When it is fully booted I can manually do 
apt-get install and it works fine. For now I am using the 'at'-command to solve 
this issue, but I need to change that.
The perfect thing would be to make my package dependent on whichever package 
that configures the network settings, so I am guaranteed that it will download 
succesfully. Which one is that? Or are there any better solutions?

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


Re: [yocto] [OE-core] glibc 2.22

2015-07-29 Thread Khem Raj
On Tue, Jul 28, 2015 at 12:48 AM, Lei, Maohui  wrote:
> Hi Khem,
>
>
>> glibc 2.22 will release end of this month. For some time I have put
>> together the update here
>>
>> http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/m
>> aster&id=0
>> 2e73ea526d94f21c7ef82eb96b062eff8ebb825
>>
>> It works pretty well for machines I have tested it on ( arm/x86 ) but
>> would be interested if more wider trial could be carried out and
>> issues reported between now and release can be addressed.
>>
>> Please give it a try if you have spare cycles
>
> I tested it on powerpc(e500v2),and did a ltp test. It does work well.
>

thanks for the report


>
>
> Best Regards
> Lei Maohui
>
>
>
>
>> -Original Message-
>> From: openembedded-core-boun...@lists.openembedded.org
>> [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
>> Khem Raj
>> Sent: Tuesday, July 14, 2015 1:37 AM
>> To: Patches and discussions about the oe-core layer; OpenEmbedded
>> Devel List; Yocto discussion list
>> Subject: [OE-core] glibc 2.22
>>
>> Hi All
>>
>> glibc 2.22 will release end of this month. For some time I have put
>> together the update here
>>
>> http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/m
>> aster&id=0
>> 2e73ea526d94f21c7ef82eb96b062eff8ebb825
>>
>> It works pretty well for machines I have tested it on ( arm/x86 ) but
>> would be interested if more wider trial could be carried out and
>> issues reported between now and release can be addressed.
>>
>> Please give it a try if you have spare cycles
>>
>> Thanks
>> -Khem
>>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Build with 'Hob' results in blank target column in 'Toaster'

2015-07-29 Thread Robin Gilks
Having just discovered hob and toaster, in 1.7 Dizzy. I've been trying them
out - but I'm missing something!!

Set environment, start toaster, run hob and select a machine. After all the
parsing has completed I select my target and 'build image'.

When the build has completed successfully, I use toaster to check it out
and the machine column is correctly filled in but the 'target' column is
blank. This means that I have nothing to select to look at the recipes or
packages (they are both 0).

Help!!

-- 
*Robin Gilks*
Development

Delta Strike
Success through Delta Strike
phone:+64 3 982 9892
skype: robindeltastrike
web:   www.deltastrike.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi] Adding an additional device tree overlay in the SDCard

2015-07-29 Thread Herve Jourdain
Hello,

 

I'm trying to add a specific .dts file to the raspberrypi.

Therefore, in my own layer, I have made a linux-raspberrypi_3.%.bbappend,
that applies a patch to the arch/arm/boot/dts makefile to add my own layer,
and a new rule that copies my specific .dts file to the kernel source
directory.

And, initially, I had also defined KERNEL_DEVICETREE += "myown-overlay.dtb"
in there.

 

It definitely compiles well, installation process is smooth, I get the
Image-myown-overlay.dtb in tmp/deploy/raspberrypi2.

 

BUT when I flash my SDCard, it does NOT appear in the "overlays" directory
of the DOS partition!

 

If I add it manually, everything works fine, so I know my overlay has been
correctly generated and is working.

 

What I discovered is that, the sdcard_image_rpi class takes the list of .dtb
to be considered from split_overlays(), which is defined in
linux-raspberrypi-base class.

And split_overlays() basically  gets the value of KERNEL_DEVICETREE (dts =
d.getVar("KERNEL_DEVICETREE", True)).

 

But when I set KERNEL_DEVICETREE in linux-raspberrypi_3.%.bbappend, it seems
the additional value it defines is NOT taken into account when
linux-raspberry-class evaluates the value of KERNEL_DEVICETREE.

I've checked in the create_image.rpi-sdimg script created, it does not
appear in DTS nor DT_OVERLAYS.

 

But when I define KERNEL_DEVICETREE in my distro.conf, THEN it is taken into
account.

 

My goal would be to add that overlay by NOT modifying distro.conf (distros
are not necessarily RaspberryPi centric) nor in the raspberry machine files
(or local.conf).

This leads me to several questions:

#1 Is there a specific reason why my addition to KERNEL_DEVICETREE gets lost
when creating the image? I mean, is it normal, or are there some steps I
missed there?

#2 Is there a way that I could achieve adding my .dtb overlay in the sdcard
image only from my linux kernel bbappend?

#3 On a more general note, wouldn't it be simpler (better?) to just add all
the .dtb that are found in the deploy/images/ directory to the DOS partition
of the SDCard? After all, the .dtb need to be compiled from a .dts, so all
the .dtb that appear in deploy/images are "legit".

 

Herve

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


[yocto] Can I use latest (1.8?) Toaster on Dizzy (1.7)

2015-07-29 Thread Robin Gilks
Subject says it all really. The manufacturer of the hardware I'm using has
a layer for Dizzy but the version of Toaster in Dizzy is quite limited.

Is there a way to use the later (latest?) version or is Toaster totally
integrated into the whole?

Cheers

-- 
*Robin Gilks*
Development

Delta Strike
Success through Delta Strike
phone:+64 3 982 9892
skype: robindeltastrike
web:   www.deltastrike.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 10/10][auh] upgradehelper: Add support for generate buildhistory recipe diff's

2015-07-29 Thread Aníbal Limón
Now AUH generates buildhistory diff when recipe was upgraded
successfully.

For enable this feature set into local.conf.

INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"

Summary of the changes,

- bitbake.py: Enable environment generation without recipe,
  removes Buildhistory class.
- buildhistory.py: Add buildhistory class that generates initial
  buildhistory revision and keeps track of build revisions for
  generate diff when build is successful.
- upgradehelper.py: Add buildhistory steps for upgrade, add
  support for detect when buildhistory is enabled loading the
  environment without recipe.

[YOCTO #7175]

Signed-off-by: Aníbal Limón 
---
 bitbake.py   |  41 ++--
 buildhistory.py  |  75 
 errors.py|   6 +++
 upgradehelper.py | 115 ---
 4 files changed, 170 insertions(+), 67 deletions(-)
 create mode 100644 buildhistory.py

diff --git a/bitbake.py b/bitbake.py
index e23dc28..a1587ce 100644
--- a/bitbake.py
+++ b/bitbake.py
@@ -44,7 +44,7 @@ class Bitbake(object):
 self.log_dir = None
 super(Bitbake, self).__init__()
 
-def _cmd(self, recipe, options=None, env_var=None, output_filter=None):
+def _cmd(self, recipe=None, options=None, env_var=None, 
output_filter=None):
 cmd = ""
 if env_var is not None:
 cmd += env_var + " "
@@ -52,7 +52,8 @@ class Bitbake(object):
 if options is not None:
 cmd += options + " "
 
-cmd += recipe
+if recipe is not None:
+cmd += recipe
 
 if output_filter is not None:
 cmd += ' |  grep ' + output_filter
@@ -78,7 +79,7 @@ class Bitbake(object):
 def get_stdout_log(self):
 return os.path.join(self.log_dir, BITBAKE_ERROR_LOG)
 
-def env(self, recipe):
+def env(self, recipe=None):
 return self._cmd(recipe, "-e", output_filter="-v \"^#\"")
 
 def fetch(self, recipe):
@@ -104,37 +105,3 @@ class Bitbake(object):
 
 def dependency_graph(self, package_list):
 return self._cmd(package_list, "-g")
-
-class BuildHistory(object):
-def __init__(self, build_dir):
-self.build_dir = build_dir
-self.work_dir = None
-
-def set_work_dir(self, work_dir):
-self.work_dir = work_dir
-
-# Return True if buildhistory-diff gives output
-def diff(self, revision_steps):
-os.chdir(self.build_dir)
-cmd = "buildhistory-diff HEAD~" + str(revision_steps)
-
-try:
-stdout, stderr = bb.process.run(cmd)
-# Write diff output to log file if there is any
-
-if stdout and os.path.exists(self.work_dir):
-with open(os.path.join(self.work_dir, "buildhistory.txt"), 
"w+") as log:
-log.write(stdout)
-return True
-except bb.process.ExecutionError as e:
-for line in e.stdout.split('\n'):
-if line.find("Buildhistory directory \"buildhistory/\" does 
not exist") == 0:
-C(" \"buildhistory.bbclass\" not inherited. Consider 
adding "
-  "the following to your local.conf:\n\n"
-  "INHERIT =+ \"buildhistory\"\n"
-  "BUILDHISTORY_COMMIT = \"1\"\n\n"
-  "Do not remove any other inherited class in the process 
(e.g. distrodata)\n")
-exit(1)
-
-return False
-
diff --git a/buildhistory.py b/buildhistory.py
new file mode 100644
index 000..1732f23
--- /dev/null
+++ b/buildhistory.py
@@ -0,0 +1,75 @@
+#!/usr/bin/env python
+# vim: set ts=4 sw=4 et:
+#
+# Copyright (c) 2015 Intel Corporation
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# 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.
+#
+
+import os
+import logging as log
+from logging import info as I
+from logging import debug as D
+from logging import error as E
+from logging import critical as C
+import sys
+from errors import *
+
+from bitbake import *
+from git import Git
+
+os.environ['BB_ENV_EXTRAWHITE'] = os.environ['BB_ENV_EXTRAWHITE'] + \
+" BUILDHISTORY_DIR"
+
+class BuildHistory(object):
+def __init__(self, bb, pn, workdir):
+self.bb =

[yocto] [PATCH 09/10][auh] upgradehelper.py: Move upstream versioning code to UniverseUpdater

2015-07-29 Thread Aníbal Limón
Reorder code related to upstream versioning detection no makes sense
to have in Updater because only in UniverseUpdater is used.

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 161 ++-
 1 file changed, 77 insertions(+), 84 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index a31d041..4d8685c 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -265,63 +265,12 @@ class Updater(object):
 I(" %s: compiling for %s ..." % (self.pn, machine))
 self.recipe.compile(machine)
 
-def _check_upstream_versions(self, packages=[("universe", None, None)]):
-I(" Fetching upstream version(s) ...")
-
-try:
-self.bb.checkpkg(" ".join([p[0] for p in packages]))
-except Error as e:
-for line in e.stdout.split('\n'):
-if line.find("ERROR: Task do_checkpkg does not exist") == 0:
-C(" \"distrodata.bbclass\" not inherited. Consider adding "
-  "the following to your local.conf:\n\n"
-  "INHERIT =+ \"distrodata\"\n")
-exit(1)
-
-def _parse_checkpkg_file(self, file_path):
-import csv
-
-pkgs_list = []
-
-with open(file_path, "r") as f:
-reader = csv.reader(f, delimiter='\t')
-for row in reader:
-if reader.line_num == 1: # skip header line
-continue
-
-pn = row[0]
-cur_ver = row[1]
-next_ver = row[2]
-status = row[11]
-maintainer = row[14]
-no_upgrade_reason = row[15]
-
-if status == 'UPDATE' and not no_upgrade_reason:
-pkgs_list.append((pn, next_ver, maintainer))
-else:
-if no_upgrade_reason:
-D(" Skip package %s (status = %s, current version = 
%s," \
-" next version = %s, no upgrade reason = %s)" %
-(pn, status, cur_ver, next_ver, no_upgrade_reason))
-else:
-D(" Skip package %s (status = %s, current version = 
%s," \
-" next version = %s)" %
-(pn, status, cur_ver, next_ver))
-return pkgs_list
-
 def _get_packages_to_upgrade(self, packages=None):
 if packages is None:
-return []
-
-if len(packages) == 1:
-# if user specified the version to upgrade to, just return the
-# tuple intact
-if packages[0][1] is not None:
-return packages
-
-self._check_upstream_versions(packages)
-
-return self._parse_checkpkg_file(get_build_dir() + 
"/tmp/log/checkpkg.csv")
+I( "Nothing to upgrade")
+exit(0)
+else:
+return packages
 
 # this function will be called at the end of each recipe upgrade
 def pkg_upgrade_handler(self, err):
@@ -530,6 +479,75 @@ class UniverseUpdater(Updater):
 line.split(',')[3],
 line.split(',')[4]]
 
+def _update_master(self):
+I(" Drop all uncommited changes (including untracked) ...")
+self.git.reset_hard()
+self.git.clean_untracked()
+
+self.git.checkout_branch("master")
+try:
+self.git.delete_branch("upgrades")
+except Error:
+pass
+I(" Sync master ...")
+self.git.pull()
+self.git.create_branch("upgrades")
+
+def _prepare(self):
+if settings.get("clean_sstate", "no") == "yes" and \
+os.path.exists(os.path.join(get_build_dir(), "sstate-cache")):
+I(" Removing sstate directory ...")
+shutil.rmtree(os.path.join(get_build_dir(), "sstate-cache"))
+if settings.get("clean_tmp", "no") == "yes" and \
+os.path.exists(os.path.join(get_build_dir(), "tmp")):
+I(" Removing tmp directory ...")
+shutil.rmtree(os.path.join(get_build_dir(), "tmp"))
+
+
+def _check_upstream_versions(self, packages=[("universe", None, None)]):
+I(" Fetching upstream version(s) ...")
+
+try:
+self.bb.checkpkg(" ".join([p[0] for p in packages]))
+except Error as e:
+for line in e.stdout.split('\n'):
+if line.find("ERROR: Task do_checkpkg does not exist") == 0:
+C(" \"distrodata.bbclass\" not inherited. Consider adding "
+  "the following to your local.conf:\n\n"
+  "INHERIT =+ \"distrodata\"\n")
+exit(1)
+
+def _parse_checkpkg_file(self, file_path):
+import csv
+
+pkgs_list = []
+
+with open(file_path, "r") as f:
+reader = csv.reader(f, deli

[yocto] [PATCH 07/10][auh] bitbake.py: Rename bitbake_log.txt to bitbake_error_log

2015-07-29 Thread Aníbal Limón
Bitbake log only is written when error appears, rename it to be
consistent with information into the log.

Signed-off-by: Aníbal Limón 
---
 bitbake.py | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bitbake.py b/bitbake.py
index 54389fb..e23dc28 100644
--- a/bitbake.py
+++ b/bitbake.py
@@ -36,6 +36,8 @@ for path in os.environ["PATH"].split(':'):
 sys.path.insert(0, os.path.join(path, "../lib"))
 import bb
 
+BITBAKE_ERROR_LOG = 'bitbake_error_log.txt'
+
 class Bitbake(object):
 def __init__(self, build_dir):
 self.build_dir = build_dir
@@ -63,7 +65,7 @@ class Bitbake(object):
 D("%s returned:\n%s" % (cmd, e.__str__()))
 
 if self.log_dir is not None and os.path.exists(self.log_dir):
-with open(os.path.join(self.log_dir, "bitbake_log.txt"), "w+") 
as log:
+with open(os.path.join(self.log_dir, BITBAKE_ERROR_LOG), "w+") 
as log:
 log.write(e.stdout)
 
 raise Error("\'" + cmd + "\' failed", e.stdout, e.stderr)
@@ -74,7 +76,7 @@ class Bitbake(object):
 self.log_dir = dir
 
 def get_stdout_log(self):
-return os.path.join(self.log_dir, "bitbake_log.txt")
+return os.path.join(self.log_dir, BITBAKE_ERROR_LOG)
 
 def env(self, recipe):
 return self._cmd(recipe, "-e", output_filter="-v \"^#\"")
-- 
1.9.1

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


[yocto] [PATCH 08/10][auh] upgradehelper.py: Remove unused references to Buildhistory class

2015-07-29 Thread Aníbal Limón
Buildhistory class isn't implemented so removed related code.

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 11 +--
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 7bc8eed..a31d041 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -43,7 +43,7 @@ from datetime import date
 import shutil
 from errors import *
 from git import Git
-from bitbake import Bitbake, BuildHistory
+from bitbake import Bitbake
 from emailhandler import Email
 from statistics import Statistics
 from recipe import Recipe
@@ -135,7 +135,6 @@ class Updater(object):
 os.mkdir(self.uh_work_dir)
 
 self.bb = Bitbake(get_build_dir())
-self.buildhistory = BuildHistory(get_build_dir())
 self.git = None
 self.author_email = settings.get('from', 'u...@not.set')
 self.author = "Upgrade Helper <%s>" % self.author_email
@@ -266,14 +265,6 @@ class Updater(object):
 I(" %s: compiling for %s ..." % (self.pn, machine))
 self.recipe.compile(machine)
 
-def _review(self):
-# Check build_history
-if not self.skip_compilation:
-I(" %s: Checking buildhistory ..." % self.pn)
-self.buildhistory.set_work_dir(self.workdir)
-if self.buildhistory.diff(len(self.machines)):
-   I(" %s: Wrote buildhistory-diff output ..." % self.pn)
-
 def _check_upstream_versions(self, packages=[("universe", None, None)]):
 I(" Fetching upstream version(s) ...")
 
-- 
1.9.1

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


[yocto] [PATCH 04/10][auh] bitbake.py: Improve performance on env() call

2015-07-29 Thread Aníbal Limón
When AUH load recipe enviroment use bitbake -e call and parses the
output using regex VAR=VALUE.

For improve performance discard all the comments on cmd output adding
a output_filter using grep.

Signed-off-by: Aníbal Limón 
---
 bitbake.py | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bitbake.py b/bitbake.py
index 3631896..54389fb 100644
--- a/bitbake.py
+++ b/bitbake.py
@@ -42,7 +42,7 @@ class Bitbake(object):
 self.log_dir = None
 super(Bitbake, self).__init__()
 
-def _cmd(self, recipe, options=None, env_var=None):
+def _cmd(self, recipe, options=None, env_var=None, output_filter=None):
 cmd = ""
 if env_var is not None:
 cmd += env_var + " "
@@ -52,6 +52,9 @@ class Bitbake(object):
 
 cmd += recipe
 
+if output_filter is not None:
+cmd += ' |  grep ' + output_filter
+
 os.chdir(self.build_dir)
 
 try:
@@ -74,7 +77,7 @@ class Bitbake(object):
 return os.path.join(self.log_dir, "bitbake_log.txt")
 
 def env(self, recipe):
-return self._cmd(recipe, "-e")
+return self._cmd(recipe, "-e", output_filter="-v \"^#\"")
 
 def fetch(self, recipe):
 return self._cmd(recipe, "-c fetch")
-- 
1.9.1

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


[yocto] [PATCH 06/10][auh] upgradehelper.py: UniverseUpdate don't abort if recipe checkpkg fails.

2015-07-29 Thread Aníbal Limón
Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 9119cb0..7bc8eed 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -285,10 +285,7 @@ class Updater(object):
 C(" \"distrodata.bbclass\" not inherited. Consider adding "
   "the following to your local.conf:\n\n"
   "INHERIT =+ \"distrodata\"\n")
-else:
-C(line)
-
-exit(1)
+exit(1)
 
 def _parse_checkpkg_file(self, file_path):
 import csv
-- 
1.9.1

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


[yocto] [PATCH 05/10][auh] upgradehelper.py: Add own step for loading environment

2015-07-29 Thread Aníbal Limón
Instead of load environment in detecting git repository use own
function making easy to debug.

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 13fc7dd..9119cb0 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -147,6 +147,7 @@ class Updater(object):
 
 self.upgrade_steps = [
 (self._create_workdir, None),
+(self._get_env, "Loading environment ..."),
 (self._detect_repo, "Detecting git repository location ..."),
 (self._clean_repo, "Cleaning git repository of temporary branch 
..."),
 (self._detect_recipe_type, None),
@@ -205,18 +206,16 @@ class Updater(object):
 os.remove(os.path.join(self.workdir, f))
 
 def _detect_repo(self):
-self._get_env()
-
-if self.env['PV'] == self.new_ver:
+if self.env['PKGV'] == self.new_ver:
 raise UpgradeNotNeededError
 
-if self.git is not None:
+# UniverseUpdater use git poky respository 
+if isinstance(self.git, UniverseUpdater):
 return
 
 self.git = Git(self.recipe_dir)
 
 stdout = self.git.status()
-
 if stdout != "":
 if self.interactive:
 W(" %s: git repository has uncommited work which will be 
dropped! Proceed? (y/N)" % self.pn)
@@ -527,6 +526,8 @@ class Updater(object):
 class UniverseUpdater(Updater):
 def __init__(self):
 Updater.__init__(self, True, True)
+
+# XXX: assume that the poky directory is the first entry in the PATH
 self.git = Git(os.path.dirname(os.getenv('PATH', False).split(':')[0]))
 
 # read history file
-- 
1.9.1

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


[yocto] [PATCH 03/10][auh] upgradehelper.py: Only send emails when patch file exist

2015-07-29 Thread Aníbal Limón
Remove old decision of send email based on error because only
makes sense to send email when patch file was created.

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index f10d974..13fc7dd 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -358,7 +358,8 @@ class Updater(object):
 self.git.reset_hard(1)
 self.git.clean_untracked()
 
-if self.send_email:
+# only send email to Maintainer when patch file exist
+if self.send_email and self.patch_file:
 mail_header = \
 "Hello,\n\nYou are receiving this email because you are the 
maintainer\n" \
 "of *%s* recipe and this is to let you know that the automatic 
attempt\n" \
@@ -383,13 +384,6 @@ class Updater(object):
 "Any problem please contact Anibal Limon 
.\n\n" \
 "Regards,\nThe Upgrade Helper"
 
-# only send email to Maintainer when is an error that can handle
-if err and not isinstance(err, MaintainerError):
-D( "%s: Don't send email to maintainer because the error was " 
\
-   "%s and the information isn't useful, please review it." \
-% (self.pn, type(err).__name__))
-return
-
 if self.maintainer in maintainer_override:
 to_addr = maintainer_override[self.maintainer]
 else:
-- 
1.9.1

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


[yocto] [PATCH 00/10][auh] Add support for buildhistory and minor fixes

2015-07-29 Thread Aníbal Limón
This changes can be found at,

http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/log/?h=alimon/devel

Aníbal Limón (10):
  upgradehelper.py: Only run with one recipe or all.
  upgradehelper.py: Validate if upgrade is needed
  upgradehelper.py: Only send emails when patch file exist
  bitbake.py: Improve performance on env() call
  upgradehelper.py: Add own step for loading environment
  upgradehelper.py: UniverseUpdate don't abort if recipe checkpkg fails.
  bitbake.py: Rename bitbake_log.txt to bitbake_error_log
  upgradehelper.py: Remove unused references to Buildhistory class
  upgradehelper.py: Move upstream versioning code to UniverseUpdater
  upgradehelper: Add support for generate buildhistory recipe diff's

 bitbake.py   |  52 ++--
 buildhistory.py  |  75 
 errors.py|   6 +
 upgradehelper.py | 359 ++-
 4 files changed, 290 insertions(+), 202 deletions(-)
 create mode 100644 buildhistory.py

-- 
1.9.1

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


[yocto] [PATCH 01/10][auh] upgradehelper.py: Only run with one recipe or all.

2015-07-29 Thread Aníbal Limón
Remove ability to run with several recipes because isn't make sense.

Supported modes are,

$ ./upgradehelper.py all
$ ./upgradehelper.py recipe --to_version VERSION

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 34 ++
 1 file changed, 10 insertions(+), 24 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index d6ac7fd..63b30e4 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -65,7 +65,7 @@ def parse_cmdline():
 parser = argparse.ArgumentParser(description='Package Upgrade Helper',
  
formatter_class=argparse.RawTextHelpFormatter,
  epilog=help_text)
-parser.add_argument("recipe", nargs="+", help="recipe to be upgraded")
+parser.add_argument("recipe", help="recipe to be upgraded")
 
 parser.add_argument("-t", "--to_version",
 help="version to upgrade the recipe to")
@@ -507,14 +507,6 @@ class Updater(object):
 
 self.statistics.update(self.pn, self.new_ver, self.maintainer, 
error)
 
-if self.interactive and attempted_pkgs < total_pkgs:
-I(" %s: Proceed to next recipe? (Y/n)" % self.pn)
-answer = sys.stdin.readline().strip().upper()
-
-if answer != 'Y' and answer != '':
-I("Aborted by user!")
-exit(0)
-
 if (attempted_pkgs > 1):
 I("%s" % self.statistics.pkg_stats())
 if self.send_email:
@@ -700,24 +692,18 @@ if __name__ == "__main__":
 
 settings, maintainer_override = parse_config_file(args.config_file)
 
-if len(args.recipe) == 1 and args.recipe[0] == "all":
+if args.recipe == "all":
 updater = UniverseUpdater()
 updater.run()
-elif len(args.recipe) >= 1:
-if len(args.recipe) == 1:
-if not args.to_version:
-E(" For upgrade only one recipe you must specify 
--to_version\n")
-exit(1)
-
-if not args.maintainer and args.send_emails:
-E(" For upgrade only one recipe and send email you must 
specify --maintainer\n")
-exit(1)
+else:
+if not args.to_version:
+E(" For upgrade only one recipe you must specify --to_version\n")
+exit(1)
 
-pkg_list = [(args.recipe[0], args.to_version, args.maintainer)]
-else:
-pkg_list = []
-for pkg in args.recipe:
-pkg_list.append((pkg, None, None))
+if not args.maintainer and args.send_emails:
+E(" For upgrade only one recipe and send email you must specify 
--maintainer\n")
+exit(1)
 
+pkg_list = [(args.recipe, args.to_version, args.maintainer)]
 updater = Updater(args.auto_mode, args.send_emails, 
args.skip_compilation)
 updater.run(pkg_list)
-- 
1.9.1

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


[yocto] [PATCH 02/10][auh] upgradehelper.py: Validate if upgrade is needed

2015-07-29 Thread Aníbal Limón
When run upgradehelper only with one recipe upgrade needed
validation isn't did.

[YOCTO #7947]

Signed-off-by: Aníbal Limón 
---
 upgradehelper.py | 24 +---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 63b30e4..f10d974 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -207,6 +207,9 @@ class Updater(object):
 def _detect_repo(self):
 self._get_env()
 
+if self.env['PV'] == self.new_ver:
+raise UpgradeNotNeededError
+
 if self.git is not None:
 return
 
@@ -496,9 +499,24 @@ class Updater(object):
 step()
 
 I(" %s: Upgrade SUCCESSFUL! Please test!" % self.pn)
-except Error as e:
-E(" %s: %s" % (self.pn, e.message))
-E(" %s: Upgrade FAILED! Logs and/or file diffs are available 
in %s" % (self.pn, self.workdir))
+except Exception as e:
+if isinstance(e, UpgradeNotNeededError):
+I(" %s: %s" % (self.pn, e.message))
+elif isinstance(e, UnsupportedProtocolError):
+I(" %s: %s" % (self.pn, e.message))
+else:
+if not isinstance(e, Error):
+import traceback
+msg = "Failed(unknown error)\n" + 
traceback.format_exc()
+e = Error(message=msg)
+error = e
+
+E(" %s: %s" % (self.pn, e.message))
+
+if os.listdir(self.workdir):
+E(" %s: Upgrade FAILED! Logs and/or file diffs are 
available in %s"
+% (self.pn, self.workdir))
+
 error = e
 
 self._commit_changes()
-- 
1.9.1

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


Re: [yocto] Which repo for meta-altera ?

2015-07-29 Thread Dalon Westergreen
As far as I understand it Altera only maintains the one repo.  

On July 29, 2015 6:44:23 AM PDT, "Spriggs, Jim"  wrote:
>Hi Alex, Dalon, Kevin, Lists
>
>hmmm, so I guess I'm still confused (sorry).
>
>Alex recommends going via the "official" oe layers index, which
>currently links directly to github.com/kraj/meta-altera.
>
>Kevin and Dalon hold out for github.com/altera-opensource/meta-altera,
>and Dalon specifically says "... and repos under any user name in
>github are forks".
>
>So is there an official ;-) dichotomy between altera and oe?
>
>Thanks for listening...
>--
>jim
>
>
>-Ursprüngliche Nachricht-
>Von: Alex J Lennon [mailto:ajlen...@dynamicdevices.co.uk]
>Gesendet: Mittwoch, 29. Juli 2015 15:10
>An: Spriggs, Jim 
>Cc: yocto@yoctoproject.org
>Betreff: Re: [yocto] Which repo for meta-altera ?
>
>
>
>On 28/07/2015 10:10, Spriggs, Jim wrote:
>> Hi Guys; confused noob here...
>>
>> There appear to be (at least) two "official" repos for meta-altera:
>>
>> github.com/kraj/meta-altera
>>
>> and
>>
>> git.rocketboards.org/meta-altera.git
>>
>>
>> So how should I choose between them?
>>
>> Thanks!
>> --
>> Jim
>>
>> Sorry about the company sig.: I can't switch it off.
>>
>
>fwiw I would usually start with the official index
>
>http://layers.openembedded.org/layerindex/branch/master/layers/
>
>This seems to point to github
>
>Cheers, Alex
>
>
>
>
>RAYLASE AG
>Argelsrieder Feld 2+4
>82234 Wessling
>Germany
>Tel.: +49-(0)8153/88 98-0
>Fax: +49-(0)8153/88 98-10
>http://www.raylase.de
>
>District Court Munich, HRB 131450
>
>Board: Peter von Jan (CEO)
>
>Supervisory Board: Dr. Ulrich Lohmann (Chairman)
>
>
>Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
>E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
>Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
>die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
>This e-mail may contain confidential and/or privileged information. If
>you are not the intended recipient (or have received this e-mail in
>error) please notify the sender immediately and destroy this e-mail.
>Any unauthorized copying, disclosure or distribution of the material in
>this e-mail is strictly forbidden.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Conflicts between init-ifupdown and connmand? and static ip configuration

2015-07-29 Thread Daniel.
Hi all,

I'm using Poky 1.7(Yocto Dizzy) and I see that both (init-ifupdown and
connmand) is installed. Since connmand starts at boot it mess the
configurations placed on /etc/network/interfaces. Isn't this a bug? I think
is confuse to have two packages that do same thing installed at same time,
also, since connman is a new project, users may be fooled by connmand
messing /etc/network/interfaces configuration, as I was.

To get static ip working I remove the execution permission from
/etc/init.d/networking and use connmanctl config  --ipv4 manual IP
NM GW. Wich seems an ugly work around for me.

I see that connman is pulled by connman-gnome that is pulled by
packagegroup-core-x11-sato, and that init-ifupdown is pulled by
packagegroup-core-boot.

Best regards,
Cheers

-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [Yocto][OpenEmbedded] [Arago] - "kernel-devicetree" Cannot build Runtime dependency

2015-07-29 Thread Roosemberth Palacios
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello, I'm working on a custom image for ti's am335x chip. Still, I
try to build my image, but at the end I get

[...]
| Collected errors:
|  * satisfy_dependencies_for: Cannot satisfy the following
dependencies for domosafety-userspace-1.0:
|  *kernel-devicetree * kernel-devicetree *
|  * opkg_install_cmd: Cannot install package domosafety-userspace-1.0.
[...]

I'm using a custom kernel which was provided by the hardware
manufacturer. I was able to build {MACHINE="CBoxNAND.conf" bitbake
custom-base-image} (from TI's Sitiara Linux Training:
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Getting_Started_with_Openembedded)

Then, we just replaced the kernel source by the hw manufacturer's one
(note the .tar as the kernel source). Device tree is in the good place
in the kernel sources (arch/arm/boot/dts/cbox-NAND.dt{s,b}). But still
I can't manage to build. I had to copy paste the "linux-dtb.inc" at
the end of the recipe as it wasn't getting loaded (why?). And I
changed from do_install_append to do_compile_kernelmodules_append in
order that code to run.

build command:
MACHINE="CBoxNAND" bitbake core-image-domosafety -DDD | tee
/tmp/logCBoxNAND.core-image-domosafety

The complete log file is at: http://www.pasteall.org/59962

I'll leave down here part of important files.


Best Regards!
Roosembert Palacios

- -- "conf/machine/CBoxNAND.conf"

#@TYPE: Machine
#@NAME: AM335x EVM
#@DESCRIPTION: Machine configuration for Domosafety's CBox NAND Storage

require conf/machine/include/ti33x.inc

XSERVER = ""
GUI_MACHINE_CLASS = ""
MACHINE_FEATURES = "kernel26 apm usbhost vfat ext2 ethernet"
IMAGE_FEATURES += "package-management"

IMAGE_FSTYPES += "ubi tar.gz"

SERIAL_CONSOLE = "115200 ttyO0"
MKUBIFS_ARGS = "-F -m 2048 -e 131072 -c 3836"
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"

PREFERRED_VERSION_linux-libc-headers_CBoxNAND = "3.2"
PREFERRED_PROVIDER_virtual/kernel_CBoxNAND = "linux-domosafety"
PREFERRED_PROVIDER_virtual/bootloader_CBoxNAND = "u-boot-domosafety"
PREFERRED_PROVIDER_virtual/uenv_CBoxNAND = "uenv-domosafety-nand"
PREFERRED_PROVIDER_kernel_CBoxNAND = "linux-domosafety"
PREFERRED_PROVIDER_u-boot_CBoxNAND = "u-boot-domosafety"

PREFERRED_PROVIDER_ltp-ddt_CBoxNAND = "ltp-ddt-legacy"
PREFERRED_PROVIDER_virtual/gettext = "gettext"

RDEPENDS_kernel-base += "kernel-devicetree"
KERNEL_IMAGETYPE = "uImage"
UBOOT_MACHINE="zigBeeBox_secured_config"


- -- "recipes-core/images/core-image-domosafety_1.0.bb"
DESCRIPTION = "DomoSafety Image"
export IMAGE_BASENAME = "core-image-domosafety"

# IMAGE_INSTALL += "domosafety-BareImage"
IMAGE_INSTALL = "domosafety-userspace-1.0 packagegroup-core-boot
${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "MIT"

IMAGE_ROOTFS_SIZE = "524288"
IMAGE_FEATURES += " ssh-server-openssh package-management "

inherit core-image


- -- "linux-domosafety_3.13.43.bb" 

LICENSE = "GPLv2"
KERNEL_IMAGETYPE = "uImage"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "CBoxNAND"
KERNEL_DEVICETREE = "cbox-NAND.dts"

DEFAULT_PREFERENCE = "1"

inherit kernel
# TI's
require recipes-kernel/linux/setup-defconfig.inc

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"
IMAGE_INSTALL_append = " kernel-image "
INITRAMFS_IMAGE = "initramfs-cbox-normal"

# Add a run-time dependency for the PM firmware to be installed on the
target file system.
RDEPENDS_kernel-base_append_CBoxNAND = " am33x-cm3"

# Default is to package all dtb files for ti33x devices unless
building for the specific beaglebone machine.
KERNEL_DEVICETREE_CBoxNAND = "cbox-NAND.dts "

S = "${WORKDIR}/linux-${PV}-am335x"
B = "${S}"

PR = "devel6"
MACHINE_KERNEL_PR_append = "r+${PR}"

EXTRA_OEMAKE_append += " LOADADDR=${UBOOT_ENTRYPOINT} "

SRC_URI = " \
file://${PN}_${PV}/am335x-pm-firmware.bin;name=pm-firmware \
file://${PN}_${PV}/cbox-domosafety.defconfig;name=kconfig \
file://${PN}_${PV}/linux-${PV}-am335x.tar;name=kernel \
"

SRC_URI[kernel.md5sum] = "3d5b4539183a0f4c7634ff728ec61707"
SRC_URI[pm-firmware.md5sum] = "c571cf09f994d5fd8750338618cafa0b"
SRC_URI[kconfig.md5sum] = "22be214b4fd6ffa8d2da6a4b895d722a"

do_fetch_append() {
os.system("cp ${WORKDIR}/${PN}_${PV}/am335x-pm-firmware.bin ${S}/
2>>${WORKDIR}/Failure ")
os.system("cp ${WORKDIR}/${PN}_${PV}/cbox-domosafety.defconfig
${WORKDIR}/defconfig 2>>${WORKDIR}/Failure ")
os.system("tree $(WORKDIR) -L 3 &>>${WORKDIR}/Failure")
}

do_configure_append() {
cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.lzma"
${S}/initramfs.cpio.lzma
}

pkg_postinst_kernel-image() {
if [ "x$D" = "x" ]; then
/usr/sbin/flash_erase /dev/mtd2 0 0
/bin/dd if=/boot/uImage of=/dev/mtd2 bs=131072 conv=sync
fi
update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION

Re: [yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Burton, Ross
On 29 July 2015 at 15:40, Laurent Joli  wrote:

> But How can do that in my configure file of asterisk ?
>

If that is a proper autoconf configure script then remove your
do_configure() task and just inherit autotools.  You'll also want to
inherit pkgconfig.

http://people.freedesktop.org/~dbn/pkg-config-guide.html#using shows how to
use pkgconfig, as you're invoking it from a configure script you can use
the macros at the end of that chapter (PKG_CHECK_MODULES, normally).

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


Re: [yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Gary Thomas

On 2015-07-29 07:25, Laurent Joli wrote:


Hi Gary,

2015-07-29 15:22 GMT+02:00 Gary Thomas mailto:g...@mlbassoc.com>>:

On 2015-07-29 07:14, Laurent Joli wrote:


Hi everybody,

I am try to build an recipe for asterisk 13.1.1 but I have some errors.

I will show you my recipe :

/**/
DESCRIPTION = "asterisk PBX"
DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
HOMEPAGE = "http://www.asterisk.org";
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"

PR = "0"

SRC_URI = 
"http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz




 \

 file://asterisk.init"

SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
SRC_URI[sha256sum] = 
"070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"

EXTRA_OECONF = " \
  --without-curses \
  --without-gtk2 \
  --without-isdnnet \
  --without-misdn \
  --without-nbs \
  --with-ncurses \
  --without-netsnmp \
  --without-newt \
  --without-ogg \
  --without-osptk \
  --without-popt \
  --without-pri \
  --without-radius \
  --without-sdl \
  --without-spandsp \
  --without-suppserv \
  --without-tds \
  --without-termcap \
  --without-tinfo \
  --without-vorbis \
  --without-vpb \
  --without-postgres \
  --without-lua \
  --disable-xmldoc \
"

inherit update-rc.d

FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"


INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_NAME_${PN} = "asterisk"
INITSCRIPT_PARAMS_${PN} = "defaults 29 29"

PACKAGES =+ "${PN}-moh"

DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"


do_configure() {
  echo "begin configure asterisk"
  ./configure --host=${TARGET_SYS} --build=${BUILD_SYS}  
${EXTRA_OECONF}
}

# Install init script
do_install_append() {
  install -d ${D}${sysconfdir}/init.d
  install -m 0775 ${WORKDIR}/asterisk.init   
${D}${sysconfdir}/init.d/asterisk

  # Remove EN sound files from this package as they are installed by 
"asterisk-sounds-en"
  rm -rf ${D}/var/lib/asterisk/sounds/en
}

FILES_${PN} += "${sysconfdir}/init.d/asterisk \
  /run/asterisk "
//

When I build my recipe , I have  this log :

////
checking for utime.h... yes
| checking arpa/nameser.h usability... yes
| checking arpa/nameser.h presence... yes
| checking for arpa/nameser.h... yes
| checking sys/io.h usability... yes
| checking sys/io.h presence... yes
| checking for sys/io.h... yes
| checking for initscr in -lncurses... yes
| checking curses.h usability... yes
| checking curses.h presence... yes
| checking for curses.h... yes
| checking for uuid_generate_random in -luuid... yes
| checking uuid/uuid.h usability... yes
| checking uuid/uuid.h presence... yes
| checking for uuid/uuid.h... yes
| checking for uuid_generate_random in -le2fs-uuid... no
| checking for uuid_generate_random... no
| checking for json_dumps in -ljansson... yes
| checking jansson.h usability... yes
| checking jansson.h presence... yes
| checking for jansson.h... yes
| checking for arm-poky-linux-gnueabi-xml2-config... no
| checking for xml2-config... 
/media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
| configure: *** The Asterisk menuselect tool requires the 'libxml2' 
development package.
| configure: *** Please install the 'libxml2' development package.
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1

How to add "libxml2-dev" in my recipe ?


Adding this line should do:
   DEPENDS = "libxml2"


As you can see in my second line of recipe I have already add libxml2.


Sorry, I missed that.


But that is strange it said me : configure: *** Please install the 'libxml2' 
de

Re: [yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Burton, Ross
On 29 July 2015 at 14:42, Laurent Joli  wrote:

> | Must specify package names on the command line
>

Looks like you forgot to tell pkgconfig what you are looking for
(libxml-2.0).

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


Re: [yocto] Which repo for meta-altera ?

2015-07-29 Thread Spriggs, Jim
Hi Alex, Dalon, Kevin, Lists

hmmm, so I guess I'm still confused (sorry).

Alex recommends going via the "official" oe layers index, which currently links 
directly to github.com/kraj/meta-altera.

Kevin and Dalon hold out for github.com/altera-opensource/meta-altera, and 
Dalon specifically says "... and repos under any user name in github are forks".

So is there an official ;-) dichotomy between altera and oe?

Thanks for listening...
--
jim


-Ursprüngliche Nachricht-
Von: Alex J Lennon [mailto:ajlen...@dynamicdevices.co.uk]
Gesendet: Mittwoch, 29. Juli 2015 15:10
An: Spriggs, Jim 
Cc: yocto@yoctoproject.org
Betreff: Re: [yocto] Which repo for meta-altera ?



On 28/07/2015 10:10, Spriggs, Jim wrote:
> Hi Guys; confused noob here...
>
> There appear to be (at least) two "official" repos for meta-altera:
>
> github.com/kraj/meta-altera
>
> and
>
> git.rocketboards.org/meta-altera.git
>
>
> So how should I choose between them?
>
> Thanks!
> --
> Jim
>
> Sorry about the company sig.: I can't switch it off.
>

fwiw I would usually start with the official index

http://layers.openembedded.org/layerindex/branch/master/layers/

This seems to point to github

Cheers, Alex




RAYLASE AG
Argelsrieder Feld 2+4
82234 Wessling
Germany
Tel.: +49-(0)8153/88 98-0
Fax: +49-(0)8153/88 98-10
http://www.raylase.de

District Court Munich, HRB 131450

Board: Peter von Jan (CEO)

Supervisory Board: Dr. Ulrich Lohmann (Chairman)


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Laurent Joli
Hello Gary,

2015-07-29 15:38 GMT+02:00 Gary Thomas :

> On 2015-07-29 07:25, Laurent Joli wrote:
>
>>
>> Hi Gary,
>>
>> 2015-07-29 15:22 GMT+02:00 Gary Thomas > g...@mlbassoc.com>>:
>>
>>
>> On 2015-07-29 07:14, Laurent Joli wrote:
>>
>>
>> Hi everybody,
>>
>> I am try to build an recipe for asterisk 13.1.1 but I have some
>> errors.
>>
>> I will show you my recipe :
>>
>> /**/
>> DESCRIPTION = "asterisk PBX"
>> DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
>> HOMEPAGE = "http://www.asterisk.org";
>> LICENSE = "GPLv2"
>> LIC_FILES_CHKSUM =
>> "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"
>>
>> PR = "0"
>>
>> SRC_URI = "
>> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz
>> <
>> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$%7BPV%7D.tar.gz
>> >
>> <
>> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$%7BPV%7D.tar.gz>
>> \
>>
>>  file://asterisk.init"
>>
>> SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
>> SRC_URI[sha256sum] =
>> "070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"
>>
>> EXTRA_OECONF = " \
>>   --without-curses \
>>   --without-gtk2 \
>>   --without-isdnnet \
>>   --without-misdn \
>>   --without-nbs \
>>   --with-ncurses \
>>   --without-netsnmp \
>>   --without-newt \
>>   --without-ogg \
>>   --without-osptk \
>>   --without-popt \
>>   --without-pri \
>>   --without-radius \
>>   --without-sdl \
>>   --without-spandsp \
>>   --without-suppserv \
>>   --without-tds \
>>   --without-termcap \
>>   --without-tinfo \
>>   --without-vorbis \
>>   --without-vpb \
>>   --without-postgres \
>>   --without-lua \
>>   --disable-xmldoc \
>> "
>>
>> inherit update-rc.d
>>
>> FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"
>>
>>
>> INITSCRIPT_PACKAGES = "${PN}"
>> INITSCRIPT_NAME_${PN} = "asterisk"
>> INITSCRIPT_PARAMS_${PN} = "defaults 29 29"
>>
>> PACKAGES =+ "${PN}-moh"
>>
>> DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
>> FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"
>>
>>
>> do_configure() {
>>   echo "begin configure asterisk"
>>   ./configure --host=${TARGET_SYS} --build=${BUILD_SYS}
>> ${EXTRA_OECONF}
>> }
>>
>> # Install init script
>> do_install_append() {
>>   install -d ${D}${sysconfdir}/init.d
>>   install -m 0775 ${WORKDIR}/asterisk.init
>>  ${D}${sysconfdir}/init.d/asterisk
>>
>>   # Remove EN sound files from this package as they are
>> installed by "asterisk-sounds-en"
>>   rm -rf ${D}/var/lib/asterisk/sounds/en
>> }
>>
>> FILES_${PN} += "${sysconfdir}/init.d/asterisk \
>>   /run/asterisk "
>> //
>>
>> When I build my recipe , I have  this log :
>>
>> ////
>> checking for utime.h... yes
>> | checking arpa/nameser.h usability... yes
>> | checking arpa/nameser.h presence... yes
>> | checking for arpa/nameser.h... yes
>> | checking sys/io.h usability... yes
>> | checking sys/io.h presence... yes
>> | checking for sys/io.h... yes
>> | checking for initscr in -lncurses... yes
>> | checking curses.h usability... yes
>> | checking curses.h presence... yes
>> | checking for curses.h... yes
>> | checking for uuid_generate_random in -luuid... yes
>> | checking uuid/uuid.h usability... yes
>> | checking uuid/uuid.h presence... yes
>> | checking for uuid/uuid.h... yes
>> | checking for uuid_generate_random in -le2fs-uuid... no
>> | checking for uuid_generate_random... no
>> | checking for json_dumps in -ljansson... yes
>> | checking jansson.h usability... yes
>> | checking jansson.h presence... yes
>> | checking for jansson.h... yes
>> | checking for arm-poky-linux-gnueabi-xml2-config... no
>> | checking for xml2-config...
>> /media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
>> | configure: *** The Asterisk menuselect tool requires the
>> 'libxml2' development package.
>> | configure: *** Please install the 'libxml2' development package.
>> | + bb_exit_handler
>> | + r

Re: [yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Laurent Joli
Hi Gary,

2015-07-29 15:22 GMT+02:00 Gary Thomas :

> On 2015-07-29 07:14, Laurent Joli wrote:
>
>>
>> Hi everybody,
>>
>> I am try to build an recipe for asterisk 13.1.1 but I have some errors.
>>
>> I will show you my recipe :
>>
>> /**/
>> DESCRIPTION = "asterisk PBX"
>> DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
>> HOMEPAGE = "http://www.asterisk.org";
>> LICENSE = "GPLv2"
>> LIC_FILES_CHKSUM = "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"
>>
>> PR = "0"
>>
>> SRC_URI = "
>> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz
>> <
>> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$%7BPV%7D.tar.gz>
>> \
>>
>> file://asterisk.init"
>>
>> SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
>> SRC_URI[sha256sum] =
>> "070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"
>>
>> EXTRA_OECONF = " \
>>  --without-curses \
>>  --without-gtk2 \
>>  --without-isdnnet \
>>  --without-misdn \
>>  --without-nbs \
>>  --with-ncurses \
>>  --without-netsnmp \
>>  --without-newt \
>>  --without-ogg \
>>  --without-osptk \
>>  --without-popt \
>>  --without-pri \
>>  --without-radius \
>>  --without-sdl \
>>  --without-spandsp \
>>  --without-suppserv \
>>  --without-tds \
>>  --without-termcap \
>>  --without-tinfo \
>>  --without-vorbis \
>>  --without-vpb \
>>  --without-postgres \
>>  --without-lua \
>>  --disable-xmldoc \
>> "
>>
>> inherit update-rc.d
>>
>> FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"
>>
>>
>> INITSCRIPT_PACKAGES = "${PN}"
>> INITSCRIPT_NAME_${PN} = "asterisk"
>> INITSCRIPT_PARAMS_${PN} = "defaults 29 29"
>>
>> PACKAGES =+ "${PN}-moh"
>>
>> DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
>> FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"
>>
>>
>> do_configure() {
>>  echo "begin configure asterisk"
>>  ./configure --host=${TARGET_SYS} --build=${BUILD_SYS}
>> ${EXTRA_OECONF}
>> }
>>
>> # Install init script
>> do_install_append() {
>>  install -d ${D}${sysconfdir}/init.d
>>  install -m 0775 ${WORKDIR}/asterisk.init
>>  ${D}${sysconfdir}/init.d/asterisk
>>
>>  # Remove EN sound files from this package as they are installed by
>> "asterisk-sounds-en"
>>  rm -rf ${D}/var/lib/asterisk/sounds/en
>> }
>>
>> FILES_${PN} += "${sysconfdir}/init.d/asterisk \
>>  /run/asterisk "
>> //
>>
>> When I build my recipe , I have  this log :
>>
>> ////
>> checking for utime.h... yes
>> | checking arpa/nameser.h usability... yes
>> | checking arpa/nameser.h presence... yes
>> | checking for arpa/nameser.h... yes
>> | checking sys/io.h usability... yes
>> | checking sys/io.h presence... yes
>> | checking for sys/io.h... yes
>> | checking for initscr in -lncurses... yes
>> | checking curses.h usability... yes
>> | checking curses.h presence... yes
>> | checking for curses.h... yes
>> | checking for uuid_generate_random in -luuid... yes
>> | checking uuid/uuid.h usability... yes
>> | checking uuid/uuid.h presence... yes
>> | checking for uuid/uuid.h... yes
>> | checking for uuid_generate_random in -le2fs-uuid... no
>> | checking for uuid_generate_random... no
>> | checking for json_dumps in -ljansson... yes
>> | checking jansson.h usability... yes
>> | checking jansson.h presence... yes
>> | checking for jansson.h... yes
>> | checking for arm-poky-linux-gnueabi-xml2-config... no
>> | checking for xml2-config...
>> /media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
>> | configure: *** The Asterisk menuselect tool requires the 'libxml2'
>> development package.
>> | configure: *** Please install the 'libxml2' development package.
>> | + bb_exit_handler
>> | + ret=1
>> | + echo WARNING: exit code 1 from a shell command.
>> | WARNING: exit code 1 from a shell command.
>> | + exit 1
>>
>> How to add "libxml2-dev" in my recipe ?
>>
>
> Adding this line should do:
>   DEPENDS = "libxml2"
>

As you can see in my second line of recipe I have already add libxml2.
But that is strange it said me : configure: *** Please install the
'libxml2' development package.


>
> --
> 
> Gary Thomas |  Consulting for the
> MLB Associates  |Embedded world
> 
> --
> ___
> 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] [Asterisk] recipe 13.1.1

2015-07-29 Thread Gary Thomas

On 2015-07-29 07:14, Laurent Joli wrote:


Hi everybody,

I am try to build an recipe for asterisk 13.1.1 but I have some errors.

I will show you my recipe :

/**/
DESCRIPTION = "asterisk PBX"
DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
HOMEPAGE = "http://www.asterisk.org";
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"

PR = "0"

SRC_URI = 
"http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz

 \
file://asterisk.init"

SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
SRC_URI[sha256sum] = 
"070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"

EXTRA_OECONF = " \
 --without-curses \
 --without-gtk2 \
 --without-isdnnet \
 --without-misdn \
 --without-nbs \
 --with-ncurses \
 --without-netsnmp \
 --without-newt \
 --without-ogg \
 --without-osptk \
 --without-popt \
 --without-pri \
 --without-radius \
 --without-sdl \
 --without-spandsp \
 --without-suppserv \
 --without-tds \
 --without-termcap \
 --without-tinfo \
 --without-vorbis \
 --without-vpb \
 --without-postgres \
 --without-lua \
 --disable-xmldoc \
"

inherit update-rc.d

FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"


INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_NAME_${PN} = "asterisk"
INITSCRIPT_PARAMS_${PN} = "defaults 29 29"

PACKAGES =+ "${PN}-moh"

DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"


do_configure() {
 echo "begin configure asterisk"
 ./configure --host=${TARGET_SYS} --build=${BUILD_SYS}  ${EXTRA_OECONF}
}

# Install init script
do_install_append() {
 install -d ${D}${sysconfdir}/init.d
 install -m 0775 ${WORKDIR}/asterisk.init   
${D}${sysconfdir}/init.d/asterisk

 # Remove EN sound files from this package as they are installed by 
"asterisk-sounds-en"
 rm -rf ${D}/var/lib/asterisk/sounds/en
}

FILES_${PN} += "${sysconfdir}/init.d/asterisk \
 /run/asterisk "
//

When I build my recipe , I have  this log :

////
checking for utime.h... yes
| checking arpa/nameser.h usability... yes
| checking arpa/nameser.h presence... yes
| checking for arpa/nameser.h... yes
| checking sys/io.h usability... yes
| checking sys/io.h presence... yes
| checking for sys/io.h... yes
| checking for initscr in -lncurses... yes
| checking curses.h usability... yes
| checking curses.h presence... yes
| checking for curses.h... yes
| checking for uuid_generate_random in -luuid... yes
| checking uuid/uuid.h usability... yes
| checking uuid/uuid.h presence... yes
| checking for uuid/uuid.h... yes
| checking for uuid_generate_random in -le2fs-uuid... no
| checking for uuid_generate_random... no
| checking for json_dumps in -ljansson... yes
| checking jansson.h usability... yes
| checking jansson.h presence... yes
| checking for jansson.h... yes
| checking for arm-poky-linux-gnueabi-xml2-config... no
| checking for xml2-config... 
/media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
| configure: *** The Asterisk menuselect tool requires the 'libxml2' 
development package.
| configure: *** Please install the 'libxml2' development package.
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1

How to add "libxml2-dev" in my recipe ?


Adding this line should do:
  DEPENDS = "libxml2"

--

Gary Thomas |  Consulting for the
MLB Associates  |Embedded world

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


[yocto] [Asterisk] recipe 13.1.1

2015-07-29 Thread Laurent Joli
Hi everybody,

I am try to build an recipe for asterisk 13.1.1 but I have some errors.

I will show you my recipe :

/**/
DESCRIPTION = "asterisk PBX"
DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
HOMEPAGE = "http://www.asterisk.org";
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"


PR = "0"

SRC_URI = "
http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz
\
   file://asterisk.init"

SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
SRC_URI[sha256sum] =
"070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"


EXTRA_OECONF = " \
--without-curses \
--without-gtk2 \
--without-isdnnet \
--without-misdn \
--without-nbs \
--with-ncurses \
--without-netsnmp \
--without-newt \
--without-ogg \
--without-osptk \
--without-popt \
--without-pri \
--without-radius \
--without-sdl \
--without-spandsp \
--without-suppserv \
--without-tds \
--without-termcap \
--without-tinfo \
--without-vorbis \
--without-vpb \
--without-postgres \
--without-lua \
--disable-xmldoc \
"

inherit update-rc.d

FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"


INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_NAME_${PN} = "asterisk"
INITSCRIPT_PARAMS_${PN} = "defaults 29 29"

PACKAGES =+ "${PN}-moh"

DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"


do_configure() {
echo "begin configure asterisk"
./configure --host=${TARGET_SYS} --build=${BUILD_SYS}  ${EXTRA_OECONF}
}

# Install init script
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0775 ${WORKDIR}/asterisk.init
${D}${sysconfdir}/init.d/asterisk

# Remove EN sound files from this package as they are installed by
"asterisk-sounds-en"
rm -rf ${D}/var/lib/asterisk/sounds/en
}

FILES_${PN} += "${sysconfdir}/init.d/asterisk \
/run/asterisk "
//

When I build my recipe , I have  this log :

////
checking for utime.h... yes
| checking arpa/nameser.h usability... yes
| checking arpa/nameser.h presence... yes
| checking for arpa/nameser.h... yes
| checking sys/io.h usability... yes
| checking sys/io.h presence... yes
| checking for sys/io.h... yes
| checking for initscr in -lncurses... yes
| checking curses.h usability... yes
| checking curses.h presence... yes
| checking for curses.h... yes
| checking for uuid_generate_random in -luuid... yes
| checking uuid/uuid.h usability... yes
| checking uuid/uuid.h presence... yes
| checking for uuid/uuid.h... yes
| checking for uuid_generate_random in -le2fs-uuid... no
| checking for uuid_generate_random... no
| checking for json_dumps in -ljansson... yes
| checking jansson.h usability... yes
| checking jansson.h presence... yes
| checking for jansson.h... yes
| checking for arm-poky-linux-gnueabi-xml2-config... no
| checking for xml2-config...
/media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
| configure: *** The Asterisk menuselect tool requires the 'libxml2'
development package.
| configure: *** Please install the 'libxml2' development package.
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1

How to add "libxml2-dev" in my recipe ?

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


Re: [yocto] Which repo for meta-altera ?

2015-07-29 Thread Alex J Lennon


On 28/07/2015 10:10, Spriggs, Jim wrote:
> Hi Guys; confused noob here...
>
> There appear to be (at least) two "official" repos for meta-altera:
>
> github.com/kraj/meta-altera
>
> and
>
> git.rocketboards.org/meta-altera.git
>
>
> So how should I choose between them?
>
> Thanks!
> --
> Jim
>
> Sorry about the company sig.: I can't switch it off.
>

fwiw I would usually start with the official index

http://layers.openembedded.org/layerindex/branch/master/layers/

This seems to point to github

Cheers, Alex

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


[yocto] [meta-raspberrypi] Patches in queue

2015-07-29 Thread Andrei Gherzan
Hello all,

I know there a some patches in queue. The problem is that I won't be able
to take care of them until 7th of August. Basically vacation + my laptop
broke and I'm waiting for a replacement. So please bear with me.

Thanks for understanding,
Andrei
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi

2015-07-29 Thread Burton, Ross
On 24 July 2015 at 00:06, Herve Jourdain  wrote:

> The point is that many people are turning to Poky for generating their
> first Yocto-based distribution for RaspberryPi. And out of the box, if
> using system, the network part doesn’t work.
>
>
Are these users building images that contain connman?  If that doesn't work
out of the box on RPi, that's a bug (and the last time I tried it, it
worked fine).

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


Re: [yocto] How to check the version of Yocto

2015-07-29 Thread Wu, DaweiX
Thanks Paul for your quick reply. 

-Original Message-
From: Paul Eggleton [mailto:paul.eggle...@linux.intel.com] 
Sent: Wednesday, July 29, 2015 17:41 PM
To: Wu, DaweiX
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] How to check the version of Yocto

Hi Dawei,

On Wednesday 29 July 2015 09:03:01 Wu, DaweiX wrote:
> Hi, as we know ,there are versions like 1.8, 1.8.1, 1.9 , ... , so how 
> can I check this version? I only know 'bitbake --version' .

Perhaps most definitively, If you are using a clone of the poky repository, in 
meta-yocto/conf/distro/poky.conf you should see DISTRO_VERSION set to the 
version. If you are using the default of DISTRO = "poky" you'll se this 
reported in the information printed at the start of every bitbake build 
execution.

Cheers,
Paul

-- 

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


Re: [yocto] How to check the version of Yocto

2015-07-29 Thread Paul Eggleton
Hi Dawei,

On Wednesday 29 July 2015 09:03:01 Wu, DaweiX wrote:
> Hi, as we know ,there are versions like 1.8, 1.8.1, 1.9 , ... , so how can I
> check this version? I only know 'bitbake --version' .

Perhaps most definitively, If you are using a clone of the poky repository, in
meta-yocto/conf/distro/poky.conf you should see DISTRO_VERSION set to the 
version. If you are using the default of DISTRO = "poky" you'll se this 
reported in the information printed at the start of every bitbake build 
execution.

Cheers,
Paul

-- 

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


[yocto] How to check the version of Yocto

2015-07-29 Thread Wu, DaweiX
Hi, as we know ,there are versions like 1.8, 1.8.1, 1.9 , ... , so how can I 
check this version? I only know 'bitbake --version' .





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


Re: [yocto] Including Libavformat

2015-07-29 Thread Paul Eggleton
Hi Ryan,

On Tuesday 28 July 2015 11:10:49 Ryan Soussan wrote:
> Is there a way to include libavformat without including ffmpeg or libav?
> Libav and ffmpeg seem to both require a commericial license and we're
> trying to avoid that.

One way would be to configure libav/ffmpeg appropriately (see libav/ffmpeg 
documentation) and then in the absence of commercial license-requiring 
components, you could presumably clear the LICENSE_FLAGS in the same bbappend.

(Not a lawyer and this is not legal advice.)

Cheers,
Paul

-- 

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