* [meta-rockchip][PATCH v2 1/5] machine: add UBOOT_MACHINE definition to rock2-square
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
@ 2017-05-13 15:33 ` Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 2/5] u-boot-rockchip: copy spl binary from the good task Romain Perier
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-05-13 15:33 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
This adds the defconfig to be used as part of the build of u-boot for
the Rock2 Square.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
conf/machine/rock2-square.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/conf/machine/rock2-square.conf b/conf/machine/rock2-square.conf
index 38ec701..a896d50 100644
--- a/conf/machine/rock2-square.conf
+++ b/conf/machine/rock2-square.conf
@@ -8,4 +8,5 @@
include conf/machine/include/rk3288.inc
KERNEL_DEVICETREE = "rk3288-rock2-square.dtb"
+UBOOT_MACHINE = "rock2_defconfig"
--
1.8.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-rockchip][PATCH v2 2/5] u-boot-rockchip: copy spl binary from the good task
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 1/5] machine: add UBOOT_MACHINE definition to rock2-square Romain Perier
@ 2017-05-13 15:33 ` Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 3/5] u-boot-rockchip: use a correct version Romain Perier
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-05-13 15:33 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
Currently, the spl binary (that is ${SPL_BINARY}) is copied before the
install task, as part of a prepended func. The u-boot include in poky,
defines the deploy task to be run after the compile task, there is
absolutely no order between this deploy task and the install task. In
some cases, the install task can be executed after the deploy task,
resulting to an error because do_deploy will not find the spl binary in
${B}.
This commit, move the copy of the spl binary after the compile task.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
index dda8bb4..2865fab 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -18,7 +18,7 @@ SRC_URI = " \
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
-do_install_prepend () {
- # copy to default search path
- cp ${B}/spl/${SPL_BINARY} ${B}/
+do_compile_append () {
+ # copy to default search path
+ cp ${B}/spl/${SPL_BINARY} ${B}/
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-rockchip][PATCH v2 3/5] u-boot-rockchip: use a correct version
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 1/5] machine: add UBOOT_MACHINE definition to rock2-square Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 2/5] u-boot-rockchip: copy spl binary from the good task Romain Perier
@ 2017-05-13 15:33 ` Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 4/5] u-boot-rockchip: remove duplicated variables Romain Perier
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-05-13 15:33 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
The version is actually not defined. Bitbake implicitly uses "git-r0" by
default.
This commit defines PV to the version of u-boot that is currently
present of the release branch, prefixed by the sha1 of the commit.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
index 2865fab..d3e3168 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -16,6 +16,7 @@ SRC_URI = " \
file://binutils-2.28-ld-fix.patch \
"
SRCREV = "${AUTOREV}"
+PV = "v2017.05+git${SRCPV}"
S = "${WORKDIR}/git"
do_compile_append () {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-rockchip][PATCH v2 4/5] u-boot-rockchip: remove duplicated variables
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
` (2 preceding siblings ...)
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 3/5] u-boot-rockchip: use a correct version Romain Perier
@ 2017-05-13 15:33 ` Romain Perier
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 5/5] u-boot-rockchip: add rock2 to compatible machines Romain Perier
2017-05-15 15:20 ` [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Trevor Woerner
5 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-05-13 15:33 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
This adds the inclusion of u-boot-common_2017.01.inc and removes
duplicated variables that are already defined by this file.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
index d3e3168..094dbe1 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -1,12 +1,12 @@
# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
# Copyright (C) 2017 Trevor Woerner <twoerner@gmail.com>
+# Copyright (C) 2017 Romain Perier <romain.perier@collabora.com>
# Released under the MIT license (see COPYING.MIT for the terms)
require recipes-bsp/u-boot/u-boot.inc
+require recipes-bsp/u-boot/u-boot-common_2017.01.inc
DESCRIPTION = "Rockchip next-dev U-Boot"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
COMPATIBLE_MACHINE = "(firefly-rk3288)"
DEPENDS = "dtc-native bc-native"
@@ -17,7 +17,6 @@ SRC_URI = " \
"
SRCREV = "${AUTOREV}"
PV = "v2017.05+git${SRCPV}"
-S = "${WORKDIR}/git"
do_compile_append () {
# copy to default search path
--
1.8.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-rockchip][PATCH v2 5/5] u-boot-rockchip: add rock2 to compatible machines
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
` (3 preceding siblings ...)
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 4/5] u-boot-rockchip: remove duplicated variables Romain Perier
@ 2017-05-13 15:33 ` Romain Perier
2017-05-15 15:20 ` [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Trevor Woerner
5 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-05-13 15:33 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
As this machine is supported by this u-boot, add it to the compatible
machines.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
index 094dbe1..291438a 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -7,7 +7,7 @@ require recipes-bsp/u-boot/u-boot.inc
require recipes-bsp/u-boot/u-boot-common_2017.01.inc
DESCRIPTION = "Rockchip next-dev U-Boot"
-COMPATIBLE_MACHINE = "(firefly-rk3288)"
+COMPATIBLE_MACHINE = "(firefly-rk3288|rock2-square)"
DEPENDS = "dtc-native bc-native"
--
1.8.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements
2017-05-13 15:33 [meta-rockchip][PATCH v2 0/5] u-boot-rockchip: various improvements Romain Perier
` (4 preceding siblings ...)
2017-05-13 15:33 ` [meta-rockchip][PATCH v2 5/5] u-boot-rockchip: add rock2 to compatible machines Romain Perier
@ 2017-05-15 15:20 ` Trevor Woerner
5 siblings, 0 replies; 7+ messages in thread
From: Trevor Woerner @ 2017-05-15 15:20 UTC (permalink / raw)
To: Romain Perier; +Cc: yocto
On Sat 2017-05-13 @ 05:33:00 PM, Romain Perier wrote:
> This set of patches adds various improvements to the u-boot-rockchip
> recipe. It fix a build issue due to spl binary being copied from the
> wrong task, it removes various variables, that are already defined in
> a common include file, defines a version and adds support for the rock2
> board.
Thanks! Tested on firefly-rk3288 and applied.
^ permalink raw reply [flat|nested] 7+ messages in thread