diff options
author | Roy Li <rongqing.li@windriver.com> | 2015-06-26 09:30:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:39:57 +0100 |
commit | b111b6b1a8bf80d37ccc805ff26fe49e3fe1dd1e (patch) | |
tree | 836f61308ddcfbf44019c53adc917a13a9076bf3 /meta/recipes-devtools/mmc | |
parent | 348c85cc3087d49441c3f30498e83b1dcc6c12e5 (diff) | |
download | poky-b111b6b1a8bf80d37ccc805ff26fe49e3fe1dd1e.tar.gz |
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)
(From OE-Core rev: 11d31170fa955a5a1293455ba24d5e3a88dc69af)
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/mmc')
-rw-r--r-- | meta/recipes-devtools/mmc/mmc-utils_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
13 | 13 | ||
14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
15 | 15 | ||
16 | do_configure_prepend() { | ||
17 | sed -i "s:-Werror::g" ${S}/Makefile | ||
18 | } | ||
19 | |||
16 | do_install() { | 20 | do_install() { |
17 | install -d ${D}${bindir} | 21 | install -d ${D}${bindir} |
18 | install -m 0755 mmc ${D}${bindir} | 22 | install -m 0755 mmc ${D}${bindir} |