aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 11:21:39 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 11:21:39 +0100
commitc2cad590dae2b05bd3a698b8a6835b98348c8a5c (patch)
tree683d3d99112c898c1dc7c9b92c706167d67266b6
parent2355ebb61376312b73cf33e72473519363c440fa (diff)
downloadbuildroot-c2cad590dae2b05bd3a698b8a6835b98348c8a5c.tar.gz
buildroot-c2cad590dae2b05bd3a698b8a6835b98348c8a5c.tar.bz2
Revert "mtd: fix build on riscv"
This reverts commit 9ea1179eb5eece404a17cf5d313b05f303ae18e2, which is no longer needed now that the RISC-V gcc has been patched to define _REENTRANT when -pthread is passed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/mtd/mtd.mk7
1 files changed, 0 insertions, 7 deletions
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 2d627ffa3d..13e501fc33 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -11,13 +11,6 @@ MTD_LICENSE = GPL-2.0
MTD_LICENSE_FILES = COPYING
MTD_INSTALL_STAGING = YES
-# gcc on riscv doesn't define _REENTRANT when -pthread is passed while
-# it should. Compensate this deficiency here otherwise mtd configure
-# script doesn't find that thread support is enabled.
-ifeq ($(BR2_TOOLCHAIN_HAS_THREADS):$(BR2_riscv),y:y)
-MTD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_REENTRANT"
-endif
-
ifeq ($(BR2_PACKAGE_MTD_JFFS_UTILS),y)
MTD_DEPENDENCIES += zlib lzo host-pkgconf
MTD_CONF_OPTS += --with-jffs