[yocto] ADT issue

2015-05-25 Thread Raghavendra Kakarla
Hi,


I am using the ADT tool for developing and debugging the application.


Now i am comfortable with the Yocto ADT for develop and debug applications 
which have either autotool support or makefile support.


But we want to develop the application which have the scon script support using 
the ADT.


So, Could you please help in how to build the scon support packages using the 
ADT.


Thanks in Advance.


Regards,

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


[yocto] [meta-raspberrypi][PATCHv2 1/2] devicetree: auto-disable dts for old kernels

2015-05-25 Thread Petter Mabäcker
After '6392a63 rpi-base.inc: Use KERNEL_DEVICETREE by default' was
introduced, kernel versions < 3.18 might not be buildable. Since full
device tree support was introduced in 3.18 this change ensures that all
kernel < 3.18 will automatically disable device tree.

Signed-off-by: Petter Mabäcker 
---
 classes/linux-raspberrypi-base.bbclass | 39 ++
 classes/sdcard_image-rpi.bbclass   | 15 +++-
 recipes-kernel/linux/linux-raspberrypi.inc |  4 ++-
 3 files changed, 51 insertions(+), 7 deletions(-)
 create mode 100644 classes/linux-raspberrypi-base.bbclass

diff --git a/classes/linux-raspberrypi-base.bbclass 
b/classes/linux-raspberrypi-base.bbclass
new file mode 100644
index 000..40beef1
--- /dev/null
+++ b/classes/linux-raspberrypi-base.bbclass
@@ -0,0 +1,39 @@
+inherit linux-kernel-base
+
+
+def get_dts(d, ver):
+staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR", True)
+dts = d.getVar("KERNEL_DEVICETREE", True)
+
+# d.getVar() might return 'None' as a normal string
+# leading to 'is None' check isn't enough.
+# TODO: Investigate if this is a bug in bitbake
+if ver is None or ver == "None":
+''' if 'ver' isn't set try to grab the kernel version
+from the kernel staging '''
+ver = get_kernelversion_file(staging_dir)
+
+if ver is not None:
+min_ver = ver.split('.', 3)
+else:
+return dts
+
+# Always turn off device tree support for kernel's < 3.18
+try:
+if int(min_ver[0]) <= 3:
+if int(min_ver[1]) < 18:
+dts = ""
+except IndexError:
+min_ver = None
+
+return dts
+
+
+def split_overlays(d, out):
+dts = get_dts(d, None)
+if out:
+overlays = oe.utils.str_filter_out('\S+\-overlay\.dtb$', dts, d)
+else:
+overlays = oe.utils.str_filter('\S+\-overlay\.dtb$', dts, d)
+
+return overlays
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 1ff664d..7592cc1 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -1,4 +1,5 @@
 inherit image_types
+inherit linux-raspberrypi-base
 
 #
 # Create an image that can by written onto a SD card using dd.
@@ -70,11 +71,6 @@ SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
 # Additional files and/or directories to be copied into the vfat partition 
from the IMAGE_ROOTFS.
 FATPAYLOAD ?= ""
 
-# Device Tree Overlays are assumed to be suffixed by '-overlay.dtb' string and 
will be put in a dedicated folder
-DT_ALL = "${@d.getVar('KERNEL_DEVICETREE', True) or ''}"
-DT_OVERLAYS = "${@oe.utils.str_filter('\S+\-overlay\.dtb$', '${DT_ALL}', d)}"
-DT_ROOT = "${@oe.utils.str_filter_out('\S+\-overlay\.dtb$', '${DT_ALL}', d)}"
-
 IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
 
 IMAGE_CMD_rpi-sdimg () {
@@ -90,6 +86,9 @@ IMAGE_CMD_rpi-sdimg () {
 
echo "Creating filesystem with Boot partition ${BOOT_SPACE_ALIGNED} KiB 
and RootFS ${ROOTFS_SIZE_ALIGNED} KiB"
 
+   # Check if we are building with device tree support
+   DTS="${@get_dts(d, None)}"
+
# Initialize sdcard image file
dd if=/dev/zero of=${SDIMG} bs=1024 count=0 seek=${SDIMG_SIZE}
 
@@ -112,7 +111,11 @@ IMAGE_CMD_rpi-sdimg () {
mcopy -i ${WORKDIR}/boot.img -s 
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin 
::uImage
;;
*)
-   if test -n "${KERNEL_DEVICETREE}"; then
+   if test -n "${DTS}"; then
+   # Device Tree Overlays are assumed to be suffixed by 
'-overlay.dtb' string and will be put in a dedicated folder
+   DT_OVERLAYS="${@split_overlays(d, 0)}"
+   DT_ROOT="${@split_overlays(d, 1)}"
+
# Copy board device trees to root folder
for DTB in ${DT_ROOT}; do
DTB_BASE_NAME=`basename ${DTB} .dtb`
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc 
b/recipes-kernel/linux/linux-raspberrypi.inc
index 84d4f9e..7e36408 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -1,4 +1,5 @@
 require linux.inc
+inherit linux-raspberrypi-base
 
 DESCRIPTION = "Linux Kernel for Raspberry Pi"
 SECTION = "kernel"
@@ -26,7 +27,8 @@ UDEV_GE_141 ?= "1"
 # See 
http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
 python __anonymous () {
 kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
-kerneldt = d.getVar('KERNEL_DEVICETREE', True)
+kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True))
+d.setVar("KERNEL_DEVICETREE", kerneldt)
 
 # Add dependency to 'rpi-mkimage-native' package only if RPi bootloader is 
used with DT-enable kernel
 if kerneldt:
-- 
1.9.1

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

[yocto] [meta-raspberrypi][PATCHv2 2/2] README: fix outdated device tree info

2015-05-25 Thread Petter Mabäcker
After '6392a63 rpi-base.inc: Use KERNEL_DEVICETREE by default' was
introduced, the default value for 3.18+ kernels was changed. Ensure this
is reflected in the README.

Signed-off-by: Petter Mabäcker 
---
 README | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README b/README
index a2ec4ca..3913f41 100644
--- a/README
+++ b/README
@@ -179,7 +179,8 @@ kernels.
   While creating the SDCard image, this modified kernel is put on
   boot partition (as kernel.img) as well as DeviceTree blobs (.dtb 
files).
 
-NOTE: KERNEL_DEVICETREE is empty by default.
+NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always 
disabled for
+  older kernel versions.
 
 3. Extra apps
 =
-- 
1.9.1

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


[yocto] [meta-raspberrypi][PATCHv2 0/2] kernel fixes

2015-05-25 Thread Petter Mabäcker
The following changes since commit 6ef9d94a2c2588dcefe442577ef6ae5bbe722dec:

  linux-raspberrypi: Update 3.12 branch to latest (2015-05-18 00:48:49 +0200)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib petmab/rpi_kernel_fixes_dts_v2
  
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_kernel_fixes_dts_v2

Petter Mabäcker (2):
  devicetree: auto-disable dts for old kernels
  README: fix outdated device tree info

 README |  3 ++-
 classes/linux-raspberrypi-base.bbclass | 39 ++
 classes/sdcard_image-rpi.bbclass   | 15 +++-
 recipes-kernel/linux/linux-raspberrypi.inc |  4 ++-
 4 files changed, 53 insertions(+), 8 deletions(-)
 create mode 100644 classes/linux-raspberrypi-base.bbclass

-- 
1.9.1

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


Re: [yocto] [meta-raspberrypi][PATCH 1/5] devicetree: auto-disable dts for old kernels

2015-05-25 Thread Petter Mabäcker
 

2015-05-18 00:46 skrev Andrei Gherzan: 

> Hi Petter,
> 
>> + #
Check if we are building with device tree support + DTS="${@get_dts(d,
None)}" # Initialize sdcard image file dd if=/dev/zero of=${SDIMG}
bs=1024 count=0 seek=${SDIMG_SIZE} @@ -112,7 +114,7 @@
IMAGE_CMD_rpi-sdimg () { mcopy -i ${WORKDIR}/boot.img -s
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
::uImage ;; *) - if test -n "${KERNEL_DEVICETREE}"; then + if test -n
"${DTS}"; then # Copy board device trees to root folder for DTB in
${DT_ROOT}; do DTB_BASE_NAME=`basename ${DTB} .dtb`
> 
> I started to
review these patches and test. I have one concern related
> to this
patch. More specifically the fact that even though you check
> for DTS
now, we are still using DT_ROOT (and co) for the next loops
> which use
KERNEL_DEVICETREE. Maybe a better way to do it would be to
> move
>
DT_ALL = "${@d.getVar('KERNEL_DEVICETREE', True) or ''}"
> DT_OVERLAYS =
"${@oe.utils.str_filter('S+-overlay.dtb$',
> '${DT_ALL}', d)}"
> DT_ROOT
= "${@oe.utils.str_filter_out('S+-overlay.dtb$', '${DT_ALL}', d)}"
> ...
after you define DTS and define these based on DTS variable.
> 
>
Regards,
> Andrei

I Agree, it sounds reasonable. I have prepared a new
changeset for this. Have some final testing to do before sending it.
Biggest problem why I didn't fix this in first change was that the
IMAGE_CMD func seems to behave a little different then I thought. I had
problems to use some functionality and expand variables in some
situations, but I think I figured out a way forward... 

Regards Petter


Petter Mabäcker

Technux 
www.technux.se
 -- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [Recipe reporting system] Upgradable recipe name list

2015-05-25 Thread recipe-report
This mail was sent out by Recipe reporting system.

This message list those recipes which need to be upgraded. If maintainers
believe some of them needn't to upgrade this time, they can fill in
RECIPE_NO_UPDATE_REASON_pn-"xxx" in upstream_tracking files to ignore this
recipe remainder until newer upstream version was detected.

Example:
RECIPE_NO_UPDATE_REASON_pn-"xxx" = "Not upgrade to 2.0 is unstable"

You can check the detail information at:

http://packages.yoctoproject.org/

Package   VersionUpstream version  Maintainer   
NoUpgradeReason
  -    ---  
--
nfs-utils 1.3.1  1.3.2 Alejandro Hernandez
midori0.5.8  0.5.10Alejandro Hernandez
python-smmap  0.8.2  0.9.0 Alejandro Hernandez
python2.7.9  3.5.0a4   Alejandro Hernandez
which 2.20   2.21  Alejandro Hernandez
gnome-icon-theme  2.31.0 3.12.0Alejandro Hernandez  
waiting for the sato gtk3 port
jpeg  8d 9aAníbal Limón 
webkit-gtk 1.8.3 doesn't wo...
mc4.8.13 4.8.14Aníbal Limón
screen4.0.3  4.2.1 Aníbal Limón
nettle2.7.1  3.1rc3Armin Kuster 
3.0.0 breaks gnutls, api ch...
linux-libc-headers3.19   3.19.8Bruce Ashfield
console-tools 0.3.2  1999.03.02Chen Qi
dbus-test 1.8.10 1.9.16Chen Qi
systemd   219+gitX   21522eade6dd8422b...  Chen Qi
util-linux2.26.1 2.26.2Chen Qi
gawk  4.1.1  4.1.3 Chen Qi
iproute2  3.17.0 4.0.0 Cristian Iorga
libpcap   1.6.2  1.7.3 Cristian Iorga
wpa-supplicant2.32.4   Cristian Iorga
libvorbis 1.3.4  1.3.5 Cristian Iorga
libatomics-ops7.27.4.0 Cristian Iorga
speex 1.2rc1 1.2rc2Cristian Iorga
db6.0.30 6.1.23.NC Cristian Iorga   
API compatibility issue
libical   1.0.0  1.0.1 Cristian Iorga
libtirpc  0.2.5  0.3.0 Cristian Iorga
harfbuzz  0.9.38 0.9.40Cristian Iorga
linux-yocto-rt3.14.36+gitX   3.14.39+gitAUTOIN...  Darren Hart
u-boot-fw-utils   v2015.01+gitX  v2015.04+gitAUTOI...  Denys Dmytriyenko
u-boot-mkimagev2015.01+gitX  v2015.04+gitAUTOI...  Denys Dmytriyenko
u-bootv2015.01+gitX  v2015.04+gitAUTOI...  Denys Dmytriyenko
ncurses   5.920150523  Hongxu Jia
distcc3.13.2rc1Hongxu Jia
qmmp  0.7.7  0.8.4 Hongxu Jia
perl  5.20.0 5.21.11   Hongxu Jia
createrepo0.4.11 0.10.4Hongxu Jia   
Versions after 0.9.* use YU...
gnupg 2.1.2  2.1.4 Hongxu Jia
bash  4.34.3.30Hongxu Jia   
The latest version in yocto...
python-mako   0.9.1  1.0.1 Khem Raj
python-nose   1.2.1  1.3.6 Khem Raj
python-numpy  1.7.0  1.9.2 Khem Raj
python3-distribute0.6.32 0.7.3 Khem Raj
rpm   5.4.14 5.4.15Mark Hatle
libpfm4   4.3.0  4.6.0 Matthew McClintock
gcc-sanitizers4.9.2  5.1.0 No maintainer
debianutils   4.44.5   No maintainer
dropbear  2014.662015.67   Paul Eggleton
cmake 2.8.12.2   3.2.2 Paul Eggleton
dosfstools2.11   3.0.27Paul Eggleton
libav 9.16   11.3  Paul Eggleton
x264  r2265+gitX r2491 Paul Eggleton
qt4-embedded  4.8.6  5.4.1 Paul Eggleton
qt4-x11-free  4.8.6  5.4.1 Paul Eggleton
gpgme 1.4.3  1.5.4 Paul Eggleton
yasm  1.2.0  1.3.0 Paul Eggleton
augeas1.2.0  1.3.0 Paul Eggleton
libgpg-error  1.18   1.19  Paul Eggleton
libev