[source] include: Add nomips16 CPU_SUBTYPE

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 20 14:06:05 PDT 2017


hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/7c7ea090041dc2a5e51b36d0bc3115a8830525bf

commit 7c7ea090041dc2a5e51b36d0bc3115a8830525bf
Author: Hauke Mehrtens <hauke.mehrtens at intel.com>
AuthorDate: Tue Mar 14 18:55:03 2017 +0100

    include: Add nomips16 CPU_SUBTYPE
    
    This can be used to indicate that a target does not support the optional mips16
    extension even when it is a mips32r2 or later CPU.
    
    This will generate a separate toolchain and a separate package folder,
    e.g. mips_24kc_nomips16
    
    Signed-off-by: Hauke Mehrtens <hauke.mehrtens at intel.com>
---
 include/target.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/target.mk b/include/target.mk
index 5490d48..61489ca 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -258,7 +258,9 @@ ifeq ($(DUMP),1)
       FEATURES += virtio
     endif
     ifneq ($(CONFIG_CPU_MIPS32_R2),)
-      FEATURES += mips16
+      ifneq ($(CPU_SUBTYPE),nomips16)
+        FEATURES += mips16
+      endif
     endif
     FEATURES += $(foreach v,6 7,$(if $(CONFIG_CPU_V$(v)),arm_v$(v)))
 



More information about the lede-commits mailing list