Skip to contentSkip to conversation

u-boot: Upgrade to 2018.03 release

PATCH In review Marek Vasut 9 participants 24 messages Apr 8, 2018 – May 1, 2018 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot: Upgrade to 2018.03 release

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

Cc Otavio Salvador <[email protected]>
Cc Ross Burton <[email protected]>
Cc Richard Purdie <[email protected]>
---
 .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19 -------------------
 ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6 ++----
 ...fw-utils_2018.01.bb => u-boot-fw-utils_2018.03.bb} |  0
 ...t-mkimage_2018.01.bb => u-boot-mkimage_2018.03.bb} |  0
 .../u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb}   |  0
 5 files changed, 2 insertions(+), 23 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
 rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc => u-boot-common_2018.03.inc} (68%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb => u-boot-fw-utils_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb => u-boot-mkimage_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb} (100%)
meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch deleted +0 -19
deleted file mode 100644
index ecaa1796a4..0000000000
@@ -1,19 +0,0 @@
-Enabled dhcp client functionality for Yocto reference
-hardware MPC8315E-RDB.
-
-Upstream-Status: Pending
-
-Signed-off-by: Ed Bartosh <[email protected]>
-
-Index: git/configs/MPC8315ERDB_defconfig
-===================================================================
---- git.orig/configs/MPC8315ERDB_defconfig
-+++ git/configs/MPC8315ERDB_defconfig
-@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
- CONFIG_CMD_SATA=y
- CONFIG_CMD_USB=y
- # CONFIG_CMD_SETEXPR is not set
-+CONFIG_CMD_DHCP=y
- CONFIG_CMD_MII=y
- CONFIG_CMD_PING=y
- CONFIG_CMD_DATE=y
meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc renamed from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc +2 -4
similarity index 68%
rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
index d2073ea0c7..8ffae365a9 100644
@@ -7,10 +7,8 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
+SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"
 
-SRC_URI = "git://git.denx.de/u-boot.git \
-    file://MPC8315ERDB-enable-DHCP.patch \
-"
+SRC_URI = "git://git.denx.de/u-boot.git"
 
 S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
meta/recipes-bsp/u-boot/u-boot_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
Signature · 1 line
2.16.2
#1 lore raw
Quoted 2 lines · Marek Vasut

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host
It seems build is doing the include dance which goes all the way into hosts system include directories

Quoted 96 lines
Cc Otavio Salvador <[email protected]>
Cc Ross Burton <[email protected]>
Cc Richard Purdie <[email protected]>
---
 .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19
-------------------
 ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6 ++----
 ...fw-utils_2018.01.bb => u-boot-fw-utils_2018.03.bb} |  0
 ...t-mkimage_2018.01.bb => u-boot-mkimage_2018.03.bb} |  0
 .../u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb}   |  0
 5 files changed, 2 insertions(+), 23 deletions(-)
 delete mode 100644
meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
 rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc =>
u-boot-common_2018.03.inc} (68%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb =>
u-boot-fw-utils_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb =>
u-boot-mkimage_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb}

(100%)

meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch deleted +0 -19
deleted file mode 100644
index ecaa1796a4..0000000000
@@ -1,19 +0,0 @@
-Enabled dhcp client functionality for Yocto reference
-hardware MPC8315E-RDB.
-
-Upstream-Status: Pending
-
-Signed-off-by: Ed Bartosh <[email protected]>
-
-Index: git/configs/MPC8315ERDB_defconfig
-===================================================================
---- git.orig/configs/MPC8315ERDB_defconfig
-+++ git/configs/MPC8315ERDB_defconfig
-@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
- CONFIG_CMD_SATA=y
- CONFIG_CMD_USB=y
- # CONFIG_CMD_SETEXPR is not set
-+CONFIG_CMD_DHCP=y
- CONFIG_CMD_MII=y
- CONFIG_CMD_PING=y
- CONFIG_CMD_DATE=y
meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc renamed from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc +2 -4
similarity index 68%
rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
index d2073ea0c7..8ffae365a9 100644
@@ -7,10 +7,8 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
+SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"
 
-SRC_URI = "git://git.denx.de/u-boot.git \
-    file://MPC8315ERDB-enable-DHCP.patch \
-"
+SRC_URI = "git://git.denx.de/u-boot.git"
 
 S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
meta/recipes-bsp/u-boot/u-boot_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot_2018.01.bb +0 -1
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
--

2.16.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw

Isn't it fail again because of autodetected swig from host?

Since 2017.07 I have:

do_compile_prepend () {
    sed 's@\(^always += $(if $(shell which swig 2>
/dev/null),_libfdt.so)$\)@# do not autodetect swig, there is no swig-native
dependency \1@g' -i ${S}/tools/Makefile
}

to prevent rebuilding libfdt which was failing because of host headers.

Quoted 116 lines · Khem Raj
Quoted 2 lines · Marek Vasut

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Quoted 90 lines
Cc Otavio Salvador <[email protected]>
Cc Ross Burton <[email protected]>
Cc Richard Purdie <[email protected]>
---
 .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19
-------------------
 ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6 ++----
 ...fw-utils_2018.01.bb => u-boot-fw-utils_2018.03.bb} |  0
 ...t-mkimage_2018.01.bb => u-boot-mkimage_2018.03.bb} |  0
 .../u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb}   |  0
 5 files changed, 2 insertions(+), 23 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/files/
MPC8315ERDB-enable-DHCP.patch
 rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc =>
u-boot-common_2018.03.inc} (68%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb =>
u-boot-fw-utils_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb =>
u-boot-mkimage_2018.03.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb => u-boot_2018.03.bb}

(100%)

meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch deleted +0 -19
deleted file mode 100644
index ecaa1796a4..0000000000
@@ -1,19 +0,0 @@
-Enabled dhcp client functionality for Yocto reference
-hardware MPC8315E-RDB.
-
-Upstream-Status: Pending
-
-Signed-off-by: Ed Bartosh <[email protected]>
-
-Index: git/configs/MPC8315ERDB_defconfig
-===================================================================
---- git.orig/configs/MPC8315ERDB_defconfig
-+++ git/configs/MPC8315ERDB_defconfig
-@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
- CONFIG_CMD_SATA=y
- CONFIG_CMD_USB=y
- # CONFIG_CMD_SETEXPR is not set
-+CONFIG_CMD_DHCP=y
- CONFIG_CMD_MII=y
- CONFIG_CMD_PING=y
- CONFIG_CMD_DATE=y
meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc renamed from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc +2 -4
similarity index 68%
rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
index d2073ea0c7..8ffae365a9 100644
@@ -7,10 +7,8 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
+SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"
 
-SRC_URI = "git://git.denx.de/u-boot.git \
-    file://MPC8315ERDB-enable-DHCP.patch \
-"
+SRC_URI = "git://git.denx.de/u-boot.git"
 
 S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
meta/recipes-bsp/u-boot/u-boot_2018.03.bb renamed from meta/recipes-bsp/u-boot/u-boot_2018.01.bb +0 -1
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
--

2.16.2

Quoted 6 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
In reply to Khem Raj
Quoted 4 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

Quoted 8 lines

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Which version of libfdt and dtc do you have installed ? And is it really libfdt or dtc ?

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw
Quoted 10 lines · Marek Vasut
Quoted 9 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

Quoted 7 lines
Quoted 3 lines

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Which version of libfdt and dtc do you have installed ? And is it really libfdt or dtc ?

its dtc probably but header it picks is libfdt.h I am on archlinux

Quoted 3 lines

--
Best regards,
Marek Vasut

#5 lore raw
Quoted 15 lines · Khem Raj
Quoted 14 lines · Marek Vasut
Quoted 12 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Quoted 5 lines
Quoted 3 lines

Which version of libfdt and dtc do you have installed ? And is it really libfdt or dtc ?

its dtc probably but header it picks is libfdt.h I am on archlinux

So which version of either do you have on your host ?

Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw
In reply to Khem Raj

Hi,

I had to patch up our own u-boot recipe as shown in the attached patch to make v2018.03 compile for qemu-x86.

The thing is that the build of pylibfdt became unconditional since 15b97f5c5e ('pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile')

In my case u-boot/pylibfdt failed to find the correct (native) headers, because python setuptools / distutils looks into STAGING_{LIB,INC}DIR when compiling the native extension for libfdt. I didn't find any other way to specificy this in either the u-boot Makefile or some other magic environment variable.

// Martin

Quoted 122 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host
It seems build is doing the include dance which goes all the way into hosts system include directories

    Signed-off-by: Marek Vasut <[email protected] <mailto:[email protected]>>
    Cc: Otavio Salvador <[email protected]
    <mailto:[email protected]>>
    Cc: Ross Burton <[email protected] <mailto:[email protected]>>
    Cc: Richard Purdie <[email protected]
    <mailto:[email protected]>>
    ---
      .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19
    -------------------
      ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6 ++----
      ...fw-utils_2018.01.bb <http://fw-utils_2018.01.bb> =>
    u-boot-fw-utils_2018.03.bb <http://u-boot-fw-utils_2018.03.bb>} |  0
      ...t-mkimage_2018.01.bb <http://t-mkimage_2018.01.bb> =>
    u-boot-mkimage_2018.03.bb <http://u-boot-mkimage_2018.03.bb>} |  0
      .../u-boot/{u-boot_2018.01.bb <http://u-boot_2018.01.bb> =>
    u-boot_2018.03.bb <http://u-boot_2018.03.bb>}   |  0
      5 files changed, 2 insertions(+), 23 deletions(-)
      delete mode 100644
    meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
      rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc =>
    u-boot-common_2018.03.inc} (68%)
      rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb> => u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb> => u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb
    <http://u-boot_2018.01.bb> => u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>} (100%)

    diff --git
    a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
    b/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
    deleted file mode 100644
    index ecaa1796a4..0000000000
    --- a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Enabled dhcp client functionality for Yocto reference
    -hardware MPC8315E-RDB.
    -
    -Upstream-Status: Pending
    -
    -Signed-off-by: Ed Bartosh <[email protected]
    <mailto:[email protected]>>
    -
    -Index: git/configs/MPC8315ERDB_defconfig
    -===================================================================
    ---- git.orig/configs/MPC8315ERDB_defconfig
    -+++ git/configs/MPC8315ERDB_defconfig
    -@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
    - CONFIG_CMD_SATA=y
    - CONFIG_CMD_USB=y
    - # CONFIG_CMD_SETEXPR is not set
    -+CONFIG_CMD_DHCP=y
    - CONFIG_CMD_MII=y
    - CONFIG_CMD_PING=y
    - CONFIG_CMD_DATE=y
    diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
    b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
    similarity index 68%
    rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
    rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
    index d2073ea0c7..8ffae365a9 100644
    --- a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc
    +++ b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc
    @@ -7,10 +7,8 @@ PE = "1"

      # We use the revision in order to avoid having to fetch it from the
      # repo during parse
    -SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
    +SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"

    -SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git> \
    -    file://MPC8315ERDB-enable-DHCP.patch \
    -"
    +SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git>"

      S = "${WORKDIR}/git"
    diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot_2018.03.bb <http://u-boot_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>
    --
Quoted 11 lines
    2.16.2

    --
    _______________________________________________
    Openembedded-core mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core

From f037effcf106808fdb42ab84e1424e0d616104a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]>
Date: Tue, 3 Apr 2018 15:36:50 +0200
Subject: [PATCH] u-boot-pil: fix cross compile for qemux86
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 recipes-bsp/u-boot/u-boot-pil_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-bsp/u-boot/u-boot-pil_git.bb +6 -0
index e57ed8c..b5a3f09 100644
@@ -1,5 +1,6 @@
 DESCRIPTION = "PIL U-Boot"
 
+inherit pythonnative
 require recipes-bsp/u-boot/u-boot.inc
 
 DEPENDS += "bc-native dtc-native swig-native"
@@ -13,4 +14,9 @@ LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a
 SRC_URI = "git://${TOPDIR}/src/u-boot;protocol=file;nobranch=1"
 SRCREV ?= "9fa7d5863214935fe0f2aca5a4c5edfe25deb848"
 
+do_compile_prepend() {
+    export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
+    export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
+}
+
 S = "${WORKDIR}/git"
Signature · 1 line
2.17.0
#7 lore raw
Quoted 1 line · Martin Hundebøll

Hi,

Hi,

Quoted 7 lines

I had to patch up our own u-boot recipe as shown in the attached patch to make v2018.03 compile for qemu-x86.

The thing is that the build of pylibfdt became unconditional since 15b97f5c5e ('pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile')

Quoted 5 lines

In my case u-boot/pylibfdt failed to find the correct (native) headers, because python setuptools / distutils looks into STAGING_{LIB,INC}DIR when compiling the native extension for libfdt. I didn't find any other way to specificy this in either the u-boot Makefile or some other magic environment variable.

CCing Yamada-san, maybe he has an idea.
Also, do not top post.

Quoted 140 lines

// Martin

Quoted 137 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

    This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Signed-off-by Marek Vasut <[email protected] <mailto:[email protected]>>
Cc Otavio Salvador <[email protected]

    <mailto:[email protected]>>
    Cc: Ross Burton <[email protected] <mailto:[email protected]>>
    Cc: Richard Purdie <[email protected] <mailto:[email protected]>>
    ---
      .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19
    -------------------
      ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6 ++---- ...fw-utils_2018.01.bb <http://fw-utils_2018.01.bb> => u-boot-fw-utils_2018.03.bb <http://u-boot-fw-utils_2018.03.bb>} |  0 ...t-mkimage_2018.01.bb <http://t-mkimage_2018.01.bb> => u-boot-mkimage_2018.03.bb <http://u-boot-mkimage_2018.03.bb>} |  0 .../u-boot/{u-boot_2018.01.bb <http://u-boot_2018.01.bb> => u-boot_2018.03.bb <http://u-boot_2018.03.bb>}   |  0

      5 files changed, 2 insertions(+), 23 deletions(-)

      delete mode 100644 meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc => u-boot-common_2018.03.inc} (68%)
      rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb> => u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb> => u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb
    <http://u-boot_2018.01.bb> => u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>} (100%)

    diff --git a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch b/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch deleted file mode 100644
    index ecaa1796a4..0000000000
    --- a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch +++ /dev/null
    @@ -1,19 +0,0 @@
    -Enabled dhcp client functionality for Yocto reference -hardware MPC8315E-RDB.
    -
    -Upstream-Status: Pending
    -
    -Signed-off-by: Ed Bartosh <[email protected] <mailto:[email protected]>>
    -
    -Index: git/configs/MPC8315ERDB_defconfig
    -===================================================================
    ---- git.orig/configs/MPC8315ERDB_defconfig
    -+++ git/configs/MPC8315ERDB_defconfig
    -@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
    - CONFIG_CMD_SATA=y
    - CONFIG_CMD_USB=y
    - # CONFIG_CMD_SETEXPR is not set
    -+CONFIG_CMD_DHCP=y
    - CONFIG_CMD_MII=y
    - CONFIG_CMD_PING=y
    - CONFIG_CMD_DATE=y
    diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc similarity index 68%
    rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc index d2073ea0c7..8ffae365a9 100644
    --- a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc +++ b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc @@ -7,10 +7,8 @@ PE = "1"

      # We use the revision in order to avoid having to fetch it from the

      # repo during parse
    -SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
    +SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"

    -SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git> \
    -    file://MPC8315ERDB-enable-DHCP.patch \
    -"
    +SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git>"

      S = "${WORKDIR}/git"
    diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot_2018.03.bb
<http://u-boot_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>
    --
    2.16.2

    --
    _______________________________________________
    Openembedded-core mailing list [email protected] <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
Best regards,
Marek Vasut

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw

Hi,

Quoted 24 lines · On 2018-04-11 04:28, [email protected] wrote:

Hi.

Quoted 7 lines
Quoted 7 lines

I had to patch up our own u-boot recipe as shown in the attached patch to make v2018.03 compile for qemu-x86.

The thing is that the build of pylibfdt became unconditional since 15b97f5c5e ('pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile')

Quoted 8 lines
Quoted 5 lines

In my case u-boot/pylibfdt failed to find the correct (native) headers, because python setuptools / distutils looks into STAGING_{LIB,INC}DIR when compiling the native extension for libfdt. I didn't find any other way to specificy this in either the u-boot Makefile or some other magic environment variable.

CCing Yamada-san, maybe he has an idea.
Also, do not top post.

The build of pylibfdt is conditional. It is built only when CONFIG_PYLIBFDT=y, which is selected by CONFIG_DTOC.

Quoted 7 lines

If you really do not need pylibfdt,
you can disable it by tweaking the configuration.

If you need pylibfdt but you cannot build it, it is a different problem.

Thanks.

Correct. But I was building u-boot.rom for qemu-x86, which depends on binman and thus pylibfdt. Before the mentioned commit, one could avoid the building of pylibfdt by installing it on the host, as the makerule checked if python could already import pylibfdt. This check is now removed.

Or am I missing something?

// Martin

Quoted 184 lines
Quoted 184 lines

-----Original Message-----
From: Marek Vasut [mailto:[email protected]]
Sent: Tuesday, April 10, 2018 6:55 PM
To: Martin Hundebøll <[email protected]>; Khem Raj <[email protected]>
Cc: Otavio Salvador <[email protected]>; [email protected]; Yamada, Masahiro/山田 真弘 <[email protected]>
Subject: Re: [OE-core] [PATCH] u-boot: Upgrade to 2018.03 release

Quoted 1 line · Martin Hundebøll

Hi,

Hi,

Quoted 7 lines

I had to patch up our own u-boot recipe as shown in the attached patch to make v2018.03 compile for qemu-x86.

The thing is that the build of pylibfdt became unconditional since 15b97f5c5e ('pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile')

Quoted 5 lines

In my case u-boot/pylibfdt failed to find the correct (native) headers, because python setuptools / distutils looks into STAGING_{LIB,INC}DIR when compiling the native extension for libfdt. I didn't find any other way to specificy this in either the u-boot Makefile or some other magic environment variable.

CCing Yamada-san, maybe he has an idea.
Also, do not top post.

Quoted 29 lines

// Martin

Quoted 26 lines · Khem Raj

On Sun, Apr 8, 2018 at 4:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

    This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

It fails for me if I have libfdt installed on build host It seems build is doing the include dance which goes all the way into hosts system include directories

Signed-off-by Marek Vasut <[email protected] <mailto:[email protected]>>
Cc Otavio Salvador <[email protected]

    <mailto:[email protected]>>
    Cc: Ross Burton <[email protected]
<mailto:[email protected]>>
    Cc: Richard Purdie <[email protected] <mailto:[email protected]>>
    ---

       .../u-boot/files/MPC8315ERDB-enable-DHCP.patch        | 19
     -------------------
       ...t-common_2018.01.inc => u-boot-common_2018.03.inc} |  6

++----

Quoted 2 lines
Quoted 2 lines

      ...fw-utils_2018.01.bb <http://fw-utils_2018.01.bb> => u-boot-fw-utils_2018.03.bb <http://u-boot-fw-utils_2018.03.bb>}

|  0

Quoted 2 lines
Quoted 2 lines

      ...t-mkimage_2018.01.bb <http://t-mkimage_2018.01.bb> => u-boot-mkimage_2018.03.bb <http://u-boot-mkimage_2018.03.bb>}

|  0

Quoted 9 lines
Quoted 9 lines

      .../u-boot/{u-boot_2018.01.bb <http://u-boot_2018.01.bb> =>

     u-boot_2018.03.bb <http://u-boot_2018.03.bb>}   |  0
       5 files changed, 2 insertions(+), 23 deletions(-)

      delete mode 100644 meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch rename meta/recipes-bsp/u-boot/{u-boot-common_2018.01.inc => u-boot-common_2018.03.inc} (68%)
      rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb> =>

u-boot-fw-utils_2018.03.bb

Quoted 8 lines
Quoted 8 lines

    <http://u-boot-fw-utils_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb> => u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>} (100%)
      rename meta/recipes-bsp/u-boot/{u-boot_2018.01.bb
    <http://u-boot_2018.01.bb> => u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>} (100%)

Quoted 6 lines
Quoted 6 lines

    diff --git a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch b/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch deleted file mode 100644
    index ecaa1796a4..0000000000
    ---

a/meta/recipes-bsp/u-boot/files/MPC8315ERDB-enable-DHCP.patch

Quoted 4 lines
Quoted 4 lines

    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Enabled dhcp client functionality for Yocto reference -hardware MPC8315E-RDB.

Quoted 8 lines
Quoted 8 lines

    -
    -Upstream-Status: Pending
    -
    -Signed-off-by: Ed Bartosh <[email protected] <mailto:[email protected]>>
    -
    -Index: git/configs/MPC8315ERDB_defconfig
    -==============================================================

=====

Quoted 20 lines
Quoted 20 lines

    ---- git.orig/configs/MPC8315ERDB_defconfig
    -+++ git/configs/MPC8315ERDB_defconfig
    -@@ -12,6 +12,7 @@ CONFIG_CMD_PCI=y
    - CONFIG_CMD_SATA=y
    - CONFIG_CMD_USB=y
    - # CONFIG_CMD_SETEXPR is not set -+CONFIG_CMD_DHCP=y
    - CONFIG_CMD_MII=y
    - CONFIG_CMD_PING=y
    - CONFIG_CMD_DATE=y
    diff --git a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc similarity index 68%
    rename from meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc rename to meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc index d2073ea0c7..8ffae365a9 100644
    --- a/meta/recipes-bsp/u-boot/u-boot-common_2018.01.inc +++ b/meta/recipes-bsp/u-boot/u-boot-common_2018.03.inc @@ -7,10 +7,8 @@ PE = "1"

Quoted 1 line
Quoted 1 line

      # We use the revision in order to avoid having to fetch it from

the

Quoted 42 lines
Quoted 42 lines
       # repo during parse
     -SRCREV = "f3dd87e0b98999a78e500e8c6d2b063ebadf535a"
     +SRCREV = "f95ab1fb6e37f0601f397091bb011edf7a98b890"

    -SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git> \
    -    file://MPC8315ERDB-enable-DHCP.patch \
    -"
    +SRC_URI = "git://git.denx.de/u-boot.git
    <http://git.denx.de/u-boot.git>"

      S = "${WORKDIR}/git"
    diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.01.bb
    <http://u-boot-fw-utils_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.03.bb
    <http://u-boot-fw-utils_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
    <http://u-boot-mkimage_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.03.bb
    <http://u-boot-mkimage_2018.03.bb>
    diff --git a/meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    b/meta/recipes-bsp/u-boot/u-boot_2018.03.bb
<http://u-boot_2018.03.bb>
    similarity index 100%
    rename from meta/recipes-bsp/u-boot/u-boot_2018.01.bb
    <http://u-boot_2018.01.bb>
    rename to meta/recipes-bsp/u-boot/u-boot_2018.03.bb
    <http://u-boot_2018.03.bb>
    --
    2.16.2

Quoted 6 lines
Quoted 6 lines

    --
    _______________________________________________
    Openembedded-core mailing list [email protected] <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-cor

e

Quoted 3 lines
Quoted 3 lines

--
Best regards,
Marek Vasut

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 58 lines · On 04/16/2018 10:38 AM, [email protected] wrote:

Hi.

Quoted 41 lines

-----Original Message-----
From: Martin Hundebøll [mailto:[email protected]]
Sent: Wednesday, April 11, 2018 5:42 PM
To: Yamada, Masahiro/山田 真弘 <[email protected]>; [email protected]; [email protected]
Cc: [email protected]; [email protected]
Subject: Re: [OE-core] [PATCH] u-boot: Upgrade to 2018.03 release

Hi,

Quoted 30 lines · On 2018-04-11 04:28, [email protected] wrote:

Hi.

Quoted 7 lines
Quoted 7 lines

I had to patch up our own u-boot recipe as shown in the attached patch to make v2018.03 compile for qemu-x86.

The thing is that the build of pylibfdt became unconditional since 15b97f5c5e ('pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile')

Quoted 8 lines
Quoted 5 lines

In my case u-boot/pylibfdt failed to find the correct (native) headers, because python setuptools / distutils looks into STAGING_{LIB,INC}DIR when compiling the native extension for libfdt. I didn't find any other way to specificy this in either the u-boot Makefile or some other magic environment variable.

CCing Yamada-san, maybe he has an idea.
Also, do not top post.

The build of pylibfdt is conditional. It is built only when CONFIG_PYLIBFDT=y, which is selected by CONFIG_DTOC.

If you really do not need pylibfdt,
you can disable it by tweaking the configuration.

If you need pylibfdt but you cannot build it, it is a different problem.

Quoted 8 lines
Quoted 1 line

Thanks.

Correct. But I was building u-boot.rom for qemu-x86, which depends on binman and thus pylibfdt. Before the mentioned commit, one could avoid the building of pylibfdt by installing it on the host, as the makerule checked if python could already import pylibfdt. This check is now removed.

Or am I missing something?

Understood what you mean, but I do not know
whether the previous behavior was intended, or just something people discovered to work.

Quoted 5 lines

Now U-Boot bundles its own DTC (scripts/dtc/dtc),
so compiling also pylibfdt from the source in U-boot tree makes sense.

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Signature · 2 lines
Best regards,
Marek Vasut
#12 lore raw
Quoted 5 lines · Marek Vasut
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Alex

#13 lore raw
Quoted 9 lines · Alexander Kanavin
Quoted 5 lines · Marek Vasut
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

Signature · 2 lines
Best regards,
Marek Vasut
#14 lore raw
Quoted 10 lines · Marek Vasut
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

Alex

#15 lore raw
Quoted 7 lines · Alexander Kanavin
Quoted 6 lines · Marek Vasut
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

We shouldn't. The point in use the recipes inside OE-Core is because our bugfixes, patches and etc are used everywhere. If we use the bundled copy how we'd fix a host issue for example? Duplicate patches?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#16 lore raw
Quoted 13 lines · Otavio Salvador
Quoted 10 lines · Alexander Kanavin
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

We shouldn't. The point in use the recipes inside OE-Core is because our bugfixes, patches and etc are used everywhere. If we use the bundled copy how we'd fix a host issue for example? Duplicate patches?

What do you do for the kernel here?

Signature · 1 line
Tom
#17 lore raw
Quoted 14 lines · Tom Rini
Quoted 13 lines · Otavio Salvador
Quoted 10 lines · Alexander Kanavin
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

We shouldn't. The point in use the recipes inside OE-Core is because our bugfixes, patches and etc are used everywhere. If we use the bundled

copy

Quoted 3 lines
Quoted 1 line

how we'd fix a host issue for example? Duplicate patches?

What do you do for the kernel here?

We use our dtc-native. As we do for all other recipes (but few exceptions)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#18 lore raw
Quoted 21 lines · Otavio Salvador
Quoted 19 lines · Tom Rini
Quoted 18 lines · Otavio Salvador
Quoted 14 lines · Alexander Kanavin
Quoted 10 lines · Marek Vasut
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

We shouldn't. The point in use the recipes inside OE-Core is because our bugfixes, patches and etc are used everywhere. If we use the bundled

copy

Quoted 3 lines
Quoted 1 line

how we'd fix a host issue for example? Duplicate patches?

What do you do for the kernel here?

We use our dtc-native. As we do for all other recipes (but few exceptions)

Yeah, we should use the DTC from OE , not the DTC from U-Boot.

Signature · 2 lines
Best regards,
Marek Vasut
#19 lore raw
In reply to Otavio Salvador
Quoted 21 lines · Otavio Salvador
Quoted 19 lines · Tom Rini
Quoted 18 lines · Otavio Salvador
Quoted 14 lines · Alexander Kanavin
Quoted 10 lines · Marek Vasut
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

If u-boot bundles dtc in its source tree, can we use that, and remove the external dtc recipe?

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

We shouldn't. The point in use the recipes inside OE-Core is because our bugfixes, patches and etc are used everywhere. If we use the bundled

copy

Quoted 3 lines
Quoted 1 line

how we'd fix a host issue for example? Duplicate patches?

What do you do for the kernel here?

We use our dtc-native. As we do for all other recipes (but few exceptions)

Then you should also be doing swig-native, if I recall the other parts of this thread (or the other one?) correctly.

Signature · 1 line
Tom
#20 lore raw
Quoted 3 lines · Tom Rini
Quoted 2 lines · Otavio Salvador

On Mon, Apr 30, 2018 at 5:25 PM Tom Rini <[email protected]> wrote:
We use our dtc-native. As we do for all other recipes (but few

exceptions)

Quoted 2 lines

Then you should also be doing swig-native, if I recall the other parts of this thread (or the other one?) correctly.

Yes, we should ...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#21 lore raw
In reply to Marek Vasut
Quoted 5 lines · Marek Vasut
Quoted 4 lines · Alexander Kanavin
Quoted 3 lines · Marek Vasut
Quoted 2 lines

Isn't it possible to solve your issue in the OE side?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Can we NOT compile DTC alongside U-Boot somehow ? :) That'd be the most desired solution IMO.

Yes please. Can you adjust the recipes and classes in oe-core, and remove the dtc recipe altogether?

Remove dtc recipe ? Not sure I understand what you're implying.

I guess Alexander misunderstood the "alongside U-Boot" part of your suggestion.

I agree that building dtc/libfdt in the U-Boot build instead of just using whatever is already available on the host/OE is undesirable.

But please elaborate if I am mistaken.

// Martin

#22 lore raw
In reply to Marek Vasut
Quoted 2 lines · Marek Vasut

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

Are you proposing this for 2.5/Sumo (breaking the freeze) or is it fine to sit in master-next until 2.5 is released?

Ross

#23 lore raw
Quoted 6 lines · Ross
Quoted 2 lines · Marek Vasut

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

Are you proposing this for 2.5/Sumo (breaking the freeze) or is it fine to sit in master-next until 2.5 is released?

master-next, for 2.6 .

Signature · 2 lines
Best regards,
Marek Vasut
#24 lore raw

Hi,

Please see my comments below.

Quoted 8 lines · Marek Vasut
Quoted 5 lines · Ross
Quoted 2 lines · Marek Vasut

This upgrades the U-Boot from 2018.01 to 2018.03 release and drops patches accepted upstream, getting the patch count to zero.

Are you proposing this for 2.5/Sumo (breaking the freeze) or is it fine to sit in master-next until 2.5 is released?

master-next, for 2.6 .

I think we have also problem with u-boot and rocko 2.4.x

I observed with 2.4.x for i.mx6 and sitara that u-boot 2017.01 does not function anymore properly (networking is broken due to compiler upgrade with 2.4.x [1]).

So I built u-boot 2017.03 (a pre-release version) with 2.4.1 and 2.4.2 and it was fixed.

Please note, that I did not do this via bitbake, but using the SDK.

So I think it would be a good idea to get u-boot 2017.03 to build with a recent version of rocko as well.

[1] https://www.mail-archive.com/[email protected]/msg39605.html

Regards,

Robert

#25 lore raw
In reply to Marek Vasut

Hi,

Update:

This rocko 2.4/u-boot combination still seems to work[1]:

Note that this is before rocko 2.4.1 and before U-Boot 2018.01.

=> version
U-Boot 2017.09 (Nov 04 2017 - 20:32:29 +0000)

arm-poky-linux-gnueabi-gcc (GCC) 7.2.0
GNU ld (GNU Binutils) 2.29.0.20170912

[1] https://github.com/RobertBerger/meta-mainline/blob/rocko-training-v4.9.x/u-boot-wic-bsp/yocto-autobuilder/res-custom-rocko-multi-v7-core-image-minimal-uboot-vic.conf

Regards,

Robert