From 11d31170fa955a5a1293455ba24d5e3a88dc69af Mon Sep 17 00:00:00 2001 From: Roy Li Date: Fri, 26 Jun 2015 09:30:05 +0800 Subject: mmc-utils: fix the building failure when DEBUG_BUILD is 1 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/mmc/mmc-utils_git.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta') diff --git a/meta/recipes-devtools/mmc/mmc-utils_git.bb b/meta/recipes-devtools/mmc/mmc-utils_git.bb index bdb4fed181..8950360934 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} -- cgit v1.2.3