Browse Source

add binfmt suffix for bfin

Waldemar Brodkorb 8 years ago
parent
commit
6a4f6b9cd4
3 changed files with 12 additions and 0 deletions
  1. 3 0
      mk/vars.mk
  2. 1 0
      rules.mk
  3. 8 0
      target/config/Config.in.binfmt

+ 3 - 0
mk/vars.mk

@@ -25,6 +25,9 @@ endif
 ifneq ($(ADK_TARGET_ABI),)
 ifneq ($(ADK_TARGET_ABI),)
 ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_ABI)
 ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_ABI)
 endif
 endif
+ifneq ($(ADK_TARGET_BINFMT),)
+ADK_SUFFIX:=		$(ADK_SUFFIX)_$(ADK_TARGET_BINFMT)
+endif
 
 
 # some global dirs
 # some global dirs
 BASE_DIR:=		$(ADK_TOPDIR)
 BASE_DIR:=		$(ADK_TOPDIR)

+ 1 - 0
rules.mk

@@ -37,6 +37,7 @@ ADK_TARGET_ENDIAN:=			$(strip $(subst ",, $(ADK_TARGET_ENDIAN)))
 ADK_TARGET_ENDIAN_SUFFIX:=		$(strip $(subst ",, $(ADK_TARGET_ENDIAN_SUFFIX)))
 ADK_TARGET_ENDIAN_SUFFIX:=		$(strip $(subst ",, $(ADK_TARGET_ENDIAN_SUFFIX)))
 ADK_TARGET_GCC_CPU:=			$(strip $(subst ",, $(ADK_TARGET_GCC_CPU)))
 ADK_TARGET_GCC_CPU:=			$(strip $(subst ",, $(ADK_TARGET_GCC_CPU)))
 ADK_TARGET_GCC_ARCH:=			$(strip $(subst ",, $(ADK_TARGET_GCC_ARCH)))
 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_FLOAT:=			$(strip $(subst ",, $(ADK_TARGET_FLOAT)))
 ADK_TARGET_FPU:=			$(strip $(subst ",, $(ADK_TARGET_FPU)))
 ADK_TARGET_FPU:=			$(strip $(subst ",, $(ADK_TARGET_FPU)))
 ADK_TARGET_ARM_MODE:=			$(strip $(subst ",, $(ADK_TARGET_ARM_MODE)))
 ADK_TARGET_ARM_MODE:=			$(strip $(subst ",, $(ADK_TARGET_ARM_MODE)))

+ 8 - 0
target/config/Config.in.binfmt

@@ -39,6 +39,7 @@ config ADK_TARGET_BINFMT_FLAT_ONE
 
 
 config ADK_TARGET_BINFMT_FLAT_SEP_DATA
 config ADK_TARGET_BINFMT_FLAT_SEP_DATA
 	bool "Separate data and code region"
 	bool "Separate data and code region"
+	depends on ADK_TARGET_ARCH_M68K
 	help
 	help
 	  Allow for the data and text segments to be separated and placed in
 	  Allow for the data and text segments to be separated and placed in
 	  different regions of memory.
 	  different regions of memory.
@@ -49,3 +50,10 @@ config ADK_TARGET_BINFMT_FLAT_SHARED
 	  Allow to load and link indiviual FLAT binaries at run time.
 	  Allow to load and link indiviual FLAT binaries at run time.
 
 
 endchoice
 endchoice
+
+config ADK_TARGET_BINFMT
+	string
+	depends on ADK_TARGET_ARCH_BFIN
+	default "bflt" if ADK_TARGET_BINFMT_FLAT
+	default "fdpic" if ADK_TARGET_BINFMT_FDPIC
+