Skip to contentSkip to conversation

Patches from O.S. Systems' tree

PATCH Applied Otavio Salvador 3 participants 9 messages Apr 22, 2012 – Apr 27, 2012

lore
Share & tools
lore
#0 lore raw

cover Patches from O.S. Systems' tree

The u-boot new release has been tested on i.MX53 and has D_P = -1 to allow people to test it. Please give them a test.

The following changes since commit b19af63a201933038a044f29570710fe38365f28:

self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-22 16:07:44 +0100)

are available in the git repository at:
git://github.com/OSSystems/oe-core master
https://github.com/OSSystems/oe-core/tree/HEAD

Otavio Salvador (5):
connman: backport test script fixes u-boot.inc: fix compilation when using 'gold' as linker
u-boot-fw-utils: add 2012.04 release
u-boot-mkimage: add 2012.04 release
u-boot: add 2012.04 release

 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb |   33 ++++++++++++
 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb  |   33 ++++++++++++
 meta/recipes-bsp/u-boot/u-boot.inc                 |    4 ++
 meta/recipes-bsp/u-boot/u-boot_2012.04.bb          |   30 +++++++++++
 .../connman/test-set-ipv4-method-api-fix.patch     |   50 ++++++++++++++++++
 .../connman/test-set-ipv6-method-api-fix.patch     |   55 ++++++++++++++++++++
 meta/recipes-connectivity/connman/connman_0.79.bb  |    4 +-
 7 files changed, 208 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot_2012.04.bb
 create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv4-method-api-fix.patch
 create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv6-method-api-fix.patch
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/5 connman: backport test script fixes

Those fixes are required to get the test scripts to work with current 0.79 DBus API.

---
 .../connman/test-set-ipv4-method-api-fix.patch     |   50 ++++++++++++++++++
 .../connman/test-set-ipv6-method-api-fix.patch     |   55 ++++++++++++++++++++
 meta/recipes-connectivity/connman/connman_0.79.bb  |    4 +-
 3 files changed, 108 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv4-method-api-fix.patch
 create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv6-method-api-fix.patch
meta/recipes-connectivity/connman/connman/test-set-ipv4-method-api-fix.patch new file +50 -0
new file mode 100644
index 0000000..78eb19a
@@ -0,0 +1,50 @@
+From 0b817dd3096f5c3ca8f0b868ee55ea550054137b Mon Sep 17 00:00:00 2001
+From: Daniel Wagner <[email protected]>
+Date: Mon, 19 Mar 2012 14:03:27 +0100
+Subject: [PATCH 3/3] set-ipv4-method: The arguments have to be wrapped into a
+ variant
+
+Fixes BMC#24986
+
+Upstream-Status: Backport
+
+Signed-off-by: Otavio Salvador <[email protected]>
+---
+ test/set-ipv4-method |   11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/test/set-ipv4-method b/test/set-ipv4-method
+index 820b24b..235113f 100755
+--- a/test/set-ipv4-method
++++ b/test/set-ipv4-method
+@@ -3,6 +3,9 @@
+ import sys
+ import dbus
+ 
++def make_variant(string):
++	return dbus.String(string, variant_level=1)
++
+ def print_usage():
+ 	print "Usage: %s <service> [off|dhcp|manual <address> [netmask] [gateway]]" % (sys.argv[0])
+ 
+@@ -20,13 +23,13 @@ properties = service.GetProperties()
+ 
+ print "Setting method %s for %s" % (sys.argv[2], sys.argv[1])
+ 
+-ipv4_configuration = { "Method": sys.argv[2] }
++ipv4_configuration = { "Method": make_variant(sys.argv[2]) }
+ if (len(sys.argv) > 3):
+-	ipv4_configuration["Address"] = sys.argv[3]
++	ipv4_configuration["Address"] = make_variant(sys.argv[3])
+ if (len(sys.argv) > 4):
+-	ipv4_configuration["Netmask"] = sys.argv[4]
++	ipv4_configuration["Netmask"] = make_variant(sys.argv[4])
+ if (len(sys.argv) > 5):
+-        ipv4_configuration["Gateway"] = sys.argv[5]
++        ipv4_configuration["Gateway"] = make_variant(sys.argv[5])
+ 
+ service.SetProperty("IPv4.Configuration", ipv4_configuration)
+ print "New IPv4.Configuration: ", ipv4_configuration
+-- 
+1.7.9.5
+
meta/recipes-connectivity/connman/connman/test-set-ipv6-method-api-fix.patch new file +55 -0

55 lines not on this page · raw message

meta/recipes-connectivity/connman/connman_0.79.bb +3 -1
index f87c4dd..2ac8539 100644
@@ -6,6 +6,8 @@ SRC_URI  = "git://git.kernel.org/pub/scm/network/connman/connman.git \
             file://add_xuser_dbus_permission.patch \
             file://ethernet_default.patch \
             file://disable_alg-test.patch \
+            file://test-set-ipv4-method-api-fix.patch \
+            file://test-set-ipv6-method-api-fix.patch \
             file://connman"
 S = "${WORKDIR}/git"
-PR = "r1"
+PR = "r2"
Signature · 1 line
1.7.2.5
#2 lore raw

PATCH 2/5 u-boot.inc: fix compilation when using 'gold' as linker

In reply to Otavio Salvador
---
 meta/recipes-bsp/u-boot/u-boot.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta/recipes-bsp/u-boot/u-boot.inc +4 -0
index 0445c34..a13eddc 100644
@@ -36,6 +36,10 @@ SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}"
 SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}"
 
 do_compile () {
+	if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
+		sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk
+	fi
+
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
Signature · 1 line
1.7.2.5
#3 lore raw

PATCH 3/5 u-boot-fw-utils: add 2012.04 release

In reply to Otavio Salvador
---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb |   33 ++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb new file +33 -0
new file mode 100644
index 0000000..5ddb9f9
@@ -0,0 +1,33 @@
+DESCRIPTION = "U-boot bootloader fw_printenv/setenv utils"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+SECTION = "bootloader"
+
+DEPENDS = "mtd-utils"
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# This revision corresponds to the tag "v2012.04"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "2790bf69dc12fb9aeb9836904e5f57c7f83d5552"
+
+PV = "v2012.04+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+
+do_compile () {
+  oe_runmake env
+}
+
+do_install () {
+  install -d ${D}${base_sbindir}
+  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
+  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
+}
Signature · 1 line
1.7.2.5
#4 lore raw

Re: [PATCH 3/5] u-boot-fw-utils: add 2012.04 release

Dear Otavio Salvador,

Quoted 5 lines · In message <0d6637cfcd02587fe62c2c550aac5a33ce9cc72d.1335118370.git.otavio@ossy…
---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb |   33 ++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb

Please update and use v2012.04.01 instead. This is a bug fix release which fixes a nasty bug in the command line processing, which can cause incorrect execution of commands and scripts.

Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"Out of register space (ugh)"
- vi
#5 lore raw

Re: [PATCH 3/5] u-boot-fw-utils: add 2012.04 release

Quoted 3 lines · Wolfgang Denk

Please update and use v2012.04.01 instead.  This is a bug fix release which fixes a nasty bug in the command line processing, which can cause incorrect execution of commands and scripts.

Once I get back to office, I prepare a patchset to update it.

Thanks by warn us.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#6 lore raw

PATCH 4/5 u-boot-mkimage: add 2012.04 release

In reply to Otavio Salvador
---
 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb |   33 +++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb new file +33 -0
new file mode 100644
index 0000000..9d59ef3
@@ -0,0 +1,33 @@
+DESCRIPTION = "U-boot bootloader mkimage tool"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+SECTION = "bootloader"
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# This revision corresponds to the tag "v2012.04"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "2790bf69dc12fb9aeb9836904e5f57c7f83d5552"
+
+PV = "v2012.04+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTLD="${LD}" HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+
+do_compile () {
+  oe_runmake tools
+}
+
+do_install () {
+  install -d ${D}${bindir}
+  install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
+  ln -sf uboot-mkimage ${D}${bindir}/mkimage
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.7.2.5
#7 lore raw

PATCH 5/5 u-boot: add 2012.04 release

In reply to Otavio Salvador
---
 meta/recipes-bsp/u-boot/u-boot_2012.04.bb |   30 +++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot_2012.04.bb
meta/recipes-bsp/u-boot/u-boot_2012.04.bb new file +30 -0
new file mode 100644
index 0000000..92c636a
@@ -0,0 +1,30 @@
+require u-boot.inc
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# To build u-boot for your machine, provide the following lines in
+# your machine config, replacing the assignments as appropriate for
+# your machine.
+# UBOOT_MACHINE = "omap3_beagle_config"
+# UBOOT_ENTRYPOINT = "0x80008000"
+# UBOOT_LOADADDRESS = "0x80008000"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+
+FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/u-boot-git/${MACHINE}"
+
+# This revision corresponds to the tag "v2012.04"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "2790bf69dc12fb9aeb9836904e5f57c7f83d5552"
+
+PV = "v2012.04+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.2.5
Applied
#8 lore raw
In reply to Otavio Salvador
Quoted 26 lines · Otavio Salvador

The u-boot new release has been tested on i.MX53 and has D_P = -1 to allow people to test it. Please give them a test.

The following changes since commit b19af63a201933038a044f29570710fe38365f28:

self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-22 16:07:44 +0100)

are available in the git repository at:
git://github.com/OSSystems/oe-core master
https://github.com/OSSystems/oe-core/tree/HEAD

Otavio Salvador (5):

   connman: backport test script fixes
   u-boot.inc: fix compilation when using 'gold' as linker
   u-boot-fw-utils: add 2012.04 release
   u-boot-mkimage: add 2012.04 release
   u-boot: add 2012.04 release
  meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb |   33 ++++++++++++
  meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb  |   33 ++++++++++++
  meta/recipes-bsp/u-boot/u-boot.inc                 |    4 ++
  meta/recipes-bsp/u-boot/u-boot_2012.04.bb          |   30 +++++++++++
  .../connman/test-set-ipv4-method-api-fix.patch     |   50 ++++++++++++++++++
  .../connman/test-set-ipv6-method-api-fix.patch     |   55 ++++++++++++++++++++
  meta/recipes-connectivity/connman/connman_0.79.bb  |    4 +-
  7 files changed, 208 insertions(+), 1 deletions(-)
Quoted 6 lines

create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.bb
create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.bb
create mode 100644 meta/recipes-bsp/u-boot/u-boot_2012.04.bb
create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv4-method-api-fix.patch create mode 100644 meta/recipes-connectivity/connman/connman/test-set-ipv6-method-api-fix.patch

Merged into OE-Core

Thanks
Sau!