All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] u-boot: Factor out common bits
@ 2016-10-18 21:55 Marek Vasut
  2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Marek Vasut @ 2016-10-18 21:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

The u-boot recipes share a couple of common variables, which makes
updating of the recipes error prone and a toil. Factor those common
bits into u-boot-common_${PV}.inc so that they are in one place.

The u-boot_${PV}.bb now explicitly require u-boot-common_${PV}.inc
before require u-boot.inc , as doing require u-boot-common_${PV}.inc
from u-boot.inc would fail due to ${PV} not being set. This is a
functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
---
 meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc  | 16 ++++++++++++++++
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb | 16 ++--------------
 meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb  | 17 ++---------------
 meta/recipes-bsp/u-boot/u-boot.inc                 |  8 --------
 meta/recipes-bsp/u-boot/u-boot_2016.03.bb          |  8 +-------
 5 files changed, 21 insertions(+), 44 deletions(-)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc

diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
new file mode 100644
index 0000000..403e316
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
@@ -0,0 +1,16 @@
+HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
+SECTION = "bootloaders"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
+
+# This revision corresponds to the tag "v2016.03"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
+
+PV = "v2016.03+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
+
+S = "${WORKDIR}/git"
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
index 79f1548..f56862c 100644
--- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
@@ -1,20 +1,8 @@
+require u-boot-common_${PV}.inc
+
 SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
-SECTION = "bootloader"
 DEPENDS = "mtd-utils"
 
-# This revision corresponds to the tag "v2016.03"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
-
-PV = "v2016.03+git${SRCPV}"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
-
-S = "${WORKDIR}/git"
-
 INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
 EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
index d5921a0..5025961 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
@@ -1,21 +1,8 @@
-SUMMARY = "U-Boot bootloader image creation tool"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
-SECTION = "bootloader"
+require u-boot-common_${PV}.inc
 
+SUMMARY = "U-Boot bootloader image creation tool"
 DEPENDS = "openssl"
 
-# This revision corresponds to the tag "v2016.03"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
-
-PV = "v2016.03+git${SRCPV}"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
-
-S = "${WORKDIR}/git"
-
 EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1'
 
 do_compile () {
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 252aae9..afe3fe9 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -1,14 +1,6 @@
 SUMMARY = "Universal Boot Loader for embedded devices"
-HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
-SECTION = "bootloaders"
 PROVIDES = "virtual/bootloader"
 
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
-
-S = "${WORKDIR}/git"
 B = "${WORKDIR}/build"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
index 836b0ce..dabe709 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
@@ -1,10 +1,4 @@
+require u-boot-common_${PV}.inc
 require u-boot.inc
 
 DEPENDS += "dtc-native"
-
-# This revision corresponds to the tag "v2016.03"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
-
-PV = "v2016.03+git${SRCPV}"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 2/5] u-boot: Update to 2016.09.01 release
  2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
@ 2016-10-18 21:55 ` Marek Vasut
  2016-10-19 12:06   ` Alexander Kanavin
  2016-10-19 20:10   ` Denys Dmytriyenko
  2016-10-18 21:55 ` [PATCH 3/5] u-boot: Drop the +git part from PV Marek Vasut
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 20+ messages in thread
From: Marek Vasut @ 2016-10-18 21:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

Upgrade U-Boot to the latest version.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
---
 .../{u-boot-common_2016.03.inc => u-boot-common_2016.09.01.inc}   | 8 ++++----
 .../{u-boot-fw-utils_2016.03.bb => u-boot-fw-utils_2016.09.01.bb} | 0
 .../{u-boot-mkimage_2016.03.bb => u-boot-mkimage_2016.09.01.bb}   | 0
 .../u-boot/{u-boot_2016.03.bb => u-boot_2016.09.01.bb}            | 0
 4 files changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-bsp/u-boot/{u-boot-common_2016.03.inc => u-boot-common_2016.09.01.inc} (59%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2016.03.bb => u-boot-fw-utils_2016.09.01.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2016.03.bb => u-boot-mkimage_2016.09.01.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2016.03.bb => u-boot_2016.09.01.bb} (100%)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
similarity index 59%
rename from meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
index 403e316..ead5077 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
@@ -4,13 +4,13 @@ SECTION = "bootloaders"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
 
-# This revision corresponds to the tag "v2016.03"
+# This revision corresponds to the tag "v2016.09.01"
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
+SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
 
-PV = "v2016.03+git${SRCPV}"
+PV = "v2016.09.01+git${SRCPV}"
 
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
+SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
 
 S = "${WORKDIR}/git"
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.09.01.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.09.01.bb
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb
diff --git a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot_2016.09.01.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2016.03.bb
rename to meta/recipes-bsp/u-boot/u-boot_2016.09.01.bb
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 3/5] u-boot: Drop the +git part from PV
  2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
  2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
@ 2016-10-18 21:55 ` Marek Vasut
  2016-10-19 20:15   ` Denys Dmytriyenko
  2016-10-18 21:55 ` [PATCH 4/5] u-boot: Drop PV altogether Marek Vasut
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 20+ messages in thread
From: Marek Vasut @ 2016-10-18 21:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

The U-Boot package is using release versions of U-Boot,
so drop the extra +git part from PV.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
---
 meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
index ead5077..0a90621 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
 # repo during parse
 SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
 
-PV = "v2016.09.01+git${SRCPV}"
+PV = "v2016.09.01"
 
 SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
 
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
  2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
  2016-10-18 21:55 ` [PATCH 3/5] u-boot: Drop the +git part from PV Marek Vasut
@ 2016-10-18 21:55 ` Marek Vasut
  2016-10-19 12:09   ` Alexander Kanavin
  2016-10-19 20:10   ` Denys Dmytriyenko
  2016-10-18 21:55 ` [PATCH 5/5] u-boot: Drop redundant comment Marek Vasut
  2016-10-19 20:13 ` [PATCH 1/5] u-boot: Factor out common bits Denys Dmytriyenko
  4 siblings, 2 replies; 20+ messages in thread
From: Marek Vasut @ 2016-10-18 21:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

Drop the explicit setting of PV altogether. This changes the U-Boot
version string from "v20yy.mm" to "20yy.mm" , so layer setting the
PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
---
 meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
index 0a90621..a535df1 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
@@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
 # repo during parse
 SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
 
-PV = "v2016.09.01"
-
 SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
 
 S = "${WORKDIR}/git"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 5/5] u-boot: Drop redundant comment
  2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
                   ` (2 preceding siblings ...)
  2016-10-18 21:55 ` [PATCH 4/5] u-boot: Drop PV altogether Marek Vasut
@ 2016-10-18 21:55 ` Marek Vasut
  2016-10-19 20:11   ` Denys Dmytriyenko
  2016-10-19 20:13 ` [PATCH 1/5] u-boot: Factor out common bits Denys Dmytriyenko
  4 siblings, 1 reply; 20+ messages in thread
From: Marek Vasut @ 2016-10-18 21:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

Drop comment stating that the SRCREV corresponds to particular U-Boot
version. This comment is redundant, since the U-Boot version is part
of the recipe filename.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
---
 meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
index a535df1..5b02c87 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
@@ -4,7 +4,6 @@ SECTION = "bootloaders"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
 
-# This revision corresponds to the tag "v2016.09.01"
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
 SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [PATCH 2/5] u-boot: Update to 2016.09.01 release
  2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
@ 2016-10-19 12:06   ` Alexander Kanavin
  2016-10-19 20:10   ` Denys Dmytriyenko
  1 sibling, 0 replies; 20+ messages in thread
From: Alexander Kanavin @ 2016-10-19 12:06 UTC (permalink / raw)
  To: openembedded-core

On 10/19/2016 12:55 AM, Marek Vasut wrote:
> Upgrade U-Boot to the latest version.

Patches 3 and 5 should be squashed into this one.

Alex



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-18 21:55 ` [PATCH 4/5] u-boot: Drop PV altogether Marek Vasut
@ 2016-10-19 12:09   ` Alexander Kanavin
  2016-10-19 20:27     ` Denys Dmytriyenko
  2016-10-19 20:10   ` Denys Dmytriyenko
  1 sibling, 1 reply; 20+ messages in thread
From: Alexander Kanavin @ 2016-10-19 12:09 UTC (permalink / raw)
  To: openembedded-core

On 10/19/2016 12:55 AM, Marek Vasut wrote:
> Drop the explicit setting of PV altogether. This changes the U-Boot
> version string from "v20yy.mm" to "20yy.mm" , so layer setting the
> PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.

Don't drop the 'v'. Package versions need to monotonically increase, and 
also package version needs to match git tags so that upstream version 
check can work.

Basically, rename the recipe filenames so that 'v' is in their versions, 
and then you can drop the PV from the recipes. All in a single patch.

Alex



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-18 21:55 ` [PATCH 4/5] u-boot: Drop PV altogether Marek Vasut
  2016-10-19 12:09   ` Alexander Kanavin
@ 2016-10-19 20:10   ` Denys Dmytriyenko
  2016-10-19 21:00     ` Marek Vasut
  1 sibling, 1 reply; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:10 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Tue, Oct 18, 2016 at 11:55:12PM +0200, Marek Vasut wrote:
> Drop the explicit setting of PV altogether. This changes the U-Boot
> version string from "v20yy.mm" to "20yy.mm" , so layer setting the
> PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.

Finally!
But do we need to bump PE to ensure upgrade path and proper sorting?


> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> Cc: Denys Dmytriyenko <denis@denix.org>

Acked-by: Denys Dmytriyenko <denis@denix.org>


> ---
>  meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> index 0a90621..a535df1 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>  # repo during parse
>  SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
>  
> -PV = "v2016.09.01"
> -
>  SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
>  
>  S = "${WORKDIR}/git"
> -- 
> 2.9.3
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 2/5] u-boot: Update to 2016.09.01 release
  2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
  2016-10-19 12:06   ` Alexander Kanavin
@ 2016-10-19 20:10   ` Denys Dmytriyenko
  1 sibling, 0 replies; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:10 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Tue, Oct 18, 2016 at 11:55:10PM +0200, Marek Vasut wrote:
> Upgrade U-Boot to the latest version.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> Cc: Denys Dmytriyenko <denis@denix.org>

Acked-by: Denys Dmytriyenko <denys@ti.com>


> ---
>  .../{u-boot-common_2016.03.inc => u-boot-common_2016.09.01.inc}   | 8 ++++----
>  .../{u-boot-fw-utils_2016.03.bb => u-boot-fw-utils_2016.09.01.bb} | 0
>  .../{u-boot-mkimage_2016.03.bb => u-boot-mkimage_2016.09.01.bb}   | 0
>  .../u-boot/{u-boot_2016.03.bb => u-boot_2016.09.01.bb}            | 0
>  4 files changed, 4 insertions(+), 4 deletions(-)
>  rename meta/recipes-bsp/u-boot/{u-boot-common_2016.03.inc => u-boot-common_2016.09.01.inc} (59%)
>  rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2016.03.bb => u-boot-fw-utils_2016.09.01.bb} (100%)
>  rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2016.03.bb => u-boot-mkimage_2016.09.01.bb} (100%)
>  rename meta/recipes-bsp/u-boot/{u-boot_2016.03.bb => u-boot_2016.09.01.bb} (100%)
> 
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> similarity index 59%
> rename from meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
> rename to meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> index 403e316..ead5077 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> @@ -4,13 +4,13 @@ SECTION = "bootloaders"
>  LICENSE = "GPLv2+"
>  LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>  
> -# This revision corresponds to the tag "v2016.03"
> +# This revision corresponds to the tag "v2016.09.01"
>  # We use the revision in order to avoid having to fetch it from the
>  # repo during parse
> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
> +SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
>  
> -PV = "v2016.03+git${SRCPV}"
> +PV = "v2016.09.01+git${SRCPV}"
>  
> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
> +SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
>  
>  S = "${WORKDIR}/git"
> diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.09.01.bb
> similarity index 100%
> rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
> rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.09.01.bb
> diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb
> similarity index 100%
> rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
> rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb
> diff --git a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot_2016.09.01.bb
> similarity index 100%
> rename from meta/recipes-bsp/u-boot/u-boot_2016.03.bb
> rename to meta/recipes-bsp/u-boot/u-boot_2016.09.01.bb
> -- 
> 2.9.3
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 5/5] u-boot: Drop redundant comment
  2016-10-18 21:55 ` [PATCH 5/5] u-boot: Drop redundant comment Marek Vasut
@ 2016-10-19 20:11   ` Denys Dmytriyenko
  0 siblings, 0 replies; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:11 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Tue, Oct 18, 2016 at 11:55:13PM +0200, Marek Vasut wrote:
> Drop comment stating that the SRCREV corresponds to particular U-Boot
> version. This comment is redundant, since the U-Boot version is part
> of the recipe filename.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> Cc: Denys Dmytriyenko <denis@denix.org>

Acked-by: Denys Dmytriyenko <denys@ti.com>


> ---
>  meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> index a535df1..5b02c87 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> @@ -4,7 +4,6 @@ SECTION = "bootloaders"
>  LICENSE = "GPLv2+"
>  LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>  
> -# This revision corresponds to the tag "v2016.09.01"
>  # We use the revision in order to avoid having to fetch it from the
>  # repo during parse
>  SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
> -- 
> 2.9.3
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/5] u-boot: Factor out common bits
  2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
                   ` (3 preceding siblings ...)
  2016-10-18 21:55 ` [PATCH 5/5] u-boot: Drop redundant comment Marek Vasut
@ 2016-10-19 20:13 ` Denys Dmytriyenko
  2016-10-19 20:39   ` Marek Vasut
  4 siblings, 1 reply; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:13 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Tue, Oct 18, 2016 at 11:55:09PM +0200, Marek Vasut wrote:
> The u-boot recipes share a couple of common variables, which makes
> updating of the recipes error prone and a toil. Factor those common
> bits into u-boot-common_${PV}.inc so that they are in one place.
> 
> The u-boot_${PV}.bb now explicitly require u-boot-common_${PV}.inc
> before require u-boot.inc , as doing require u-boot-common_${PV}.inc
> from u-boot.inc would fail due to ${PV} not being set. This is a
> functional change.

Any issues making .inc file version-agnostic and moving SRCREV out to .bb?


> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> Cc: Denys Dmytriyenko <denis@denix.org>
> ---
>  meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc  | 16 ++++++++++++++++
>  meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb | 16 ++--------------
>  meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb  | 17 ++---------------
>  meta/recipes-bsp/u-boot/u-boot.inc                 |  8 --------
>  meta/recipes-bsp/u-boot/u-boot_2016.03.bb          |  8 +-------
>  5 files changed, 21 insertions(+), 44 deletions(-)
>  create mode 100644 meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
> 
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
> new file mode 100644
> index 0000000..403e316
> --- /dev/null
> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
> @@ -0,0 +1,16 @@
> +HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
> +SECTION = "bootloaders"
> +
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
> +
> +# This revision corresponds to the tag "v2016.03"
> +# We use the revision in order to avoid having to fetch it from the
> +# repo during parse
> +SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
> +
> +PV = "v2016.03+git${SRCPV}"
> +
> +SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
> +
> +S = "${WORKDIR}/git"
> diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
> index 79f1548..f56862c 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
> +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
> @@ -1,20 +1,8 @@
> +require u-boot-common_${PV}.inc
> +
>  SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
> -LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
> -SECTION = "bootloader"
>  DEPENDS = "mtd-utils"
>  
> -# This revision corresponds to the tag "v2016.03"
> -# We use the revision in order to avoid having to fetch it from the
> -# repo during parse
> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
> -
> -PV = "v2016.03+git${SRCPV}"
> -
> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
> -
> -S = "${WORKDIR}/git"
> -
>  INSANE_SKIP_${PN} = "already-stripped"
>  EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
>  EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
> diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
> index d5921a0..5025961 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
> +++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
> @@ -1,21 +1,8 @@
> -SUMMARY = "U-Boot bootloader image creation tool"
> -LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
> -SECTION = "bootloader"
> +require u-boot-common_${PV}.inc
>  
> +SUMMARY = "U-Boot bootloader image creation tool"
>  DEPENDS = "openssl"
>  
> -# This revision corresponds to the tag "v2016.03"
> -# We use the revision in order to avoid having to fetch it from the
> -# repo during parse
> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
> -
> -PV = "v2016.03+git${SRCPV}"
> -
> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
> -
> -S = "${WORKDIR}/git"
> -
>  EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1'
>  
>  do_compile () {
> diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
> index 252aae9..afe3fe9 100644
> --- a/meta/recipes-bsp/u-boot/u-boot.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot.inc
> @@ -1,14 +1,6 @@
>  SUMMARY = "Universal Boot Loader for embedded devices"
> -HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
> -SECTION = "bootloaders"
>  PROVIDES = "virtual/bootloader"
>  
> -LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
> -
> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
> -
> -S = "${WORKDIR}/git"
>  B = "${WORKDIR}/build"
>  
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
> diff --git a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
> index 836b0ce..dabe709 100644
> --- a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
> +++ b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
> @@ -1,10 +1,4 @@
> +require u-boot-common_${PV}.inc
>  require u-boot.inc
>  
>  DEPENDS += "dtc-native"
> -
> -# This revision corresponds to the tag "v2016.03"
> -# We use the revision in order to avoid having to fetch it from the
> -# repo during parse
> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
> -
> -PV = "v2016.03+git${SRCPV}"
> -- 
> 2.9.3
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 3/5] u-boot: Drop the +git part from PV
  2016-10-18 21:55 ` [PATCH 3/5] u-boot: Drop the +git part from PV Marek Vasut
@ 2016-10-19 20:15   ` Denys Dmytriyenko
  0 siblings, 0 replies; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:15 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Tue, Oct 18, 2016 at 11:55:11PM +0200, Marek Vasut wrote:
> The U-Boot package is using release versions of U-Boot,
> so drop the extra +git part from PV.

As long as it's using release-based SRCREV, should be fine. IIRC, +git suffix 
was from the days when we needed to pick up additional commits after the 
release for bug fixes and such...


> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> Cc: Denys Dmytriyenko <denis@denix.org>

Acked-by: Denys Dmytriyenko <denys@ti.com>


> ---
>  meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> index ead5077..0a90621 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>  # repo during parse
>  SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
>  
> -PV = "v2016.09.01+git${SRCPV}"
> +PV = "v2016.09.01"
>  
>  SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
>  
> -- 
> 2.9.3
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 12:09   ` Alexander Kanavin
@ 2016-10-19 20:27     ` Denys Dmytriyenko
  0 siblings, 0 replies; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 20:27 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core

On Wed, Oct 19, 2016 at 03:09:26PM +0300, Alexander Kanavin wrote:
> On 10/19/2016 12:55 AM, Marek Vasut wrote:
> >Drop the explicit setting of PV altogether. This changes the U-Boot
> >version string from "v20yy.mm" to "20yy.mm" , so layer setting the
> >PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.
> 
> Don't drop the 'v'. Package versions need to monotonically increase,
> and also package version needs to match git tags so that upstream
> version check can work.
> 
> Basically, rename the recipe filenames so that 'v' is in their
> versions, and then you can drop the PV from the recipes. All in a
> single patch.

This has been discussed at OEDEM - we are trying to unify u-boot recipes. 
Looking at the layer index, it seems there's 50/50 split of using vXXXX.YY vs. 
just XXXX.YY versions:

https://layers.openembedded.org/layerindex/branch/master/recipes/?q=u-boot

So, I'd vote to drop "v" prefix and bump PE to get it sorted out...

-- 
Denys


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/5] u-boot: Factor out common bits
  2016-10-19 20:13 ` [PATCH 1/5] u-boot: Factor out common bits Denys Dmytriyenko
@ 2016-10-19 20:39   ` Marek Vasut
  0 siblings, 0 replies; 20+ messages in thread
From: Marek Vasut @ 2016-10-19 20:39 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: openembedded-core

On 10/19/2016 10:13 PM, Denys Dmytriyenko wrote:
> On Tue, Oct 18, 2016 at 11:55:09PM +0200, Marek Vasut wrote:
>> The u-boot recipes share a couple of common variables, which makes
>> updating of the recipes error prone and a toil. Factor those common
>> bits into u-boot-common_${PV}.inc so that they are in one place.
>>
>> The u-boot_${PV}.bb now explicitly require u-boot-common_${PV}.inc
>> before require u-boot.inc , as doing require u-boot-common_${PV}.inc
>> from u-boot.inc would fail due to ${PV} not being set. This is a
>> functional change.
> 
> Any issues making .inc file version-agnostic and moving SRCREV out to .bb?

That's what it was initially, but got review comment to not do that.
I'm fine either way.

>> Signed-off-by: Marek Vasut <marex@denx.de>
>> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
>> Cc: Denys Dmytriyenko <denis@denix.org>
>> ---
>>  meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc  | 16 ++++++++++++++++
>>  meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb | 16 ++--------------
>>  meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb  | 17 ++---------------
>>  meta/recipes-bsp/u-boot/u-boot.inc                 |  8 --------
>>  meta/recipes-bsp/u-boot/u-boot_2016.03.bb          |  8 +-------
>>  5 files changed, 21 insertions(+), 44 deletions(-)
>>  create mode 100644 meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
>>
>> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
>> new file mode 100644
>> index 0000000..403e316
>> --- /dev/null
>> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.03.inc
>> @@ -0,0 +1,16 @@
>> +HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
>> +SECTION = "bootloaders"
>> +
>> +LICENSE = "GPLv2+"
>> +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>> +
>> +# This revision corresponds to the tag "v2016.03"
>> +# We use the revision in order to avoid having to fetch it from the
>> +# repo during parse
>> +SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
>> +
>> +PV = "v2016.03+git${SRCPV}"
>> +
>> +SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
>> +
>> +S = "${WORKDIR}/git"
>> diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
>> index 79f1548..f56862c 100644
>> --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
>> +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb
>> @@ -1,20 +1,8 @@
>> +require u-boot-common_${PV}.inc
>> +
>>  SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
>> -LICENSE = "GPLv2+"
>> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>> -SECTION = "bootloader"
>>  DEPENDS = "mtd-utils"
>>  
>> -# This revision corresponds to the tag "v2016.03"
>> -# We use the revision in order to avoid having to fetch it from the
>> -# repo during parse
>> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
>> -
>> -PV = "v2016.03+git${SRCPV}"
>> -
>> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
>> -
>> -S = "${WORKDIR}/git"
>> -
>>  INSANE_SKIP_${PN} = "already-stripped"
>>  EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
>>  EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
>> diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
>> index d5921a0..5025961 100644
>> --- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
>> +++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.03.bb
>> @@ -1,21 +1,8 @@
>> -SUMMARY = "U-Boot bootloader image creation tool"
>> -LICENSE = "GPLv2+"
>> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>> -SECTION = "bootloader"
>> +require u-boot-common_${PV}.inc
>>  
>> +SUMMARY = "U-Boot bootloader image creation tool"
>>  DEPENDS = "openssl"
>>  
>> -# This revision corresponds to the tag "v2016.03"
>> -# We use the revision in order to avoid having to fetch it from the
>> -# repo during parse
>> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
>> -
>> -PV = "v2016.03+git${SRCPV}"
>> -
>> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
>> -
>> -S = "${WORKDIR}/git"
>> -
>>  EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1'
>>  
>>  do_compile () {
>> diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
>> index 252aae9..afe3fe9 100644
>> --- a/meta/recipes-bsp/u-boot/u-boot.inc
>> +++ b/meta/recipes-bsp/u-boot/u-boot.inc
>> @@ -1,14 +1,6 @@
>>  SUMMARY = "Universal Boot Loader for embedded devices"
>> -HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
>> -SECTION = "bootloaders"
>>  PROVIDES = "virtual/bootloader"
>>  
>> -LICENSE = "GPLv2+"
>> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>> -
>> -SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
>> -
>> -S = "${WORKDIR}/git"
>>  B = "${WORKDIR}/build"
>>  
>>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>> diff --git a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
>> index 836b0ce..dabe709 100644
>> --- a/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
>> +++ b/meta/recipes-bsp/u-boot/u-boot_2016.03.bb
>> @@ -1,10 +1,4 @@
>> +require u-boot-common_${PV}.inc
>>  require u-boot.inc
>>  
>>  DEPENDS += "dtc-native"
>> -
>> -# This revision corresponds to the tag "v2016.03"
>> -# We use the revision in order to avoid having to fetch it from the
>> -# repo during parse
>> -SRCREV = "df61a74e6845ec9bdcdd48d2aff5e9c2c6debeaa"
>> -
>> -PV = "v2016.03+git${SRCPV}"
>> -- 
>> 2.9.3
>>


-- 
Best regards,
Marek Vasut


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 20:10   ` Denys Dmytriyenko
@ 2016-10-19 21:00     ` Marek Vasut
  2016-10-19 21:15       ` Denys Dmytriyenko
  0 siblings, 1 reply; 20+ messages in thread
From: Marek Vasut @ 2016-10-19 21:00 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: openembedded-core

On 10/19/2016 10:10 PM, Denys Dmytriyenko wrote:
> On Tue, Oct 18, 2016 at 11:55:12PM +0200, Marek Vasut wrote:
>> Drop the explicit setting of PV altogether. This changes the U-Boot
>> version string from "v20yy.mm" to "20yy.mm" , so layer setting the
>> PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.
> 
> Finally!
> But do we need to bump PE to ensure upgrade path and proper sorting?

I don't think so, since the whole U-Boot version got updated.

>> Signed-off-by: Marek Vasut <marex@denx.de>
>> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
>> Cc: Denys Dmytriyenko <denis@denix.org>
> 
> Acked-by: Denys Dmytriyenko <denis@denix.org>

Thanks!

btw. given the layout of the u-boot package after this, updating is a
matter of mv+sed combo :)

>> ---
>>  meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
>> index 0a90621..a535df1 100644
>> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
>> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
>> @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
>>  # repo during parse
>>  SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
>>  
>> -PV = "v2016.09.01"
>> -
>>  SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"

And once 2016.11 is out, I believe I can even drop the ;branch= bit here.

>>  S = "${WORKDIR}/git"
>> -- 
>> 2.9.3
>>


-- 
Best regards,
Marek Vasut


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 21:00     ` Marek Vasut
@ 2016-10-19 21:15       ` Denys Dmytriyenko
  2016-10-19 21:39         ` Burton, Ross
  0 siblings, 1 reply; 20+ messages in thread
From: Denys Dmytriyenko @ 2016-10-19 21:15 UTC (permalink / raw)
  To: Marek Vasut; +Cc: openembedded-core

On Wed, Oct 19, 2016 at 11:00:02PM +0200, Marek Vasut wrote:
> On 10/19/2016 10:10 PM, Denys Dmytriyenko wrote:
> > On Tue, Oct 18, 2016 at 11:55:12PM +0200, Marek Vasut wrote:
> >> Drop the explicit setting of PV altogether. This changes the U-Boot
> >> version string from "v20yy.mm" to "20yy.mm" , so layer setting the
> >> PREFERRED_VERSION_u-boot must be updated by removing the leading 'v'.
> > 
> > Finally!
> > But do we need to bump PE to ensure upgrade path and proper sorting?
> 
> I don't think so, since the whole U-Boot version got updated.

Still, vXXXX.YY will always sort higher than XXXX.YY no matter what digits 
there are. That's what PE is for, to get the sorting working even when 
versioning schema gets changed in major way like this one...


> >> Signed-off-by: Marek Vasut <marex@denx.de>
> >> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
> >> Cc: Denys Dmytriyenko <denis@denix.org>
> > 
> > Acked-by: Denys Dmytriyenko <denis@denix.org>
> 
> Thanks!
> 
> btw. given the layout of the u-boot package after this, updating is a
> matter of mv+sed combo :)
> 
> >> ---
> >>  meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc | 2 --
> >>  1 file changed, 2 deletions(-)
> >>
> >> diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> >> index 0a90621..a535df1 100644
> >> --- a/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> >> +++ b/meta/recipes-bsp/u-boot/u-boot-common_2016.09.01.inc
> >> @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
> >>  # repo during parse
> >>  SRCREV = "f3363c060497515ca8b71451cb56f3ec0abacaa9"
> >>  
> >> -PV = "v2016.09.01"
> >> -
> >>  SRC_URI = "git://git.denx.de/u-boot.git;branch=u-boot-2016.09.y"
> 
> And once 2016.11 is out, I believe I can even drop the ;branch= bit here.
> 
> >>  S = "${WORKDIR}/git"
> >> -- 
> >> 2.9.3
> >>
> 
> 
> -- 
> Best regards,
> Marek Vasut
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 21:15       ` Denys Dmytriyenko
@ 2016-10-19 21:39         ` Burton, Ross
  2016-10-19 22:53           ` Marek Vasut
  0 siblings, 1 reply; 20+ messages in thread
From: Burton, Ross @ 2016-10-19 21:39 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Marek Vasut, OE-core

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On 19 October 2016 at 22:15, Denys Dmytriyenko <denis@denix.org> wrote:

> > > But do we need to bump PE to ensure upgrade path and proper sorting?
> >
> > I don't think so, since the whole U-Boot version got updated.
>
> Still, vXXXX.YY will always sort higher than XXXX.YY no matter what digits
> there are. That's what PE is for, to get the sorting working even when
> versioning schema gets changed in major way like this one...


Agreed, PE is required here.

Ross

[-- Attachment #2: Type: text/html, Size: 881 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 21:39         ` Burton, Ross
@ 2016-10-19 22:53           ` Marek Vasut
  2016-10-20 10:13             ` Burton, Ross
  0 siblings, 1 reply; 20+ messages in thread
From: Marek Vasut @ 2016-10-19 22:53 UTC (permalink / raw)
  To: Burton, Ross, Denys Dmytriyenko; +Cc: OE-core

On 10/19/2016 11:39 PM, Burton, Ross wrote:
> 
> On 19 October 2016 at 22:15, Denys Dmytriyenko <denis@denix.org
> <mailto:denis@denix.org>> wrote:
> 
>     > > But do we need to bump PE to ensure upgrade path and proper sorting?
>     >
>     > I don't think so, since the whole U-Boot version got updated.
> 
>     Still, vXXXX.YY will always sort higher than XXXX.YY no matter what
>     digits
>     there are. That's what PE is for, to get the sorting working even when
>     versioning schema gets changed in major way like this one...
> 
> 
> Agreed, PE is required here.

OK, snap. Can you pick 1,2,3,5 so I don't have to resubmit them ? They
should apply cleanly and they are pretty orthogonal from the 4/5.

I will check PE ASAP.

Thanks!

-- 
Best regards,
Marek Vasut


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-19 22:53           ` Marek Vasut
@ 2016-10-20 10:13             ` Burton, Ross
  2016-10-20 13:36               ` Marek Vasut
  0 siblings, 1 reply; 20+ messages in thread
From: Burton, Ross @ 2016-10-20 10:13 UTC (permalink / raw)
  To: Marek Vasut; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

On 19 October 2016 at 23:53, Marek Vasut <marex@denx.de> wrote:

> OK, snap. Can you pick 1,2,3,5 so I don't have to resubmit them ? They
> should apply cleanly and they are pretty orthogonal from the 4/5.
>

1 is standalone and I've merged this into ross/mut already, but 3/4/5 are
all basically fixing problems in 2 so I think they should all be squashed
together.

Ross

[-- Attachment #2: Type: text/html, Size: 876 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 4/5] u-boot: Drop PV altogether
  2016-10-20 10:13             ` Burton, Ross
@ 2016-10-20 13:36               ` Marek Vasut
  0 siblings, 0 replies; 20+ messages in thread
From: Marek Vasut @ 2016-10-20 13:36 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 10/20/2016 12:13 PM, Burton, Ross wrote:
> On 19 October 2016 at 23:53, Marek Vasut <marex@denx.de
> <mailto:marex@denx.de>> wrote:
> 
>     OK, snap. Can you pick 1,2,3,5 so I don't have to resubmit them ? They
>     should apply cleanly and they are pretty orthogonal from the 4/5.
> 
> 
> 1 is standalone and I've merged this into ross/mut already, but 3/4/5
> are all basically fixing problems in 2 so I think they should all be
> squashed together.

I'm not a huge fan of patches doing multiple things at the same time, so
I sent them separately. Feel free to squash them if you really want
to, I won't object either way.

Thanks for the PE hint :)

-- 
Best regards,
Marek Vasut


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-10-20 13:36 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18 21:55 [PATCH 1/5] u-boot: Factor out common bits Marek Vasut
2016-10-18 21:55 ` [PATCH 2/5] u-boot: Update to 2016.09.01 release Marek Vasut
2016-10-19 12:06   ` Alexander Kanavin
2016-10-19 20:10   ` Denys Dmytriyenko
2016-10-18 21:55 ` [PATCH 3/5] u-boot: Drop the +git part from PV Marek Vasut
2016-10-19 20:15   ` Denys Dmytriyenko
2016-10-18 21:55 ` [PATCH 4/5] u-boot: Drop PV altogether Marek Vasut
2016-10-19 12:09   ` Alexander Kanavin
2016-10-19 20:27     ` Denys Dmytriyenko
2016-10-19 20:10   ` Denys Dmytriyenko
2016-10-19 21:00     ` Marek Vasut
2016-10-19 21:15       ` Denys Dmytriyenko
2016-10-19 21:39         ` Burton, Ross
2016-10-19 22:53           ` Marek Vasut
2016-10-20 10:13             ` Burton, Ross
2016-10-20 13:36               ` Marek Vasut
2016-10-18 21:55 ` [PATCH 5/5] u-boot: Drop redundant comment Marek Vasut
2016-10-19 20:11   ` Denys Dmytriyenko
2016-10-19 20:13 ` [PATCH 1/5] u-boot: Factor out common bits Denys Dmytriyenko
2016-10-19 20:39   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.