summaryrefslogtreecommitdiff
path: root/meta/recipes-kernel/dtc
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-01-02 01:22:42 -0800
committerSaul Wold <sgw@linux.intel.com>2011-01-02 01:25:41 -0800
commitabebecacbd531fb2595db84bf14ee9e85cc1b3eb (patch)
tree061f344dfcc910fe202be6405bd63a92d937f5ba /meta/recipes-kernel/dtc
parent33d91c07378dab39b5c6f2693e24856c06245b2f (diff)
downloadopenembedded-core-abebecacbd531fb2595db84bf14ee9e85cc1b3eb.tar.gz
openembedded-core-abebecacbd531fb2595db84bf14ee9e85cc1b3eb.tar.bz2
openembedded-core-abebecacbd531fb2595db84bf14ee9e85cc1b3eb.tar.xz
openembedded-core-abebecacbd531fb2595db84bf14ee9e85cc1b3eb.zip
dtc: add patch to remove -Os for PPC
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/dtc')
-rw-r--r--meta/recipes-kernel/dtc/dtc/remove_space_opt.patch16
-rw-r--r--meta/recipes-kernel/dtc/dtc_git.bb1
-rw-r--r--meta/recipes-kernel/dtc/dtc_git.inc2
3 files changed, 18 insertions, 1 deletions
diff --git a/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch b/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch
new file mode 100644
index 000000000..805bf5879
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc/remove_space_opt.patch
@@ -0,0 +1,16 @@
+Remove the -Os flag
+
+Signed-off-by: Saul Wold <sgw@linux.intel.com>
+Index: git/Makefile
+===================================================================
+--- git.orig/Makefile
++++ git/Makefile
+@@ -18,7 +18,7 @@ CONFIG_LOCALVERSION =
+ CPPFLAGS = -I libfdt
+ WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
+ -Wstrict-prototypes -Wmissing-prototypes
+-CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
++CFLAGS = -g -fPIC -Werror $(WARNINGS)
+
+ BISON = bison
+ LEX = flex
diff --git a/meta/recipes-kernel/dtc/dtc_git.bb b/meta/recipes-kernel/dtc/dtc_git.bb
index 21f71e6e6..1cca32ced 100644
--- a/meta/recipes-kernel/dtc/dtc_git.bb
+++ b/meta/recipes-kernel/dtc/dtc_git.bb
@@ -4,3 +4,4 @@ LICENSE="GPLv2|BSD"
LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \
file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c"
+SRC_URI += " file://remove_space_opt.patch"
diff --git a/meta/recipes-kernel/dtc/dtc_git.inc b/meta/recipes-kernel/dtc/dtc_git.inc
index 9bcd63684..96542f999 100644
--- a/meta/recipes-kernel/dtc/dtc_git.inc
+++ b/meta/recipes-kernel/dtc/dtc_git.inc
@@ -1,5 +1,5 @@
SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git"
PV = "1.2.0+git${SRCPV}"
-PR = "r1"
+PR = "r2"
S = "${WORKDIR}/git"