Browse Source

uclibc: properly set UCLIBC_HAS_MMU option

gdbserver's code looks at both UCLIBC_USE_MMU *and* UCLIBC_HAS_MMU to
decide whether to enable the no-MMU code. So far, on noMMU platforms,
UCLIBC_HAS_MMU was still set to 'y'. This commit adjusts this, which is
a step forward in getting gdbserver to build on m68k/coldfire.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes since v2:
 - None
Changes since v1:
 - New patch in the series
Thomas Petazzoni 8 years ago
parent
commit
ffd28041da
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/uclibc/uclibc.mk

+ 2 - 0
package/uclibc/uclibc.mk

@@ -253,10 +253,12 @@ endif
 
 
 ifeq ($(BR2_USE_MMU),y)
 ifeq ($(BR2_USE_MMU),y)
 define UCLIBC_MMU_CONFIG
 define UCLIBC_MMU_CONFIG
+	$(call KCONFIG_ENABLE_OPT,ARCH_HAS_MMU,$(@D)/.config)
 	$(call KCONFIG_ENABLE_OPT,ARCH_USE_MMU,$(@D)/.config)
 	$(call KCONFIG_ENABLE_OPT,ARCH_USE_MMU,$(@D)/.config)
 endef
 endef
 else
 else
 define UCLIBC_MMU_CONFIG
 define UCLIBC_MMU_CONFIG
+	$(call KCONFIG_DISABLE_OPT,ARCH_HAS_MMU,$(@D)/.config)
 	$(call KCONFIG_DISABLE_OPT,ARCH_USE_MMU,$(@D)/.config)
 	$(call KCONFIG_DISABLE_OPT,ARCH_USE_MMU,$(@D)/.config)
 endef
 endef
 endif
 endif