u-boot: move forward the u-boot version 2017.03
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
58f76af1c1
commit
ee8c67ea66
|
|
@ -0,0 +1,28 @@
|
||||||
|
Nios II for MAX10 10m50 board requires update to
|
||||||
|
its device tree to enable CPU driver during
|
||||||
|
u-boot pre-relocation. This patch tag the CPU
|
||||||
|
with dm-pre-reloc flag.
|
||||||
|
|
||||||
|
Upstream-Status: Submitted
|
||||||
|
|
||||||
|
Signed-off-by: Gan, Yau Wai <yau.wai.gan@intel.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
arch/nios2/dts/10m50_devboard.dts | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/arch/nios2/dts/10m50_devboard.dts b/arch/nios2/dts/10m50_devboard.dts
|
||||||
|
index 05eac30..461ae68 100644
|
||||||
|
--- a/arch/nios2/dts/10m50_devboard.dts
|
||||||
|
+++ b/arch/nios2/dts/10m50_devboard.dts
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
cpu: cpu@0 {
|
||||||
|
+ u-boot,dm-pre-reloc;
|
||||||
|
device_type = "cpu";
|
||||||
|
compatible = "altr,nios2-1.1";
|
||||||
|
reg = <0x00000000>;
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
Enabled dhcp client functionality for Yocto reference
|
||||||
|
hardware MPC8315E-RDB.
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
|
||||||
|
|
||||||
|
diff --git a/configs/MPC8315ERDB_defconfig b/configs/MPC8315ERDB_defconfig
|
||||||
|
index 4e2b705..b02ab1f 100644
|
||||||
|
--- a/configs/MPC8315ERDB_defconfig
|
||||||
|
+++ b/configs/MPC8315ERDB_defconfig
|
||||||
|
@@ -9,6 +9,7 @@ CONFIG_HUSH_PARSER=y
|
||||||
|
CONFIG_CMD_I2C=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_EXT2=y
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
|
||||||
|
SECTION = "bootloaders"
|
||||||
|
|
||||||
|
LICENSE = "GPLv2+"
|
||||||
|
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
|
||||||
|
PE = "1"
|
||||||
|
|
||||||
|
# We use the revision in order to avoid having to fetch it from the
|
||||||
|
# repo during parse
|
||||||
|
SRCREV = "c98ac3487e413c71e5d36322ef3324b21c6f60f9"
|
||||||
|
|
||||||
|
SRC_URI = "git://git.denx.de/u-boot.git \
|
||||||
|
file://MPC8315ERDB-enable-DHCP.patch \
|
||||||
|
file://10m50-update-device-tree.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index c9d8e6d..6002726 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -348,7 +348,7 @@ OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||||
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
||||||
|
AWK = awk
|
||||||
|
PERL = perl
|
||||||
|
-PYTHON = python
|
||||||
|
+PYTHON ?= python
|
||||||
|
DTC = dtc
|
||||||
|
CHECK = sparse
|
||||||
|
|
||||||
|
diff --git a/tools/Makefile b/tools/Makefile
|
||||||
|
index 1247999..b47f475 100644
|
||||||
|
--- a/tools/Makefile
|
||||||
|
+++ b/tools/Makefile
|
||||||
|
@@ -120,7 +120,7 @@ _libfdt.so-sharedobjs += $(LIBFDT_OBJS)
|
||||||
|
libfdt:
|
||||||
|
|
||||||
|
tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c
|
||||||
|
- LDFLAGS="$(HOSTLDFLAGS)" python $(srctree)/lib/libfdt/setup.py \
|
||||||
|
+ LDFLAGS="$(HOSTLDFLAGS)" ${PYTHON} $(srctree)/lib/libfdt/setup.py \
|
||||||
|
"$(_hostc_flags)" $^
|
||||||
|
mv _libfdt.so $@
|
||||||
|
|
||||||
|
|
@ -27,6 +27,7 @@ SRC_URI = " \
|
||||||
SRC_URI_append = " \
|
SRC_URI_append = " \
|
||||||
file://boot.txt \
|
file://boot.txt \
|
||||||
file://install_linux_fw_sd.txt \
|
file://install_linux_fw_sd.txt \
|
||||||
|
file://fix_uboot_gcc.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
LOCALVERSION ?= ""
|
LOCALVERSION ?= ""
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
require u-boot-common_${PV}.inc
|
||||||
|
|
||||||
|
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||||
|
DEPENDS = "mtd-utils"
|
||||||
|
|
||||||
|
INSANE_SKIP_${PN} = "already-stripped"
|
||||||
|
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
|
||||||
|
EXTRA_OEMAKE_class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
|
||||||
|
|
||||||
|
inherit uboot-config
|
||||||
|
|
||||||
|
do_compile () {
|
||||||
|
oe_runmake ${UBOOT_MACHINE}
|
||||||
|
oe_runmake envtools
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}${base_sbindir}
|
||||||
|
install -d ${D}${sysconfdir}
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
|
||||||
|
install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_class-cross () {
|
||||||
|
install -d ${D}${bindir_cross}
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
|
||||||
|
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
|
||||||
|
}
|
||||||
|
|
||||||
|
SYSROOT_DIRS_append_class-cross = " ${bindir_cross}"
|
||||||
|
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
BBCLASSEXTEND = "cross"
|
||||||
|
|
@ -60,6 +60,7 @@ PREFERRED_VERSION_linux-yocto ?= "4.14%"
|
||||||
# Some features (swupdate, environment encryption) depends on this specific
|
# Some features (swupdate, environment encryption) depends on this specific
|
||||||
# provider for u-boot-fw-tools
|
# provider for u-boot-fw-tools
|
||||||
PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils"
|
PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils"
|
||||||
|
PREFERRED_VERSION_u-boot-fw-utils ?= "2017.09"
|
||||||
|
|
||||||
# Use git recipe for libsoc
|
# Use git recipe for libsoc
|
||||||
PREFERRED_VERSION_libsoc = "git"
|
PREFERRED_VERSION_libsoc = "git"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue