]> code.ossystems Code Review - meta-freescale.git/commitdiff
dtc: Add recipe for version 1.4.5
authorFabio Berton <fabio.berton@ossystems.com.br>
Fri, 15 Jun 2018 19:08:28 +0000 (16:08 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 26 Jun 2018 17:16:13 +0000 (14:16 -0300)
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@ossystems.com.br>
recipes-bsp/u-boot/u-boot-imx_2017.03.bb
recipes-kernel/dtc/dtc-145_git.bb [new file with mode: 0644]
recipes-kernel/dtc/files/make_install.patch [new file with mode: 0644]

index 72205676b15d6d38eb51968e74b211e4f1603523..52ebee99483d815bf19e82815c08d75f072dde0b 100644 (file)
@@ -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 (file)
index 0000000..afed62f
--- /dev/null
@@ -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 (file)
index 0000000..ccf17b3
--- /dev/null
@@ -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)