Revert "mtd: fix build on riscv"
This reverts commit 9ea1179eb5
, 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>
This commit is contained in:
parent
2355ebb613
commit
c2cad590da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user