Skip to contentSkip to conversation

u-boot: Update to 2015.10 release

PATCH In review Otavio Salvador 2 participants 2 messages Nov 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 u-boot: Update to 2015.10 release

The U-Boot 2015.10 has been released at October 20th 2015. This also removes the GCC workaround, for the inline behavior, as this version properlu supports the GCC 5.2 as compiler.

---

Changes in v2:
- Add patches from 2016.10 for GCC 5.2 support and other critical fixes

 ...utils_2015.07.bb => u-boot-fw-utils_2015.10.bb} |    6 +-
 ...kimage_2015.07.bb => u-boot-mkimage_2015.10.bb} |    6 +-
 ...u-boot-.lds-remove-_GLOBAL_OFFSET_TABLE_.patch} |   11 +-
 ...-non-Android-booting-with-ramdisk-and-or-.patch |   36 +
 ...board_f-enable-setup_board_part1-for-MIPS.patch |   59 +
 ...PS-bootm-rework-and-fix-broken-bootm-code.patch |  254 +++++
 ...PS-bootm-use-CONFIG_IS_ENABLED-everywhere.patch |   93 ++
 ...-Replace-extern-inline-with-static-inline.patch | 1184 ++++++++++++++++++++
 meta/recipes-bsp/u-boot/u-boot_2015.07.bb          |   14 -
 meta/recipes-bsp/u-boot/u-boot_2015.10.bb          |   19 +
 10 files changed, 1657 insertions(+), 25 deletions(-)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2015.07.bb => u-boot-fw-utils_2015.10.bb} (91%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2015.07.bb => u-boot-mkimage_2015.10.bb} (84%)
 rename meta/recipes-bsp/u-boot/u-boot/{0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch => 0001-powerpc-cpu-u-boot-.lds-remove-_GLOBAL_OFFSET_TABLE_.patch} (96%)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot/0002-image.c-Fix-non-Android-booting-with-ramdisk-and-or-.patch
 create mode 100644 meta/recipes-bsp/u-boot/u-boot/0003-common-board_f-enable-setup_board_part1-for-MIPS.patch
 create mode 100644 meta/recipes-bsp/u-boot/u-boot/0004-MIPS-bootm-rework-and-fix-broken-bootm-code.patch
 create mode 100644 meta/recipes-bsp/u-boot/u-boot/0005-MIPS-bootm-use-CONFIG_IS_ENABLED-everywhere.patch
 create mode 100644 meta/recipes-bsp/u-boot/u-boot/0006-Replace-extern-inline-with-static-inline.patch
 delete mode 100644 meta/recipes-bsp/u-boot/u-boot_2015.07.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot_2015.10.bb
meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.10.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.07.bb +3 -3
similarity index 91%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.07.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.10.bb
index 0df7a05..93c06e1 100644
@@ -4,12 +4,12 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95"
 SECTION = "bootloader"
 DEPENDS = "mtd-utils"
 
-# This revision corresponds to the tag "v2015.07"
+# This revision corresponds to the tag "v2015.10"
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "33711bdd4a4dce942fb5ae85a68899a8357bdd94"
+SRCREV = "5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d"
 
-PV = "v2015.07+git${SRCPV}"
+PV = "v2015.10+git${SRCPV}"
 
 SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
 
meta/recipes-bsp/u-boot/u-boot-mkimage_2015.10.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2015.07.bb +3 -3
similarity index 84%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2015.07.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2015.10.bb
index ba29bbb..301b6e2 100644
@@ -5,12 +5,12 @@ SECTION = "bootloader"
 
 DEPENDS = "openssl"
 
-# This revision corresponds to the tag "v2015.07"
+# This revision corresponds to the tag "v2015.10"
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "33711bdd4a4dce942fb5ae85a68899a8357bdd94"
+SRCREV = "5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d"
 
-PV = "v2015.07+git${SRCPV}"
+PV = "v2015.10+git${SRCPV}"
 
 SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
 
meta/recipes-bsp/u-boot/u-boot/0001-powerpc-cpu-u-boot-.lds-remove-_GLOBAL_OFFSET_TABLE_.patch renamed from meta/recipes-bsp/u-boot/u-boot/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch +6 -5
similarity index 96%
rename from meta/recipes-bsp/u-boot/u-boot/0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch
rename to meta/recipes-bsp/u-boot/u-boot/0001-powerpc-cpu-u-boot-.lds-remove-_GLOBAL_OFFSET_TABLE_.patch
index dfbcd45..b709acf 100644
@@ -1,7 +1,7 @@
-From 92598e1515b2ec3851af1f064075d0457f01272d Mon Sep 17 00:00:00 2001
+From 47092c85a2d3dea6fb3ffa59ae6fe737112db93e Mon Sep 17 00:00:00 2001
 From: Zhenhua Luo <[email protected]>
 Date: Mon, 9 Feb 2015 18:33:56 +0800
-Subject: [PATCH] powerpc/cpu/*/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_
+Subject: [PATCH 1/6] powerpc/cpu/*/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_
  definition
 Organization: O.S. Systems Software LTDA.
 
@@ -17,9 +17,10 @@ section should be used(https://sourceware.org/ml/binutils/2008-09/msg00122.html)
 Fixed the following build errors with binutils-2.25:
 | powerpc-poky-linux-gnuspe-ld.bfd: _GLOBAL_OFFSET_TABLE_ not defined in linker created .got
 
-Signed-off-by: Zhenhua Luo <[email protected]>
-
 Upstream-Status: Pending
+
+Signed-off-by: Zhenhua Luo <[email protected]>
+Signed-off-by: Otavio Salvador <[email protected]>
 ---
  arch/powerpc/cpu/mpc512x/u-boot.lds          | 1 -
  arch/powerpc/cpu/mpc5xx/u-boot.lds           | 1 -
@@ -180,5 +181,5 @@ index 1980508..55dd4e1 100644
      KEEP(*(.fixup))
    }
 -- 
-2.4.6
+2.6.2
 
meta/recipes-bsp/u-boot/u-boot/0002-image.c-Fix-non-Android-booting-with-ramdisk-and-or-.patch new file +36 -0
new file mode 100644
index 0000000..0d1a714
@@ -0,0 +1,36 @@
+From 0a8c59720155c30f01d4cd1c53da3647a3f4decd Mon Sep 17 00:00:00 2001
+From: Tom Rini <[email protected]>
+Date: Tue, 27 Oct 2015 19:04:40 -0400
+Subject: [PATCH 2/6] image.c: Fix non-Android booting with ramdisk and/or
+ device tree
+Organization: O.S. Systems Software LTDA.
+
+In 1fec3c5 I added a check that if we had an Android image we default to
+trying the kernel address for a ramdisk.  However when we don't have an
+Android image buf is NULL and we oops here.  Ensure that we have 'buf'
+to check first.
+
+Upstream-Status: Backport [2016.01]
+
+Reported-by: elipe Balbi <[email protected]>
+Signed-off-by: Tom Rini <[email protected]>
+---
+ common/image.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/common/image.c b/common/image.c
+index e607109..85c4f39 100644
+--- a/common/image.c
++++ b/common/image.c
+@@ -913,7 +913,7 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
+ 	 * Look for an Android boot image.
+ 	 */
+ 	buf = map_sysmem(images->os.start, 0);
+-	if (genimg_get_format(buf) == IMAGE_FORMAT_ANDROID)
++	if (buf && genimg_get_format(buf) == IMAGE_FORMAT_ANDROID)
+ 		select = argv[0];
+ #endif
+ 
+-- 
+2.6.2
+
meta/recipes-bsp/u-boot/u-boot/0003-common-board_f-enable-setup_board_part1-for-MIPS.patch new file +59 -0

59 lines not on this page · raw message

meta/recipes-bsp/u-boot/u-boot/0004-MIPS-bootm-rework-and-fix-broken-bootm-code.patch new file +254 -0

254 lines not on this page · raw message

meta/recipes-bsp/u-boot/u-boot/0005-MIPS-bootm-use-CONFIG_IS_ENABLED-everywhere.patch new file +93 -0

93 lines not on this page · raw message

meta/recipes-bsp/u-boot/u-boot/0006-Replace-extern-inline-with-static-inline.patch new file +1184 -0

1,184 lines not on this page · raw message

meta/recipes-bsp/u-boot/u-boot_2015.07.bb deleted +0 -14
deleted file mode 100644
index 4746c33..0000000
@@ -1,14 +0,0 @@
-require u-boot.inc
-
-DEPENDS += "dtc-native"
-
-# This revision corresponds to the tag "v2015.07"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "33711bdd4a4dce942fb5ae85a68899a8357bdd94"
-
-SRC_URI += "file://0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch"
-
-PV = "v2015.07+git${SRCPV}"
-
-EXTRA_OEMAKE_append = " KCFLAGS=-fgnu89-inline"
meta/recipes-bsp/u-boot/u-boot_2015.10.bb new file +19 -0
new file mode 100644
index 0000000..2abfcfa
@@ -0,0 +1,19 @@
+require u-boot.inc
+
+DEPENDS += "dtc-native"
+
+# This revision corresponds to the tag "v2015.10"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d"
+
+SRC_URI += " \
+    file://0001-powerpc-cpu-u-boot-.lds-remove-_GLOBAL_OFFSET_TABLE_.patch \
+    file://0002-image.c-Fix-non-Android-booting-with-ramdisk-and-or-.patch \
+    file://0003-common-board_f-enable-setup_board_part1-for-MIPS.patch \
+    file://0004-MIPS-bootm-rework-and-fix-broken-bootm-code.patch \
+    file://0005-MIPS-bootm-use-CONFIG_IS_ENABLED-everywhere.patch \
+    file://0006-Replace-extern-inline-with-static-inline.patch \
+"
+
+PV = "v2015.10+git${SRCPV}"
Signature · 1 line
2.6.2