Browse Source

add suffix for instruction set

Waldemar Brodkorb 5 years ago
parent
commit
cdc98a6b86
3 changed files with 7 additions and 1 deletions
  1. 3 0
      mk/vars.mk
  2. 1 1
      rules.mk
  3. 3 0
      scripts/update-rcconf

+ 3 - 0
mk/vars.mk

@@ -28,6 +28,9 @@ endif
 ifneq ($(ADK_TARGET_BINFMT),)
 ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_BINFMT)
 endif
+ifneq ($(ADK_TARGET_INSTRUCTION_SET),)
+ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_INSTRUCTION_SET)
+endif
 ifeq ($(ADK_TARGET_WITH_MMU),)
 ADK_SUFFIX:=		$(ADK_SUFFIX)_nommu
 endif

+ 1 - 1
rules.mk

@@ -44,7 +44,7 @@ ADK_TARGET_GCC_ARCH:=			$(strip $(subst ",, $(ADK_TARGET_GCC_ARCH)))
 ADK_TARGET_BINFMT:=			$(strip $(subst ",, $(ADK_TARGET_BINFMT)))
 ADK_TARGET_FLOAT:=			$(strip $(subst ",, $(ADK_TARGET_FLOAT)))
 ADK_TARGET_FPU:=			$(strip $(subst ",, $(ADK_TARGET_FPU)))
-ADK_TARGET_ARM_MODE:=			$(strip $(subst ",, $(ADK_TARGET_ARM_MODE)))
+ADK_TARGET_INSTRUCTION_SET:=		$(strip $(subst ",, $(ADK_TARGET_INSTRUCTION_SET)))
 ADK_TARGET_CFLAGS:=			$(strip $(subst ",, $(ADK_TARGET_CFLAGS)))
 ADK_TARGET_CPU_FLAGS:=			$(strip $(subst ",, $(ADK_TARGET_CPU_FLAGS)))
 ADK_TARGET_CFLAGS_OPT:=			$(strip $(subst ",, $(ADK_TARGET_CFLAGS_OPT)))

+ 3 - 0
scripts/update-rcconf

@@ -30,6 +30,9 @@ fi
 if [ ! -z ${ADK_TARGET_BINFMT} ];then
 	suffix=${suffix}_${ADK_TARGET_BINFMT}
 fi
+if [ ! -z ${ADK_TARGET_INSTRUCTION_SET} ];then
+	suffix=${suffix}_${ADK_TARGET_INSTRUCTION_SET}
+fi
 if [ -z ${ADK_TARGET_WITH_MMU} ];then
 	suffix=${suffix}_nommu
 fi