diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-03-16 20:40:33 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-20 09:59:32 +0000 |
commit | 9a6b5496a427a1c733fbe5b73e7a4ac95b4df17b (patch) | |
tree | e7eaff9182c271ddc34f4ae2cdc6b9908c384d7c | |
parent | abc0655bae7fd4305f9ee7aae374ae78fccf2e9f (diff) | |
download | poky-9a6b5496a427a1c733fbe5b73e7a4ac95b4df17b.tar.gz |
mtd-utils: Explicitly add pthread options to cflags
Some architectures e.g. riscv gcc does not add -D_REENTRANT
when enabling pthreads. Help it here by adding these options
while gcc gets fixed
(From OE-Core rev: 856aa732cac62a2c45473bcc91f7d0c423c52f81)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils_git.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb index 3c34bdd84e..d09d633022 100644 --- a/meta/recipes-devtools/mtd/mtd-utils_git.bb +++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb | |||
@@ -24,6 +24,8 @@ S = "${WORKDIR}/git/" | |||
24 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}" | 24 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}" |
25 | PACKAGECONFIG[xattr] = ",,acl," | 25 | PACKAGECONFIG[xattr] = ",,acl," |
26 | 26 | ||
27 | CPPFLAGS_append_riscv64 = " -pthread -D_REENTRANT" | ||
28 | |||
27 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'" | 29 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'" |
28 | 30 | ||
29 | ALTERNATIVE_${PN} = "flash_eraseall" | 31 | ALTERNATIVE_${PN} = "flash_eraseall" |