summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/dtc
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-11-01 12:37:36 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-07 14:05:37 +0000
commit35574646e73da6c73173512124f58ca81d3e7c64 (patch)
tree88c2f18bdff1b6f0e7ab1aa95824887ccb1509dd /meta/recipes-kernel/dtc
parentf7196be455c11cd7f0aa6442ba5dcb64c66e9769 (diff)
downloadpoky-35574646e73da6c73173512124f58ca81d3e7c64.tar.gz
dtc: update to latest git version
Also remove patches that are no longer needed, as well as use the installation that is provided by the Makefile. Put all the extra stuff in a new dtc-misc package (From OE-Core rev: 43213fd610da7b550e6d738e224b49004776f799) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/dtc')
-rw-r--r--meta/recipes-kernel/dtc/dtc.inc12
-rw-r--r--meta/recipes-kernel/dtc/dtc/fix_for_compilation_with_gcc_4.6.0.patch51
-rw-r--r--meta/recipes-kernel/dtc/dtc/remove_space_opt.patch18
-rw-r--r--meta/recipes-kernel/dtc/dtc_git.bb10
4 files changed, 9 insertions, 82 deletions
diff --git a/meta/recipes-kernel/dtc/dtc.inc b/meta/recipes-kernel/dtc/dtc.inc
index eae46ac2d7..0f45d5f08e 100644
--- a/meta/recipes-kernel/dtc/dtc.inc
+++ b/meta/recipes-kernel/dtc/dtc.inc
@@ -6,13 +6,13 @@ DEPENDS = "flex-native bison-native"
6 6
7inherit autotools 7inherit autotools
8 8
9do_install() {
10 install -m 0755 -d ${D}${bindir}
11 install -m 755 dtc ${D}${bindir}/dtc
12}
13SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git \ 9SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git \
14 file://fix_for_compilation_with_gcc_4.6.0.patch" 10 "
15 11
16INC_PR = "r0" 12EXTRA_OEMAKE='PREFIX="${prefix}"'
13INC_PR = "r1"
17 14
18S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16
17PACKAGES =+ "${PN}-misc"
18FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
diff --git a/meta/recipes-kernel/dtc/dtc/fix_for_compilation_with_gcc_4.6.0.patch b/meta/recipes-kernel/dtc/dtc/fix_for_compilation_with_gcc_4.6.0.patch
deleted file mode 100644
index b34894d926..0000000000
--- a/meta/recipes-kernel/dtc/dtc/fix_for_compilation_with_gcc_4.6.0.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1Upstream-Status: Pending
2
3Fix following compilation errors with gcc 4.6.0
4| dtc.c: In function 'main':
5| dtc.c:100:17: error: variable 'check' set but not used [-Werror=unused-but-set-variable]
6| cc1: all warnings being treated as errors
7|
8| make: *** [dtc.o] Error 1
9| make: *** Waiting for unfinished jobs....
10| flattree.c: In function 'flat_read_mem_reserve':
11| flattree.c:700:14: error: variable 'p' set but not used [-Werror=unused-but-set-variable]
12| cc1: all warnings being treated as errors
13|
14| make: *** [flattree.o] Error 1
15| ERROR: oe_runmake failed
16
17Nitin A Kamble <nitin.a.kamble@intel.com> 2011/05/10
18
19Index: git/dtc.c
20===================================================================
21--- git.orig/dtc.c
22+++ git/dtc.c
23@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
24 const char *inform = "dts";
25 const char *outform = "dts";
26 const char *outname = "-";
27- int force = 0, check = 0;
28+ int force = 0, __attribute__((__unused__)) check = 0;
29 const char *arg;
30 int opt;
31 FILE *outf = NULL;
32Index: git/flattree.c
33===================================================================
34--- git.orig/flattree.c
35+++ git/flattree.c
36@@ -697,7 +697,6 @@ static struct reserve_info *flat_read_me
37 {
38 struct reserve_info *reservelist = NULL;
39 struct reserve_info *new;
40- const char *p;
41 struct fdt_reserve_entry re;
42
43 /*
44@@ -706,7 +705,6 @@ static struct reserve_info *flat_read_me
45 *
46 * First pass, count entries.
47 */
48- p = inb->ptr;
49 while (1) {
50 flat_read_chunk(inb, &re, sizeof(re));
51 re.address = fdt64_to_cpu(re.address);
diff --git a/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch b/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch
deleted file mode 100644
index 8c26deca35..0000000000
--- a/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch
+++ /dev/null
@@ -1,18 +0,0 @@
1Remove the -Os flag
2
3Upstream-Status: Inappropriate [configuration]
4
5Signed-off-by: Saul Wold <sgw@linux.intel.com>
6Index: git/Makefile
7===================================================================
8--- git.orig/Makefile
9+++ git/Makefile
10@@ -18,7 +18,7 @@ CONFIG_LOCALVERSION =
11 CPPFLAGS = -I libfdt
12 WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
13 -Wstrict-prototypes -Wmissing-prototypes
14-CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
15+CFLAGS = -g -fPIC -Werror $(WARNINGS)
16
17 BISON = bison
18 LEX = flex
diff --git a/meta/recipes-kernel/dtc/dtc_git.bb b/meta/recipes-kernel/dtc/dtc_git.bb
index e010488dd8..c205de7023 100644
--- a/meta/recipes-kernel/dtc/dtc_git.bb
+++ b/meta/recipes-kernel/dtc/dtc_git.bb
@@ -3,14 +3,10 @@ require dtc.inc
3LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \ 3LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \
4 file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c" 4 file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c"
5 5
6SRCREV = "73dca9ae0b9abe6924ba640164ecce9f8df69c5a" 6SRCREV = "033089f29099bdfd5c2d6986cdb9fd07b16cfde0"
7PV = "1.3.0+git${SRCPV}" 7PV = "1.3.0+git${SRCPV}"
8PR = "${INC_PR}.0" 8PR = "${INC_PR}.1"
9 9
10S = "${WORKDIR}/git" 10S = "${WORKDIR}/git"
11 11
12SRC_URI_PATCH = " file://remove_space_opt.patch" 12BBCLASSEXTEND = "native nativesdk"
13SRC_URI_PATCH_virtclass-native = ""
14SRC_URI += "${SRC_URI_PATCH}"
15
16BBCLASSEXTEND = "native"