runqemu-internal: remove sound hardware for vexpressa9
PATCH 1/8 runqemu-internal: remove sound hardware for vexpressa9
--- scripts/runqemu-internal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu-internal +1 -1
@@ -422,7 +422,7 @@ if [ "$MACHINE" = "vexpressa9" ]; then MACHINE_SUBTYPE=vexpress-a9 QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS" export QEMU_AUDIO_DRV="none" - SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -soundhw all " + #SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio " if [ "$FSTYPE" = "tar.bz2" ]; then KERNCMDLINE="root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=tty0 console=ttyAMA0,38400n8 rootwait vmalloc=256MB devtmpfs.mount=0" QEMUOPTIONS="$QEMU_NETWORK_CMD -M $MACHINE_SUBTYPE -cpu cortex-a9 -sd $IMGNAME"
Signature · 1 line
1.7.9.5
PATCH 2/8 meta-ivi: move hardware specifics to meta-ivi-bsp
--- classes/sdcard_image.bbclass | 87 - conf/machine/vexpressa9.conf | 40 - meta-ivi-bsp/classes/sdcard_image.bbclass | 87 + .../recipes-bsp/u-boot/files/no_delay.patch | 13 + .../recipes-bsp/u-boot/u-boot_2011.06.bbappend | 5 + .../xserver-xf86-config/vexpressa9/xorg.conf | 26 + .../xorg-xserver/xserver-xf86-config_0.1.bbappend | 4 + ...-bus-add-the-AF_BUS-socket-address-family.patch | 6387 ++++++++++++++++++++ .../linux/linux-yocto/beagle_qemu.cfg | 5 + .../recipes-kernel/linux/linux-yocto/qemux86.cfg | 13 + .../linux/linux-yocto/qemux86_64.cfg | 13 + .../linux/linux-yocto/vexpress_a9.cfg | 843 +++ .../recipes-kernel/linux/linux-yocto_3.8.bbappend | 25 + recipes-bsp/u-boot/files/no_delay.patch | 13 - recipes-bsp/u-boot/u-boot_2011.06.bbappend | 5 - .../xserver-xf86-config/vexpressa9/xorg.conf | 26 - .../xorg-xserver/xserver-xf86-config_0.1.bbappend | 4 - ...-bus-add-the-AF_BUS-socket-address-family.patch | 6387 -------------------- recipes-kernel/linux/linux-yocto/beagle_qemu.cfg | 5 - recipes-kernel/linux/linux-yocto/qemux86.cfg | 13 - recipes-kernel/linux/linux-yocto/qemux86_64.cfg | 13 - recipes-kernel/linux/linux-yocto/vexpress_a9.cfg | 843 --- recipes-kernel/linux/linux-yocto_3.8.bbappend | 25 - 23 files changed, 7421 insertions(+), 7461 deletions(-) delete mode 100644 classes/sdcard_image.bbclass delete mode 100644 conf/machine/vexpressa9.conf create mode 100644 meta-ivi-bsp/classes/sdcard_image.bbclass create mode 100644 meta-ivi-bsp/recipes-bsp/u-boot/files/no_delay.patch create mode 100644 meta-ivi-bsp/recipes-bsp/u-boot/u-boot_2011.06.bbappend create mode 100644 meta-ivi-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/vexpressa9/xorg.conf create mode 100644 meta-ivi-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto/0001-net-bus-add-the-AF_BUS-socket-address-family.patch create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto/qemux86.cfg create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto/qemux86_64.cfg create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto/vexpress_a9.cfg create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend delete mode 100644 recipes-bsp/u-boot/files/no_delay.patch delete mode 100644 recipes-bsp/u-boot/u-boot_2011.06.bbappend delete mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/vexpressa9/xorg.conf delete mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend delete mode 100644 recipes-kernel/linux/linux-yocto/0001-net-bus-add-the-AF_BUS-socket-address-family.patch delete mode 100644 recipes-kernel/linux/linux-yocto/beagle_qemu.cfg delete mode 100644 recipes-kernel/linux/linux-yocto/qemux86.cfg delete mode 100644 recipes-kernel/linux/linux-yocto/qemux86_64.cfg delete mode 100644 recipes-kernel/linux/linux-yocto/vexpress_a9.cfg delete mode 100644 recipes-kernel/linux/linux-yocto_3.8.bbappend
classes/sdcard_image.bbclass deleted +0 -87
@@ -1,87 +0,0 @@ -inherit image_types - -# -# Create an image that can by written onto a SD card using dd. -# -# The disk layout used is: -# -# 0 -> IMAGE_ROOTFS_ALIGNMENT - reserved for other data -# IMAGE_ROOTFS_ALIGNMENT -> BOOT_SPACE - bootloader and/or kernel -# BOOT_SPACE -> SDIMG_SIZE - rootfs -# - -# Default Free space = 1.3x -# Use IMAGE_OVERHEAD_FACTOR to add more space -# <---------> -# 4KiB 20MiB SDIMG_ROOTFS -# <-----------------------> <----------> <----------------------> -# ------------------------ ------------ ------------------------ ------------------------------- -# | IMAGE_ROOTFS_ALIGNMENT | BOOT_SPACE | ROOTFS_SIZE | IMAGE_ROOTFS_ALIGNMENT | -# ------------------------ ------------ ------------------------ ------------------------------- -# ^ ^ ^ ^ ^ -# | | | | | -# 0 4096 4KiB + 20MiB 4KiB + 20Mib + SDIMG_ROOTFS 4KiB + 20MiB + SDIMG_ROOTFS + 4KiB - - -# Boot partition volume id -BOOTDD_VOLUME_ID ?= "${MACHINE}" - -# Boot partition size [in KiB] -BOOT_SPACE ?= "20480" - -# Set alignment to 4MB [in KiB] -IMAGE_ROOTFS_ALIGNMENT = "4096" - -# Use an uncompressed ext3 by default as rootfs -SDIMG_ROOTFS_TYPE ?= "ext3" -SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" - -IMAGE_DEPENDS_vexpressa9-sdimg = " \ - parted-native \ - mtools-native \ - dosfstools-native \ - virtual/kernel \ - " - -# SD card image name -SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.vexpressa9-sdimg" - -IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" - -IMAGE_CMD_vexpressa9-sdimg () { - # Align partitions - BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1) - BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT}) - SDIMG_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT}) - - # Initialize sdcard image file - dd if=/dev/zero of=${SDIMG} bs=1 count=0 seek=$(expr 1024 \* ${SDIMG_SIZE}) - - # Create partition table - parted -s ${SDIMG} mklabel msdos - # Create boot partition and mark it as bootable - parted -s ${SDIMG} unit KiB mkpart primary fat32 ${IMAGE_ROOTFS_ALIGNMENT} $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) - parted -s ${SDIMG} set 1 boot on - # Create rootfs partition - parted -s ${SDIMG} unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT}) $(expr ${BOOT_SPACE_ALIGNED} \+ ${IMAGE_ROOTFS_ALIGNMENT} \+ ${ROOTFS_SIZE}) - parted ${SDIMG} print - - # Create a vfat image with boot files - BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') - mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS - mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img - - # Add stamp file - echo "${IMAGE_NAME}-${IMAGEDATESTAMP}" > ${WORKDIR}/image-version-info - mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}//image-version-info :: - - # Burn Partitions - dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync - # If SDIMG_ROOTFS_TYPE is a .xz file use xzcat - if [[ "$SDIMG_ROOTFS_TYPE" == *.xz ]] - then - xzcat ${SDIMG_ROOTFS} | dd of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync - else - dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync - fi -}
conf/machine/vexpressa9.conf deleted +0 -40
@@ -1,40 +0,0 @@ -#@TYPE: Machine -#@NAME: vexpress-a9 machine -#@DESCRIPTION: Machine configuration for the vexpress a9 board - -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" - -# Ship all kernel modules by default -MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" - -# Allow for MMC booting (required by the NAND-less) -EXTRA_IMAGEDEPENDS += "" - -# Uncomment the following line to enable the hard floating point abi. Note that -# this breaks some binary libraries and 3D (neither of which ship with -# meta-yocto). For maximum compatibility, leave this disabled. -#DEFAULTTUNE ?= "cortexa8hf-neon" -include conf/machine/include/tune-cortexa9.inc - -IMAGE_CLASSES += "sdcard_image" - -IMAGE_FSTYPES += "tar.bz2 ext3 vexpressa9-sdimg" -EXTRA_IMAGECMD_jffs2 = "-lnp " - -# 2.6.37 and later kernels use OMAP_SERIAL, ttyO2 -# earlier kernels use ttyS2 -SERIAL_CONSOLE = "115200 ttyO2" - -PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" -PREFERRED_VERSION_linux-yocto ?= "3.8%" - -PREFERRED_PROVIDER_jpeg = "jpeg" -PREFERRED_PROVIDER_jpeg-native = "jpeg-native" - -KERNEL_IMAGETYPE = "uImage" - -UBOOT_MACHINE = "ca9x4_ct_vxp_config" -UBOOT_ENTRYPOINT = "0x80008000" -UBOOT_LOADADDRESS = "0x80008000" - -MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat alsa"
meta-ivi-bsp/classes/sdcard_image.bbclass new file +87 -0
87 lines not on this page · raw message
meta-ivi-bsp/recipes-bsp/u-boot/files/no_delay.patch new file +13 -0
@@ -0,0 +1,13 @@ +Index: git/include/configs/omap3_beagle.h +=================================================================== +--- git.orig/include/configs/omap3_beagle.h 2012-01-20 02:19:54.582012450 +0200 ++++ git/include/configs/omap3_beagle.h 2012-01-20 02:20:33.534011227 +0200 +@@ -195,7 +195,7 @@ + /* partition */ + + /* Environment information */ +-#define CONFIG_BOOTDELAY 10 ++#define CONFIG_BOOTDELAY 0 + + #define CONFIG_EXTRA_ENV_SETTINGS \ + "loadaddr=0x82000000\0" \
meta-ivi-bsp/recipes-bsp/u-boot/u-boot_2011.06.bbappend new file +5 -0
@@ -0,0 +1,5 @@ +# Find "files" directory +FILESEXTRAPATHS := "${THISDIR}/files" + +# Patch for removing autostart countdown +SRC_URI_append_imx53qsb += "file://no_delay.patch"
meta-ivi-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/vexpressa9/xorg.conf new file +26 -0
@@ -0,0 +1,26 @@ + +Section "Device" + Identifier "Graphics Controller" + Driver "fbdev" +EndSection + +Section "Monitor" + Identifier "Generic Monitor" + Option "DPMS" +EndSection + +Section "Screen" + Identifier "Default Screen" + Device "Intel Graphics Driver" + Monitor "Generic Monitor" + DefaultDepth 16 +EndSection + +Section "ServerLayout" + Identifier "Default Layout" + Screen "Default Screen" +EndSection + +Section "ServerFlags" + Option "DontZap" "0" +EndSection
meta-ivi-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend new file +4 -0
@@ -0,0 +1,4 @@ +# Append path for meta-ivi layer to include bsp xorg.conf +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PRINC := "${@int(PRINC) + 1}"
meta-ivi-bsp/recipes-kernel/linux/linux-yocto/0001-net-bus-add-the-AF_BUS-socket-address-family.patch new file +6387 -0
2,738 lines not on this page · raw message
meta-ivi-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg new file +5 -0
Lines of this file are not shown. View the raw message.
meta-ivi-bsp/recipes-kernel/linux/linux-yocto/qemux86.cfg new file +13 -0
Lines of this file are not shown. View the raw message.
meta-ivi-bsp/recipes-kernel/linux/linux-yocto/qemux86_64.cfg new file +13 -0
Lines of this file are not shown. View the raw message.
meta-ivi-bsp/recipes-kernel/linux/linux-yocto/vexpress_a9.cfg new file +843 -0
843 lines not on this page · raw message
meta-ivi-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend new file +25 -0
Lines of this file are not shown. View the raw message.
recipes-bsp/u-boot/files/no_delay.patch deleted +0 -13
Lines of this file are not shown. View the raw message.
recipes-bsp/u-boot/u-boot_2011.06.bbappend deleted +0 -5
Lines of this file are not shown. View the raw message.
recipes-graphics/xorg-xserver/xserver-xf86-config/vexpressa9/xorg.conf deleted +0 -26
Lines of this file are not shown. View the raw message.
recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend deleted +0 -4
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-yocto/0001-net-bus-add-the-AF_BUS-socket-address-family.patch deleted +0 -6387
6,387 lines not on this page · raw message
recipes-kernel/linux/linux-yocto/beagle_qemu.cfg deleted +0 -5
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-yocto/qemux86.cfg deleted +0 -13
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-yocto/qemux86_64.cfg deleted +0 -13
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-yocto/vexpress_a9.cfg deleted +0 -843
843 lines not on this page · raw message
recipes-kernel/linux/linux-yocto_3.8.bbappend deleted +0 -25
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
PATCH 3/8 meta-ivi-bsp: layer created
In reply to Holger Behrens--- meta-ivi-bsp/conf/layer.conf | 10 ++++++++ meta-ivi-bsp/conf/machine/vexpressa9.conf | 40 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta-ivi-bsp/conf/layer.conf create mode 100644 meta-ivi-bsp/conf/machine/vexpressa9.conf
meta-ivi-bsp/conf/layer.conf new file +10 -0
@@ -0,0 +1,10 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "ivibsp" +BBFILE_PATTERN_ivibsp = "^${LAYERDIR}/" +BBFILE_PRIORITY_ivibsp = "7"
meta-ivi-bsp/conf/machine/vexpressa9.conf new file +40 -0
@@ -0,0 +1,40 @@ +#@TYPE: Machine +#@NAME: vexpress-a9 machine +#@DESCRIPTION: Machine configuration for the vexpress a9 board + +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +# Ship all kernel modules by default +MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" + +# Allow for MMC booting (required by the NAND-less) +EXTRA_IMAGEDEPENDS += "" + +# Uncomment the following line to enable the hard floating point abi. Note that +# this breaks some binary libraries and 3D (neither of which ship with +# meta-yocto). For maximum compatibility, leave this disabled. +#DEFAULTTUNE ?= "cortexa8hf-neon" +include conf/machine/include/tune-cortexa9.inc + +IMAGE_CLASSES += "sdcard_image" + +IMAGE_FSTYPES += "tar.bz2 ext3 vexpressa9-sdimg" +EXTRA_IMAGECMD_jffs2 = "-lnp " + +# 2.6.37 and later kernels use OMAP_SERIAL, ttyO2 +# earlier kernels use ttyS2 +SERIAL_CONSOLE = "115200 ttyO2" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" +PREFERRED_VERSION_linux-yocto ?= "3.4%" + +PREFERRED_PROVIDER_jpeg = "jpeg" +PREFERRED_PROVIDER_jpeg-native = "jpeg-native" + +KERNEL_IMAGETYPE = "uImage" + +UBOOT_MACHINE = "ca9x4_ct_vxp_config" +UBOOT_ENTRYPOINT = "0x80008000" +UBOOT_LOADADDRESS = "0x80008000" + +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat alsa"
Signature · 1 line
1.7.9.5
PATCH 4/8 linux-yocto: keep support for version 3.4 (LTSI) around
In reply to Holger Behrens--- .../recipes-kernel/linux/linux-yocto_3.4.bbappend | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-ivi-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend
meta-ivi-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend new file +25 -0
@@ -0,0 +1,25 @@ +PRINC := "${@int(PRINC) + 2}" + +# find defconfig path +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +# Kernel configs +SRC_URI_append_beagleboard = " \ + file://beagle_qemu.cfg \ + " + +SRC_URI_append_vexpressa9 = " \ + file://vexpress_a9.cfg \ + " + +SRC_URI_append_qemux86 = " \ + file://qemux86.cfg \ + " + +SRC_URI_append_qemux86-64 = " \ + file://qemux86_64.cfg \ + " + +KMACHINE_vexpressa9 = "beagleboard" +SRCREV_machine_vexpressa9 ?= "${AUTOREV}" +COMPATIBLE_MACHINE_vexpressa9 = "vexpressa9"
Signature · 1 line
1.7.9.5
PATCH 5/8 poky-ivi-systemd.conf: follow poky.conf changes, cleanup
In reply to Holger Behrens* do not require meta/conf/distro/defaultsetup.conf
* set PREFERRED_PROVIDER_jpeg distro wide (instead of machine)
* merge in poky.conf changes done lately
--- conf/distro/poky-ivi-systemd.conf | 60 ++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 8 deletions(-)
conf/distro/poky-ivi-systemd.conf +52 -8
@@ -1,16 +1,33 @@ -require ${COREBASE}/meta/conf/distro/defaultsetup.conf - +DISTRO = "poky-ivi-systemd" +DISTRO_NAME = "Yocto GENIVI Baseline (Poky/meta-ivi)" DISTRO_VERSION = "4.0+snapshot-${DATE}" +DISTRO_CODENAME ="gemini" + +MAINTAINER = "meta-ivi <[email protected]>" + +TARGET_VENDOR = "-poky" + +LAYER_CONF_VERSION ?= "6" + +include conf/distro/include/default-providers-ivi.inc VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_initscripts = "" -include conf/distro/include/default-providers-ivi.inc +DISTRO_FEATURES_append = " bluetooth systemd opengl wayland" +DISTRO_FEATURES_BACKFILL_CONSIDERED_append = "sysvinit" + +PREFERRED_VERSION_linux-yocto ?= "3.4%" +PREFERRED_VERSION_linux-yocto_qemux86 ?= "3.8%" +PREFERRED_VERSION_linux-yocto_qemux86-64 ?= "3.8%" +PREFERRED_VERSION_linux-yocto_qemuarm ?= "3.8%" -DISTRO_FEATURES += " bluetooth systemd opengl " -DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" +PREFERRED_PROVIDER_jpeg = "jpeg" +PREFERRED_PROVIDER_jpeg-native = "jpeg-native" -LAYER_CONF_VERSION = "6" +TCLIBCAPPEND = "" + +QEMU_TARGETS ?= "arm i386 x86_64" XSERVER ?= "xserver-xorg \ xserver-xf86-config \
@@ -28,10 +45,37 @@ XSERVER ?= "xserver-xorg \ ${@base_contains("MACHINE_ARCH", "vexpressa9", "xf86-video-fbdev", "", d)} \ " -MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" - MIRRORS =+ "\ ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" +# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully +# fetch from the network (and warn you if not). To disable the test set +# the variable to be empty. +# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD + +CONNECTIVITY_CHECK_URIS ?= " \ + https://eula-downloads.yoctoproject.org/index.php \ + http://bugs.genivi.org/report.cgi" + +# Default hash policy for distro +BB_SIGNATURE_HANDLER ?= 'OEBasicHash' +# +# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in +# an incompatible way. Such changes should usually be detailed in the commit +# that breaks the format and have been previously discussed on the mailing list +# with general agreement from the core team. +# +OELAYOUT_ABI = "8" + +# QA check settings - a little stricter than the OE-Core defaults +WARN_QA = "textrel files-invalid incompatible-license xorg-driver-abi libdir" +ERROR_QA = "dev-so debug-deps dev-deps debug-files arch pkgconfig la perms \ + useless-rpaths rpaths staticdev ldflags pkgvarcheck already-stripped \ + compile-host-path dep-cmp installed-vs-shipped install-host-path \ + packages-list perm-config perm-line perm-link pkgv-undefined \ + pn-overrides split-strip var-undefined" + +include conf/distro/include/seperatebuilddir.inc +
Signature · 1 line
1.7.9.5
PATCH 6/8 vexpressa9.conf: PREFERRED_PROVIDER_jpeg now set distro wide
In reply to Holger Behrens--- meta-ivi-bsp/conf/machine/vexpressa9.conf | 3 --- 1 file changed, 3 deletions(-)
meta-ivi-bsp/conf/machine/vexpressa9.conf +0 -3
@@ -28,9 +28,6 @@ SERIAL_CONSOLE = "115200 ttyO2" PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "3.4%" -PREFERRED_PROVIDER_jpeg = "jpeg" -PREFERRED_PROVIDER_jpeg-native = "jpeg-native" - KERNEL_IMAGETYPE = "uImage" UBOOT_MACHINE = "ca9x4_ct_vxp_config"
Signature · 1 line
1.7.9.5
PATCH 7/8 packagegroup-core-boot-genivi: follow oe-core core-boot packagegroup changes
In reply to Holger Behrensmerged latest changes from oe-core:
meta/recipes-core/packagegroups/packagegroup-core-boot.bb
--- .../packagegroups/packagegroup-core-boot-genivi.bb | 25 ++++++++++---------- 1 file changed, 13 insertions(+), 12 deletions(-)
recipes-yocto-ivi/packagegroups/packagegroup-core-boot-genivi.bb +13 -12
@@ -1,15 +1,20 @@ +# +# Contains changes by Wind River Systems, 2013-08-08 +# Copyright (c) 2013 Wind River Systems, Inc. # Copyright (C) 2007 OpenedHand Ltd. # +# derived from oe-core: meta/recipes-core/packagegroups/packagegroup-core-boot.bb -DESCRIPTION = "packagegroup for OpenedHand Poky - minimal bootable image" +SUMMARY = "Minimal boot requirements" +DESCRIPTION = "The minimal set of packages required to boot the system" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -PACKAGE_ARCH = "${MACHINE_ARCH}" DEPENDS = "virtual/kernel" -PR = "r10" +PR = "r11" inherit packagegroup +PACKAGE_ARCH = "${MACHINE_ARCH}" + # # Set by the machine configuration with packages essential for device bootup #
@@ -23,26 +28,22 @@ VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps" -PACKAGES = "\ - packagegroup-core-boot-genivi \ -" - -RDEPENDS_packagegroup-core-boot-genivi = "\ +RDEPENDS_${PN} = "\ base-files \ base-passwd \ busybox \ - kmod \ - ${VIRTUAL-RUNTIME_initscripts} \ ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ netbase \ ${VIRTUAL-RUNTIME_login_manager} \ ${VIRTUAL-RUNTIME_init_manager} \ + ${VIRTUAL-RUNTIME_initscripts} \ ${VIRTUAL-RUNTIME_dev_manager} \ ${VIRTUAL-RUNTIME_update-alternatives} \ ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ + kmod \ procps \ util-linux-mount \ " -RRECOMMENDS_packagegroup-core-boot-genivi = "\ +RRECOMMENDS_${PN} = "\ ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"
Signature · 1 line
1.7.9.5
PATCH 8/8 dbus: merge two dbus .bbappend's into one
In reply to Holger BehrensThere were two dbus bbappends (recipes-core-ivi/dbus/dbus_1.6.8.bbappend and recipes-extended/common-api/dbus_1.6.8.bbappend). This have been merged into the first for clarity.
In case a user won't need GENIVI AFBUS or GENIVI COMMON-API support the related patch should now be easy to identify and, if required, easy to disable.
--- ...Message-add-support-for-custom-marshaling.patch | 267 ++++++++++++++++++++ recipes-core-ivi/dbus/dbus_1.6.10.bbappend | 15 +- ...Message-add-support-for-custom-marshaling.patch | 267 -------------------- recipes-extended/common-api/dbus_1.6.10.bbappend | 5 - 4 files changed, 280 insertions(+), 274 deletions(-) create mode 100644 recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch delete mode 100644 recipes-extended/common-api/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch delete mode 100644 recipes-extended/common-api/dbus_1.6.10.bbappend
recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +267 -0
@@ -0,0 +1,267 @@ +From 467a2e307462b02865b35397c572b6048c2934e2 Mon Sep 17 00:00:00 2001 +From: Aleksandar Kanchev <[email protected]> +Date: Mon, 9 Jul 2012 18:09:04 +0200 +Subject: [PATCH] DBusMessage: add support for custom marshaling + +Add functions to support querying and manipulating the message body and +signature. This is useful for code generators, which can generate custom +marshaling functions based on a given IDL. Those functions tend to be +optimized and faster than the generic iterator based marshaling. +--- + dbus/dbus-message.c | 143 +++++++++++++++++++++++++++++++++++---------------- + dbus/dbus-message.h | 13 +++++ + dbus/dbus-string.c | 16 ++++++ + dbus/dbus-string.h | 4 ++ + 4 files changed, 132 insertions(+), 44 deletions(-) + +diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c +index 24ef5ac..fbacfba 100644 +--- a/dbus/dbus-message.c ++++ b/dbus/dbus-message.c +@@ -356,50 +356,6 @@ set_or_delete_string_field (DBusMessage *message, + &value); + } + +-#if 0 +-/* Probably we don't need to use this */ +-/** +- * Sets the signature of the message, i.e. the arguments in the +- * message payload. The signature includes only "in" arguments for +- * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for +- * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from +- * what you might expect (it does not include the signature of the +- * entire C++-style method). +- * +- * The signature is a string made up of type codes such as +- * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also +- * the value of #DBUS_TYPE_INVALID). The macros such as +- * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you +- * may find it useful to use the string forms, such as +- * #DBUS_TYPE_INT32_AS_STRING. +- * +- * An "unset" or #NULL signature is considered the same as an empty +- * signature. In fact dbus_message_get_signature() will never return +- * #NULL. +- * +- * @param message the message +- * @param signature the type signature or #NULL to unset +- * @returns #FALSE if no memory +- */ +-static dbus_bool_t +-_dbus_message_set_signature (DBusMessage *message, +- const char *signature) +-{ +- _dbus_return_val_if_fail (message != NULL, FALSE); +- _dbus_return_val_if_fail (!message->locked, FALSE); +- _dbus_return_val_if_fail (signature == NULL || +- _dbus_check_is_valid_signature (signature)); +- /* can't delete the signature if you have a message body */ +- _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || +- signature != NULL); +- +- return set_or_delete_string_field (message, +- DBUS_HEADER_FIELD_SIGNATURE, +- DBUS_TYPE_SIGNATURE, +- signature); +-} +-#endif +- + /* Message Cache + * + * We cache some DBusMessage to reduce the overhead of allocating +@@ -3370,6 +3326,47 @@ dbus_message_get_sender (DBusMessage *message) + } + + /** ++ * Sets the signature of the message, i.e. the arguments in the ++ * message payload. The signature includes only "in" arguments for ++ * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for ++ * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from ++ * what you might expect (it does not include the signature of the ++ * entire C++-style method). ++ * ++ * The signature is a string made up of type codes such as ++ * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also ++ * the value of #DBUS_TYPE_INVALID). The macros such as ++ * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you ++ * may find it useful to use the string forms, such as ++ * #DBUS_TYPE_INT32_AS_STRING. ++ * ++ * An "unset" or #NULL signature is considered the same as an empty ++ * signature. In fact dbus_message_get_signature() will never return ++ * #NULL. ++ * ++ * @param message the message ++ * @param signature the type signature or #NULL to unset ++ * @returns #FALSE if no memory ++ */ ++dbus_bool_t ++dbus_message_set_signature (DBusMessage *message, ++ const char *signature) ++{ ++ _dbus_return_val_if_fail (message != NULL, FALSE); ++ _dbus_return_val_if_fail (!message->locked, FALSE); ++ _dbus_return_val_if_fail (signature == NULL || ++ _dbus_check_is_valid_signature (signature), FALSE); ++ /* can't delete the signature if you have a message body */ ++ _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || ++ signature != NULL, FALSE); ++ ++ return set_or_delete_string_field (message, ++ DBUS_HEADER_FIELD_SIGNATURE, ++ DBUS_TYPE_SIGNATURE, ++ signature); ++} ++ ++/** + * Gets the type signature of the message, i.e. the arguments in the + * message payload. The signature includes only "in" arguments for + * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for +@@ -4519,6 +4516,64 @@ dbus_message_type_to_string (int type) + } + + /** ++ * Returns pointer to the buffer used to store the message body. ++ * ++ * @param message the message ++ * @return pointer to the message body memory ++ */ ++char* ++dbus_message_get_body (DBusMessage *message) { ++ _dbus_return_val_if_fail (message != NULL, NULL); ++ ++ return _dbus_string_get_data(&(message->body)); ++} ++ ++/** ++ * Adjust the length of the message body buffer. The memory will be reallocated ++ * if the new length is bigger than the already allocated size. ++ * ++ * @see dbus_message_get_body_allocated ++ * @param message the message ++ * @param length the new length of the body ++ * @return #TRUE if successful ++ */ ++dbus_bool_t ++dbus_message_set_body_length (DBusMessage *message, ++ int length) { ++ _dbus_return_val_if_fail (message != NULL, FALSE); ++ _dbus_return_val_if_fail (length >= 0, FALSE); ++ ++ return _dbus_string_set_length(&(message->body), length); ++} ++ ++/** ++ * Gets the length of the message body buffer. ++ * ++ * @param message the message ++ * @param length the new length of the body ++ * @return the length of the body buffer ++ */ ++int ++dbus_message_get_body_length (DBusMessage *message) { ++ _dbus_return_val_if_fail (message != NULL, 0); ++ ++ return _dbus_string_get_length(&(message->body)); ++} ++ ++/** ++ * Gets the allocated memory size used to hold the message body. ++ * ++ * @param message the message ++ * @return size of the allocated message body memory ++ */ ++int ++dbus_message_get_body_allocated (DBusMessage *message) { ++ _dbus_return_val_if_fail (message != NULL, 0); ++ ++ return _dbus_string_get_allocated(&(message->body)); ++} ++ ++/** + * Turn a DBusMessage into the marshalled form as described in the D-Bus + * specification. + * +diff --git a/dbus/dbus-message.h b/dbus/dbus-message.h +index 5500492..55388ac 100644 +--- a/dbus/dbus-message.h ++++ b/dbus/dbus-message.h +@@ -138,6 +138,9 @@ dbus_bool_t dbus_message_set_sender (DBusMessage *message, + DBUS_EXPORT + const char* dbus_message_get_sender (DBusMessage *message); + DBUS_EXPORT ++dbus_bool_t dbus_message_set_signature (DBusMessage *message, ++ const char *signature); ++DBUS_EXPORT + const char* dbus_message_get_signature (DBusMessage *message); + DBUS_EXPORT + void dbus_message_set_no_reply (DBusMessage *message, +@@ -264,6 +267,16 @@ void dbus_message_iter_abandon_container (DBusMessageIter *iter, + DBusMessageIter *sub); + + DBUS_EXPORT ++char* dbus_message_get_body (DBusMessage *message); ++DBUS_EXPORT ++dbus_bool_t dbus_message_set_body_length (DBusMessage *message, ++ int length); ++DBUS_EXPORT ++int dbus_message_get_body_length (DBusMessage *message); ++DBUS_EXPORT ++int dbus_message_get_body_allocated (DBusMessage *message); ++ ++DBUS_EXPORT + void dbus_message_lock (DBusMessage *message); + + DBUS_EXPORT +diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c +index e2eb93b..d8628ba 100644 +--- a/dbus/dbus-string.c ++++ b/dbus/dbus-string.c +@@ -848,6 +848,22 @@ _dbus_string_get_length (const DBusString *str) + } + #endif /* !_dbus_string_get_length */ + ++/* Only have the function if we don't have the macro */ ++#ifndef _dbus_string_get_allocated ++/** ++ * Gets the allocated length of a string (not including nul termination). ++ * ++ * @returns the allocated length. ++ */ ++int ++_dbus_string_get_allocated(const DBusString *str) ++{ ++ DBUS_CONST_STRING_PREAMBLE (str); ++ ++ return real->allocated; ++} ++#endif /* !_dbus_string_get_allocated */ ++ + /** + * Makes a string longer by the given number of bytes. Checks whether + * adding additional_length to the current length would overflow an +diff --git a/dbus/dbus-string.h b/dbus/dbus-string.h +index 2f1ed31..490aea6 100644 +--- a/dbus/dbus-string.h ++++ b/dbus/dbus-string.h +@@ -62,6 +62,7 @@ struct DBusString + */ + #define _dbus_string_get_data(s) ((char*)(((DBusString*)(s))->dummy1)) + #define _dbus_string_get_length(s) (((DBusString*)(s))->dummy2) ++#define _dbus_string_get_allocated(s) (((DBusString*)(s))->dummy3 - _DBUS_STRING_ALLOCATION_PADDING) + #define _dbus_string_set_byte(s, i, b) ((((unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) = (unsigned char) (b)) + #define _dbus_string_get_byte(s, i) (((const unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) + #define _dbus_string_get_const_data(s) ((const char*)(((DBusString*)(s))->dummy1)) +@@ -131,6 +132,9 @@ void _dbus_string_copy_to_buffer_with_nul (const DBusString *str, + #ifndef _dbus_string_get_length + int _dbus_string_get_length (const DBusString *str); + #endif /* !_dbus_string_get_length */ ++#ifndef _dbus_string_get_allocated ++int _dbus_string_get_allocated (const DBusString *str); ++#endif /* !_dbus_string_get_allocated */ + + dbus_bool_t _dbus_string_lengthen (DBusString *str, + int additional_length); +-- +1.7.10.2 +
recipes-core-ivi/dbus/dbus_1.6.10.bbappend +13 -2
@@ -1,5 +1,16 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}" -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" -SRC_URI += "file://dbus_1.6-add-afbus-support.patch" +# add support for GENIVI AF_Bus D-Bus Optimization +# - http://projects.genivi.org/afbus-dbus-optimization/ +SRC_URI_afbus = "file://dbus_1.6-add-afbus-support.patch" + +# add support for GENIVI CommonAPI D-Bus runtime +# - http://projects.genivi.org/commonapi/ +SRC_URI_commonapi = "file://dbus-DBusMessage-add-support-for-custom-marshaling.patch" + +SRC_URI_append = "\ + ${SRC_URI_afbus} \ + ${SRC_URI_commonapi} \ +"
recipes-extended/common-api/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch deleted +0 -267
267 lines not on this page · raw message
recipes-extended/common-api/dbus_1.6.10.bbappend deleted +0 -5
@@ -1,5 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PRINC := "${@int(PRINC) + 1}" - -SRC_URI += "file://dbus-DBusMessage-add-support-for-custom-marshaling.patch" -
Signature · 1 line
1.7.9.5
Re: [meta-ivi][PATCH 8/8] dbus: merge two dbus .bbappend's into one
Hi Holger,
Quoted 323 lines · On Friday 09 August 2013 12:48:50 Holger Behrens wrote:
There were two dbus bbappends (recipes-core-ivi/dbus/dbus_1.6.8.bbappend and recipes-extended/common-api/dbus_1.6.8.bbappend). This have been merged into the first for clarity.
In case a user won't need GENIVI AFBUS or GENIVI COMMON-API support the related patch should now be easy to identify and, if required, easy to disable.
Signed-off-by Holger Behrens <[email protected]>--- ...Message-add-support-for-custom-marshaling.patch | 267 ++++++++++++++++++++ recipes-core-ivi/dbus/dbus_1.6.10.bbappend | 15 +- ...Message-add-support-for-custom-marshaling.patch | 267 -------------------- recipes-extended/common-api/dbus_1.6.10.bbappend | 5 - 4 files changed, 280 insertions(+), 274 deletions(-) create mode 100644recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshali ng.patch delete mode 100644 recipes-extended/common-api/dbus/dbus-DBusMessage-add-support-for-custom-ma rshaling.patch delete mode 100644 recipes-extended/common-api/dbus_1.6.10.bbappend
diff --git a/recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marsha ling.patch b/recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marsha ling.patch new file mode 100644
index 0000000..5f225f3
---/dev/null
+++
b/recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marsha ling.patch @@ -0,0 +1,267 @@recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +59
-0+From 467a2e307462b02865b35397c572b6048c2934e2 Mon Sep 17 00:00:00 2001 +From: Aleksandar Kanchev <[email protected]> +Date: Mon, 9 Jul 2012 18:09:04 +0200 +Subject: [PATCH] DBusMessage: add support for custom marshaling + +Add functions to support querying and manipulating the message body and +signature. This is useful for code generators, which can generate custom +marshaling functions based on a given IDL. Those functions tend to be +optimized and faster than the generic iterator based marshaling. +--- + dbus/dbus-message.c | 143 +++++++++++++++++++++++++++++++++++---------------- + dbus/dbus-message.h | 13 +++++ + dbus/dbus-string.c | 16 ++++++ + dbus/dbus-string.h | 4 ++ + 4 files changed, 132 insertions(+), 44 deletions(-) + +diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c +index 24ef5ac..fbacfba 100644 +--- a/dbus/dbus-message.c ++++ b/dbus/dbus-message.c +@@ -356,50 +356,6 @@ set_or_delete_string_field (DBusMessage *message, + &value); + } + +-#if 0 +-/* Probably we don't need to use this */ +-/** +- * Sets the signature of the message, i.e. the arguments in the +- * message payload. The signature includes only "in" arguments for +- * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for +- * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from +- * what you might expect (it does not include the signature of the +- * entire C++-style method). +- * +- * The signature is a string made up of type codes such as +- * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also +- * the value of #DBUS_TYPE_INVALID). The macros such as +- * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you +- * may find it useful to use the string forms, such as +- * #DBUS_TYPE_INT32_AS_STRING. +- * +- * An "unset" or #NULL signature is considered the same as an empty +- * signature. In fact dbus_message_get_signature() will never return +- * #NULL. +- * +- * @param message the message +- * @param signature the type signature or #NULL to unset +- * @returns #FALSE if no memory +- */ +-static dbus_bool_t +-_dbus_message_set_signature (DBusMessage *message, +- const char *signature) +-{ +- _dbus_return_val_if_fail (message != NULL, FALSE); +- _dbus_return_val_if_fail (!message->locked, FALSE); +- _dbus_return_val_if_fail (signature == NULL || +- _dbus_check_is_valid_signature (signature)); +- /* can't delete the signature if you have a message body */ +- _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0|| +- signature != NULL); +- +- return set_or_delete_string_field (message, +- DBUS_HEADER_FIELD_SIGNATURE, +- DBUS_TYPE_SIGNATURE, +- signature); +-} +-#endif +-+ /* Message Cache
recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +36
-0+ * + * We cache some DBusMessage to reduce the overhead of allocating +@@ -3370,6 +3326,47 @@ dbus_message_get_sender (DBusMessage *message) + } + + /** ++ * Sets the signature of the message, i.e. the arguments in the ++ * message payload. The signature includes only "in" arguments for ++ * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for ++ * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from ++ * what you might expect (it does not include the signature of the ++ * entire C++-style method). ++ * ++ * The signature is a string made up of type codes such as ++ * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also ++ * the value of #DBUS_TYPE_INVALID). The macros such as ++ * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you ++ * may find it useful to use the string forms, such as ++ * #DBUS_TYPE_INT32_AS_STRING. ++ * ++ * An "unset" or #NULL signature is considered the same as an empty ++ * signature. In fact dbus_message_get_signature() will never return ++ * #NULL. ++ * ++ * @param message the message ++ * @param signature the type signature or #NULL to unset ++ * @returns #FALSE if no memory ++ */ ++dbus_bool_t ++dbus_message_set_signature (DBusMessage *message, ++ const char *signature) ++{ ++ _dbus_return_val_if_fail (message != NULL, FALSE); ++ _dbus_return_val_if_fail (!message->locked, FALSE); ++ _dbus_return_val_if_fail (signature == NULL || ++ _dbus_check_is_valid_signature (signature),FALSE); ++ /* can't delete the signature if you have a message body */ ++
_dbus_return_val_if_fail(_dbus_string_get_length(&message->body) == 0
|| ++ signature != NULL, FALSE);
++
++ returnset_or_delete_string_field(message,++ DBUS_HEADER_FIELD_SIGNATURE, ++ DBUS_TYPE_SIGNATURE, ++ signature);++}
++
++/**recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +21
-0+ * Gets the type signature of the message, i.e. the arguments in the + * message payload. The signature includes only "in" arguments for + * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for +@@ -4519,6 +4516,64 @@ dbus_message_type_to_string (int type) + } + + /** ++ * Returns pointer to the buffer used to store the message body. ++ * ++ * @param message the message ++ * @return pointer to the message body memory ++ */ ++char* ++dbus_message_get_body (DBusMessage *message) { ++ _dbus_return_val_if_fail (message != NULL, NULL); ++ ++ return _dbus_string_get_data(&(message->body)); ++} ++ ++/** ++ * Adjust the length of the message body buffer. The memory will bereallocated ++ * if the new length is bigger than the already allocated size.
++ *
++ * @seedbus_message_get_body_allocated
++ * @param message the message
++ * @param length the new length of the body
++ * @return #TRUE if successful
++ */
++dbus_bool_t
++dbus_message_set_body_length (DBusMessage *message,
++ int length) {
++_dbus_return_val_if_fail(message != NULL, FALSE);
++_dbus_return_val_if_fail(length >= 0, FALSE);
++
++ return_dbus_string_set_length(&(message->body), length); ++}
++
++/**
++ * Gets the length of the message body buffer.
++ *
++ * @param message the message
++ * @param length the new length of the body
++ * @return the length of the body buffer
++ */
++int
++dbus_message_get_body_length (DBusMessage *message) {
++_dbus_return_val_if_fail(message != NULL, 0);
++
++ return _dbus_string_get_length(&(message->body));
++}
++
++/**
++ * Gets the allocated memory size used to hold the message body. ++ *
++ * @param message the message
++ * @return size of the allocated message body memory
++ */
++int
++dbus_message_get_body_allocated (DBusMessage *message) { ++_dbus_return_val_if_fail(message != NULL, 0);
++
++ return _dbus_string_get_allocated(&(message->body));
++}
++
++/**recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +8
-0+ * Turn a DBusMessage into the marshalled form as described in the D-Bus + * specification. + * +diff --git a/dbus/dbus-message.h b/dbus/dbus-message.h +index 5500492..55388ac 100644 +--- a/dbus/dbus-message.h ++++ b/dbus/dbus-message.h +@@ -138,6 +138,9 @@ dbus_bool_t dbus_message_set_sender(DBusMessage *message, +
DBUS_EXPORT
+ const char*dbus_message_get_sender(DBusMessage *message);
+DBUS_EXPORT
++dbus_bool_tdbus_message_set_signature(DBusMessage *message,
++ const char *signature);
++DBUS_EXPORT
+ const char*dbus_message_get_signature(DBusMessage *message);
+DBUS_EXPORT
+ voiddbus_message_set_no_reply(DBusMessage *message,
+@@ -264,6 +267,16 @@ voiddbus_message_iter_abandon_container
(DBusMessageIter *iter, +
DBusMessageIter *sub); +
+DBUS_EXPORT
++char*dbus_message_get_body(DBusMessage *message);
++DBUS_EXPORT
++dbus_bool_tdbus_message_set_body_length(DBusMessage *message,
++ int length);
++DBUS_EXPORT
++intdbus_message_get_body_length(DBusMessage *message);
++DBUS_EXPORT
++intdbus_message_get_body_allocated(DBusMessage *message);
++
++DBUS_EXPORT
+ voiddbus_message_lock(DBusMessage *message);recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +38
-0+ + DBUS_EXPORT +diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c +index e2eb93b..d8628ba 100644 +--- a/dbus/dbus-string.c ++++ b/dbus/dbus-string.c +@@ -848,6 +848,22 @@ _dbus_string_get_length (const DBusString *str) + } + #endif /* !_dbus_string_get_length */ + ++/* Only have the function if we don't have the macro */ ++#ifndef _dbus_string_get_allocated ++/** ++ * Gets the allocated length of a string (not including nul termination). ++ * ++ * @returns the allocated length. ++ */ ++int ++_dbus_string_get_allocated(const DBusString *str) ++{ ++ DBUS_CONST_STRING_PREAMBLE (str); ++ ++ return real->allocated; ++} ++#endif /* !_dbus_string_get_allocated */ ++ + /** + * Makes a string longer by the given number of bytes. Checks whether + * adding additional_length to the current length would overflow an +diff --git a/dbus/dbus-string.h b/dbus/dbus-string.h +index 2f1ed31..490aea6 100644 +--- a/dbus/dbus-string.h ++++ b/dbus/dbus-string.h +@@ -62,6 +62,7 @@ struct DBusString + */ + #define _dbus_string_get_data(s) ((char*)(((DBusString*)(s))->dummy1)) + #define _dbus_string_get_length(s) (((DBusString*)(s))->dummy2) ++#define _dbus_string_get_allocated(s) (((DBusString*)(s))->dummy3 -
_DBUS_STRING_ALLOCATION_PADDING) + #define_dbus_string_set_byte(s, i, b)((((unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) = (unsigned char) (b)) + #define_dbus_string_get_byte(s, i)(((const unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) + #define_dbus_string_get_const_data(s)((const char*)(((DBusString*)(s))->dummy1))
+@@ -131,6 +132,9 @@ void_dbus_string_copy_to_buffer_with_nul
(const DBusString *str, + #ifndef_dbus_string_get_length
+ int_dbus_string_get_length(const DBusString *str);
+ #endif /* !_dbus_string_get_length */
++#ifndef_dbus_string_get_allocated
++int_dbus_string_get_allocated(const DBusString *str);
++#endif /* !_dbus_string_get_allocated */recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch new file +3
-0+ + dbus_bool_t _dbus_string_lengthen (DBusString *str, + int
additional_length); +--
+1.7.10.2(quoted diff) +1
-0+(quoted diff) +0
-0b/recipes-core-ivi/dbus/dbus_1.6.10.bbappend index 5afcdba..685d98c 100644
recipes-core-ivi/dbus/dbus_1.6.10.bbappend +8
-2@@ -1,5 +1,16 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}" -PRINC := "${@int(PRINC) + 2}" +PRINC := "${@int(PRINC) + 3}" -SRC_URI += "file://dbus_1.6-add-afbus-support.patch" +# add support for GENIVI AF_Bus D-Bus Optimization +# - http://projects.genivi.org/afbus-dbus-optimization/ +SRC_URI_afbus = "file://dbus_1.6-add-afbus-support.patch" + +# add support for GENIVI CommonAPI D-Bus runtime +# - http://projects.genivi.org/commonapi/ +SRC_URI_commonapi ="file://dbus-DBusMessage-add-support-for-custom-marshaling.patch" +
recipes-core-ivi/dbus/dbus_1.6.10.bbappend line 15
Quoted 4 lines
recipes-core-ivi/dbus/dbus_1.6.10.bbappend +4
-0+SRC_URI_append = "\ + ${SRC_URI_afbus} \ + ${SRC_URI_commonapi} \ +"
I'd suggest not using lowercase afbus/commonapi here because it makes these look like overrides.
Cheers,
Paul