[meta-freescale] [PATCH 16/32] dtc: Add recipe for version 1.4.5

Mihai Lindner mihai.lindner at nxp.com
Thu Jun 28 08:33:39 PDT 2018


Hello,

This patch seems to break building images that use systemd as 
init-manager, dtc-145 conflicts with the actual dtc package. Maybe a bit 
late, as this already landed in master.

Somehow, I'm guessing that through PACKAGE_WRITE_DEPS, systemd pulls in 
qemu, which pulls dtc, and u-boot-imx pulls in dtc-145, resulting in 
"FileExistsError: [Errno 17] File exists" at do_image_wic.

Can this be done by having dtc with 1.4.5 as a version, and setting it 
as preferred in our environment? Or maybe other solutions to this.

Thanks,
Mihai

On 06/25/2018 10:45 PM, Otavio Salvador wrote:
> From: Fabio Berton <fabio.berton at ossystems.com.br>
> 
> We need dtc version 1.4.5 to build u-boot-imx 2017.03, current
> version 1.4.6 raise a lot of errors and can't build older U-Boot
> version.
> 
> Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
> 
>   recipes-bsp/u-boot/u-boot-imx_2017.03.bb    |  2 +-
>   recipes-kernel/dtc/dtc-145_git.bb           | 12 ++++++++++++
>   recipes-kernel/dtc/files/make_install.patch | 17 +++++++++++++++++
>   3 files changed, 30 insertions(+), 1 deletion(-)
>   create mode 100644 recipes-kernel/dtc/dtc-145_git.bb
>   create mode 100644 recipes-kernel/dtc/files/make_install.patch
> 
> diff --git a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb b/recipes-bsp/u-boot/u-boot-imx_2017.03.bb
> index 72205676..52ebee99 100644
> --- a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb
> +++ b/recipes-bsp/u-boot/u-boot-imx_2017.03.bb
> @@ -6,7 +6,7 @@ DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
>   require recipes-bsp/u-boot/u-boot.inc
>   
>   PROVIDES += "u-boot"
> -DEPENDS_append = "dtc-native"
> +DEPENDS_append = "dtc-145-native"
>   
>   LICENSE = "GPLv2+"
>   LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> diff --git a/recipes-kernel/dtc/dtc-145_git.bb b/recipes-kernel/dtc/dtc-145_git.bb
> new file mode 100644
> index 00000000..afed62fd
> --- /dev/null
> +++ b/recipes-kernel/dtc/dtc-145_git.bb
> @@ -0,0 +1,12 @@
> +require recipes-kernel/dtc/dtc.inc
> +
> +LIC_FILES_CHKSUM = " \
> +    file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \
> +    file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c \
> +"
> +
> +SRCREV = "22a65c5331c22979d416738eb756b9541672e00d"
> +
> +S = "${WORKDIR}/git"
> +
> +BBCLASSEXTEND = "native nativesdk"
> diff --git a/recipes-kernel/dtc/files/make_install.patch b/recipes-kernel/dtc/files/make_install.patch
> new file mode 100644
> index 00000000..ccf17b38
> --- /dev/null
> +++ b/recipes-kernel/dtc/files/make_install.patch
> @@ -0,0 +1,17 @@
> +Upstream-Status: Inappropriate [configuration]
> +
> +Index: git/Makefile
> +===================================================================
> +--- git.orig/Makefile
> ++++ git/Makefile
> +@@ -168,8 +168,8 @@ install-bin: all $(SCRIPTS)
> + install-lib: all
> + 	@$(VECHO) INSTALL-LIB
> + 	$(INSTALL) -d $(DESTDIR)$(LIBDIR)
> +-	$(INSTALL) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR)
> +-	ln -sf $(notdir $(LIBFDT_lib)) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname)
> ++	$(INSTALL) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname)
> ++	ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/$(notdir $(LIBFDT_lib))
> + 	ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/libfdt.$(SHAREDLIB_EXT)
> + 	$(INSTALL) -m 644 $(LIBFDT_archive) $(DESTDIR)$(LIBDIR)
> +
> 



More information about the meta-freescale mailing list