summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Alonso <aalonso00@gmail.com>2010-09-09 09:26:00 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-10 13:00:49 +0100
commit6cbc2c3b565896c7c860487c6519b4349876ad72 (patch)
tree3208112af9623b53b407cdd23ed705a3d7ee448d
parentc541b598c8e3f7b55ba6fe0727152bb3635130e1 (diff)
downloadopenembedded-core-6cbc2c3b565896c7c860487c6519b4349876ad72.tar.gz
openembedded-core-6cbc2c3b565896c7c860487c6519b4349876ad72.tar.bz2
openembedded-core-6cbc2c3b565896c7c860487c6519b4349876ad72.zip
dtc: device tree compiler recipes
* Device tree compiler recipes from OE * v2 reorder patchset * remove BBCLASSEXTENDDED from dtc-native.inc * v3 remove installing dtc in ${STAGING_BINDIR} * fix PR variable follow Poky guidelines * v4 fix PV variable Signed-off-by: Adrian Alonso <aalonso00@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/recipes-kernel/dtc/dtc-native.inc3
-rw-r--r--meta/recipes-kernel/dtc/dtc-native_git.bb2
-rw-r--r--meta/recipes-kernel/dtc/dtc.inc12
-rw-r--r--meta/recipes-kernel/dtc/dtc_git.bb2
-rw-r--r--meta/recipes-kernel/dtc/dtc_git.inc6
5 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-kernel/dtc/dtc-native.inc b/meta/recipes-kernel/dtc/dtc-native.inc
new file mode 100644
index 0000000000..1da7004316
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc-native.inc
@@ -0,0 +1,3 @@
+require dtc.inc
+
+inherit native
diff --git a/meta/recipes-kernel/dtc/dtc-native_git.bb b/meta/recipes-kernel/dtc/dtc-native_git.bb
new file mode 100644
index 0000000000..2d6f09217f
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc-native_git.bb
@@ -0,0 +1,2 @@
+require dtc-native.inc
+require dtc_git.inc
diff --git a/meta/recipes-kernel/dtc/dtc.inc b/meta/recipes-kernel/dtc/dtc.inc
new file mode 100644
index 0000000000..35cb3f0551
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc.inc
@@ -0,0 +1,12 @@
+DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels."
+SECTION = "bootloader"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "flex-native bison-native"
+
+inherit autotools
+
+do_install() {
+ install -m 0755 -d ${D}${bindir}
+ install -m 755 dtc ${D}${bindir}/dtc
+}
diff --git a/meta/recipes-kernel/dtc/dtc_git.bb b/meta/recipes-kernel/dtc/dtc_git.bb
new file mode 100644
index 0000000000..a17a39d527
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc_git.bb
@@ -0,0 +1,2 @@
+require dtc.inc
+require dtc_git.inc
diff --git a/meta/recipes-kernel/dtc/dtc_git.inc b/meta/recipes-kernel/dtc/dtc_git.inc
new file mode 100644
index 0000000000..38fad84590
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc_git.inc
@@ -0,0 +1,6 @@
+SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git"
+SRCREV = "73dca9ae0b9abe6924ba640164ecce9f8df69c5a"
+PV = "1.2.0+git${SRCPV}"
+PR = "r1"
+
+S = "${WORKDIR}/git"