* [meta-rockchip][PATCH 1/5] machine: add UBOOT_MACHINE definition
2017-04-28 14:01 [meta-rockchip][PATCH 0/5] u-boot-rockchip: various improvements Romain Perier
@ 2017-04-28 14:01 ` Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 2/5] u-boot-rockchip: copy spl binary from the good task Romain Perier
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-04-28 14:01 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.
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 2/5] u-boot-rockchip: copy spl binary from the good task
2017-04-28 14:01 [meta-rockchip][PATCH 0/5] u-boot-rockchip: various improvements Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 1/5] machine: add UBOOT_MACHINE definition Romain Perier
@ 2017-04-28 14:01 ` Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 3/5] u-boot-rockchip: use a correct version Romain Perier
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-04-28 14:01 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 3/5] u-boot-rockchip: use a correct version
2017-04-28 14:01 [meta-rockchip][PATCH 0/5] u-boot-rockchip: various improvements Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 1/5] machine: add UBOOT_MACHINE definition Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 2/5] u-boot-rockchip: copy spl binary from the good task Romain Perier
@ 2017-04-28 14:01 ` Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 4/5] u-boot-rockchip: remove duplicated variables Romain Perier
2017-04-28 14:01 ` [meta-rockchip][PATCH 5/5] u-boot-rockchip: add rock2 to compatible machines Romain Perier
4 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-04-28 14:01 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 4/5] u-boot-rockchip: remove duplicated variables
2017-04-28 14:01 [meta-rockchip][PATCH 0/5] u-boot-rockchip: various improvements Romain Perier
` (2 preceding siblings ...)
2017-04-28 14:01 ` [meta-rockchip][PATCH 3/5] u-boot-rockchip: use a correct version Romain Perier
@ 2017-04-28 14:01 ` Romain Perier
2017-04-29 6:11 ` Trevor Woerner
2017-04-28 14:01 ` [meta-rockchip][PATCH 5/5] u-boot-rockchip: add rock2 to compatible machines Romain Perier
4 siblings, 1 reply; 7+ messages in thread
From: Romain Perier @ 2017-04-28 14:01 UTC (permalink / raw)
To: Romain Perier, Trevor Woerner; +Cc: yocto
This removes duplicated variables that are already defined
in u-boot.inc.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
---
recipes-bsp/u-boot/u-boot-rockchip_git.bb | 4 +---
1 file changed, 1 insertion(+), 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..9363bee 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -1,12 +1,11 @@
# 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
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 +16,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* Re: [meta-rockchip][PATCH 4/5] u-boot-rockchip: remove duplicated variables
2017-04-28 14:01 ` [meta-rockchip][PATCH 4/5] u-boot-rockchip: remove duplicated variables Romain Perier
@ 2017-04-29 6:11 ` Trevor Woerner
0 siblings, 0 replies; 7+ messages in thread
From: Trevor Woerner @ 2017-04-29 6:11 UTC (permalink / raw)
To: Romain Perier; +Cc: yocto
This doesn't succeed for me:
ERROR: /opt/oe/configs/z/build-master/firefly-rk3288/layers/meta-rockchip/recipes-bsp/u-boot/u-boot-rockchip_git.bb: This recipe does not have the LICENSE field set (u-boot-rockchip)
ERROR: Failed to parse recipe: /opt/oe/configs/z/build-master/firefly-rk3288/layers/meta-rockchip/recipes-bsp/u-boot/u-boot-rockchip_git.bb
But it does work if I add...
On Fri 2017-04-28 @ 04:01:25 PM, Romain Perier wrote:
> # 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)"
...
Does this make sense?
I'm building against openembedded-core
e584be78f92ee6f08f570c239698d56ac78d05f9
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "opensuse-42.2"
TARGET_SYS = "arm-oe-linux-gnueabi"
MACHINE = "firefly-rk3288"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-rockchip = "devs/rperier/20170429:0d89dcc4a5a2827b68d920bbd32e4aece774b5eb"
meta = "master:e584be78f92ee6f08f570c239698d56ac78d05f9"
^ permalink raw reply [flat|nested] 7+ messages in thread
* [meta-rockchip][PATCH 5/5] u-boot-rockchip: add rock2 to compatible machines
2017-04-28 14:01 [meta-rockchip][PATCH 0/5] u-boot-rockchip: various improvements Romain Perier
` (3 preceding siblings ...)
2017-04-28 14:01 ` [meta-rockchip][PATCH 4/5] u-boot-rockchip: remove duplicated variables Romain Perier
@ 2017-04-28 14:01 ` Romain Perier
4 siblings, 0 replies; 7+ messages in thread
From: Romain Perier @ 2017-04-28 14:01 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 9363bee..ffb7887 100644
--- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb
@@ -6,7 +6,7 @@
require recipes-bsp/u-boot/u-boot.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