summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'recipes')
-rw-r--r--recipes/dtc/dtc-native_git.bb6
-rw-r--r--recipes/dtc/dtc_git.bb8
-rw-r--r--recipes/dtc/dtc_git.inc9
3 files changed, 11 insertions, 12 deletions
diff --git a/recipes/dtc/dtc-native_git.bb b/recipes/dtc/dtc-native_git.bb
index 9c93a4a1fa..2d6f09217f 100644
--- a/recipes/dtc/dtc-native_git.bb
+++ b/recipes/dtc/dtc-native_git.bb
@@ -1,6 +1,2 @@
require dtc-native.inc
-
-SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git"
-
-S = "${WORKDIR}/git"
-
+require dtc_git.inc
diff --git a/recipes/dtc/dtc_git.bb b/recipes/dtc/dtc_git.bb
index 638d472898..a17a39d527 100644
--- a/recipes/dtc/dtc_git.bb
+++ b/recipes/dtc/dtc_git.bb
@@ -1,8 +1,2 @@
require dtc.inc
-
-PR = "r1"
-
-SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git"
-
-S = "${WORKDIR}/git"
-
+require dtc_git.inc
diff --git a/recipes/dtc/dtc_git.inc b/recipes/dtc/dtc_git.inc
new file mode 100644
index 0000000000..ded44f6c8c
--- /dev/null
+++ b/recipes/dtc/dtc_git.inc
@@ -0,0 +1,9 @@
+SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git"
+SRCREV = "73dca9ae0b9abe6924ba640164ecce9f8df69c5a"
+PV = "1.2.0"
+PR = "r1"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+S = "${WORKDIR}/git"