# elf2flt options

if ARCH_BINFMT_FLAT

config ELF2FLT_REQUIRES
    def_bool y
    select ZLIB
    select BINUTILS_FORCE_LD_BFD_ONLY

comment "elf2flt"

choice
    bool
    prompt "elf2flt version"

config ELF2FLT_GIT
    bool
    prompt "git"
    depends on CONFIGURE_has_git
    help
      Grab the latest version of elf2flt from the CVS repository

config ELF2FLT_CUSTOM
    bool
    prompt "Custom elf2flt"
    depends on EXPERIMENTAL || !CONFIGURE_has_git
    help
      The choosen elf2flt version shall be not downloaded. Instead use
      a custom location to get the source.

endchoice

if ELF2FLT_GIT

config ELF2FLT_GIT_CSET
    string
    prompt "git cset"
    default "6d80ab6c93409e796f85da404bde84b841231531"
    help
      Enter the git changeset to use.

      The default currently points to the HEAD of the git tree.

endif # ELF2FLT_GIT

config ELF2FLT_VERSION
    string
    default ELF2FLT_GIT_CSET if ELF2FLT_GIT
    default ELF2FLT_CUSTOM_VERSION if ELF2FLT_CUSTOM

if ELF2FLT_CUSTOM

config ELF2FLT_CUSTOM_LOCATION
    string
    prompt "Full path to custom elf2flt source"
    help
      Enter the path to the directory or tarball of your source for elf2flt.

      If the path is a tarball, it should extract to: <name>-<version>/
      where the name is this component, elf2flt, and the version is set
      below in the custom version string.

config ELF2FLT_CUSTOM_VERSION
    string
    prompt "elf2flt custom version number"
    help
      Enter the version number for your custom elf2flt.

endif # ELF2FLT_CUSTOM

config ELF2FLT_EXTRA_CONFIG_ARRAY
    string
    prompt "elf2flt extra config"
    default ""
    help
      Extra flags passed onto ./configure when configuring
      
      You can enter multiple arguments here, and arguments can contain spaces
      if they are properly quoted (or escaped, but prefer quotes). Eg.:
          --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space

endif # ARCH_BINFMT_FLAT
