[OE-core] [PATCH][v5] mmc-utils: fix the building failure when DEBUG_BUILD is 1
rongqing.li at windriver.com
rongqing.li at windriver.com
Fri Jun 26 01:30:05 UTC 2015
From: Roy Li <rongqing.li at windriver.com>
Remove -Werror, since it is suitable to develop only; otherwise when
gcc adds -O0 option to compile codes, the error will be generated
since the warning:
//# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
meta/recipes-devtools/mmc/mmc-utils_git.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb
index bdb4fed..8950360 100644
--- a/meta/recipes-devtools/mmc/mmc-utils_git.bb
+++ b/meta/recipes-devtools/mmc/mmc-utils_git.bb
@@ -13,6 +13,10 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branc
S = "${WORKDIR}/git"
+do_configure_prepend() {
+ sed -i "s:-Werror::g" ${S}/Makefile
+}
+
do_install() {
install -d ${D}${bindir}
install -m 0755 mmc ${D}${bindir}
--
1.9.1
More information about the Openembedded-core
mailing list