dtc: add never version of dtc that supports devicetree overlays
This commit is contained in:
parent
211b21f657
commit
0bf7c1b008
|
|
@ -0,0 +1,23 @@
|
|||
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}" NO_PYTHON=1'
|
||||
CFLAGS="-Wno-error"
|
||||
|
||||
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"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
@@ -18,7 +18,7 @@
|
||||
CPPFLAGS = -I libfdt -I .
|
||||
WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
|
||||
-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow
|
||||
-CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS)
|
||||
+CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) $(WARNINGS)
|
||||
|
||||
BISON = bison
|
||||
LEX = flex
|
||||
@@ -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)
|
||||
|
|
@ -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 = "1ae2d185ddda6ca578dce5641a8a39db3117492d"
|
||||
PV = "1.4.5+git${SRCPV}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Loading…
Reference in New Issue