diff options
Diffstat (limited to 'yocto-poky/meta/recipes-kernel/dtc')
-rw-r--r-- | yocto-poky/meta/recipes-kernel/dtc/dtc.inc | 22 | ||||
-rw-r--r-- | yocto-poky/meta/recipes-kernel/dtc/dtc/make_install.patch | 17 | ||||
-rw-r--r-- | yocto-poky/meta/recipes-kernel/dtc/dtc_git.bb | 11 |
3 files changed, 50 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-kernel/dtc/dtc.inc b/yocto-poky/meta/recipes-kernel/dtc/dtc.inc new file mode 100644 index 000000000..0c409b0c0 --- /dev/null +++ b/yocto-poky/meta/recipes-kernel/dtc/dtc.inc @@ -0,0 +1,22 @@ +SUMMARY = "Device Tree Compiler" +DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels." +SECTION = "bootloader" +LICENSE = "GPLv2 | BSD" +DEPENDS = "flex-native bison-native" + +SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \ + file://make_install.patch \ + " + +EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"' + +S = "${WORKDIR}/git" + +do_install () { + oe_runmake install +} + +PACKAGES =+ "${PN}-misc" +FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" + +RDEPENDS_${PN}-misc += "bash" diff --git a/yocto-poky/meta/recipes-kernel/dtc/dtc/make_install.patch b/yocto-poky/meta/recipes-kernel/dtc/dtc/make_install.patch new file mode 100644 index 000000000..1120617e7 --- /dev/null +++ b/yocto-poky/meta/recipes-kernel/dtc/dtc/make_install.patch @@ -0,0 +1,17 @@ +Upstream-Status: Inappropriate [configuration] + +Index: git/Makefile +=================================================================== +--- git.orig/Makefile 2011-11-02 14:52:17.243104779 -0700 ++++ git/Makefile 2011-11-02 15:06:01.555104982 -0700 +@@ -161,8 +161,8 @@ + $(INSTALL) -d $(DESTDIR)$(BINDIR) + $(INSTALL) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR) + $(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) + $(INSTALL) -d $(DESTDIR)$(INCLUDEDIR) diff --git a/yocto-poky/meta/recipes-kernel/dtc/dtc_git.bb b/yocto-poky/meta/recipes-kernel/dtc/dtc_git.bb new file mode 100644 index 000000000..4446142a3 --- /dev/null +++ b/yocto-poky/meta/recipes-kernel/dtc/dtc_git.bb @@ -0,0 +1,11 @@ +require dtc.inc + +LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c" + +SRCREV = "302fca9f4c283e1994cf0a5a9ce1cf43ca15e6d2" +PV = "1.4.1+git${SRCPV}" + +S = "${WORKDIR}/git" + +BBCLASSEXTEND = "native nativesdk" |