config LOCALVERSION
        string "Local version - append to U-Boot release"
-       depends on !SPL_BUILD
        help
          Append an extra string to the end of your U-Boot version.
          This will show up on your boot log, for example.
 
 config LOCALVERSION_AUTO
        bool "Automatically append version information to the version string"
-       depends on !SPL_BUILD
        default y
        help
          This will try to automatically determine if the current tree is a
 
 config CC_OPTIMIZE_FOR_SIZE
        bool "Optimize for size"
-       depends on !SPL_BUILD
        default y
        help
          Enabling this option will pass "-Os" instead of "-O2" to gcc
 config SPL
        bool
        depends on SUPPORT_SPL
-       prompt "Enable SPL" if !SPL_BUILD
-       default y if SPL_BUILD
+       prompt "Enable SPL"
        help
          If you want to build SPL as well as the normal image, say Y.
 
 config TPL
        bool
        depends on SPL && SUPPORT_TPL
-       prompt "Enable TPL" if !SPL_BUILD
-       default y if TPL_BUILD
-       default n
+       prompt "Enable TPL"
        help
          If you want to build TPL as well as the normal image and SPL, say Y.
 
 config FIT
        bool "Support Flattened Image Tree"
-       depends on !SPL_BUILD
        help
          This option allows to boot the new uImage structrure,
          Flattened Image Tree.  FIT is formally a FDT, which can include
 
 config SYS_EXTRA_OPTIONS
        string "Extra Options (DEPRECATED)"
-       depends on !SPL_BUILD
        help
          The old configuration infrastructure (= mkconfig + boards.cfg)
          provided the extra options field. If you have something like
 
        bool "NVIDIA Tegra"
        select SUPPORT_SPL
        select SPL
-       select OF_CONTROL if !SPL_BUILD
-       select CPU_ARM720T if SPL_BUILD
-       select CPU_V7 if !SPL_BUILD
+       select OF_CONTROL
+       select CPU_V7
 
 config TARGET_VEXPRESS64_AEMV8A
        bool "Support vexpress_aemv8a"
        select CPU_V7
        select SUPPORT_SPL
        select SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 endchoice
 
 
 if TARGET_RPI || TARGET_RPI_2
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 endif
 
 config TARGET_SMDKV310
        select SUPPORT_SPL
        bool "Exynos4210 SMDKV310 board"
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_TRATS
        bool "Exynos4210 Trats board"
        select CPU_V7_HAS_NONSEC
        select CPU_V7_HAS_VIRT
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_SMDK5250
        bool "SMDK5250 board"
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_SNOW
        bool "Snow board"
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_SMDK5420
        bool "SMDK5420 board"
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_PEACH_PI
        bool "Peach Pi board"
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_PEACH_PIT
        bool "Peach Pit board"
        select SUPPORT_SPL
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 endchoice
 
        default "exynos"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 config DM_SPI
-       default y if !SPL_BUILD
+       default y
 
 config DM_SPI_FLASH
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config SYS_MALLOC_F
-       default y if !SPL_BUILD
+       default y
 
 config SYS_MALLOC_F_LEN
-       default 0x400 if !SPL_BUILD
+       default 0x400
 
 source "board/samsung/smdkv310/Kconfig"
 source "board/samsung/trats/Kconfig"
 
 endchoice
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config DM_SERIAL
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config SYS_MALLOC_F
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config SYS_MALLOC_F_LEN
-       default 0x400 if DM && !SPL_BUILD
+       default 0x400 if DM
 
 config SYS_SOC
        default "omap3"
 
 
 config TARGET_S5P_GONI
        bool "S5P Goni board"
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 config TARGET_SMDKC100
        bool "Support smdkc100 board"
-       select OF_CONTROL if !SPL_BUILD
+       select OF_CONTROL
 
 endchoice
 
 
 
 config CMD_DDRPHY_DUMP
        bool "Enable dump command of DDR PHY parameters"
-       depends on !SPL_BUILD
        help
          The command "ddrphy" shows the resulting parameters of DDR PHY
          training; it is useful for the evaluation of DDR PHY training.
 
        default y
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 config DM_SPI
-       default y if !SPL_BUILD
+       default y
 
 config DM_SPI_FLASH
-       default y if !SPL_BUILD
+       default y
 
 config DM_I2C
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 source "arch/arm/mach-tegra/tegra20/Kconfig"
 source "arch/arm/mach-tegra/tegra30/Kconfig"
 
        default "cm_t335"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "pepper"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "am335x_igep0033"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "pcm051"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "s5p_goni"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "smdkc100"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
        default "pengwyn"
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if !SPL_BUILD
+       default y
 
 config DM_SERIAL
-       default y if !SPL_BUILD
+       default y
 
 endif
 
          NOR for environment.
 
 config DM
-       default y if !SPL_BUILD
+       default y
 
 config DM_GPIO
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config DM_SERIAL
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config SYS_MALLOC_F
-       default y if DM && !SPL_BUILD
+       default y if DM
 
 config SYS_MALLOC_F_LEN
-       default 0x400 if DM && !SPL_BUILD
+       default 0x400 if DM
 
 endif
 
 menu "Command line interface"
-       depends on !SPL_BUILD
 
 config HUSH_PARSER
        bool "Use hush shell"
 
 config DM
        bool "Enable Driver Model"
-       depends on !SPL_BUILD
        help
          This config option enables Driver Model. This brings in the core
          support, including scanning of platform data on start-up. If
 
 config DM_WARN
        bool "Enable warnings in driver model"
+       depends on DM
+       default y
        help
          The dm_warn() function can use up quite a bit of space for its
          strings. By default this is disabled for SPL builds to save space.
          This will cause dm_warn() to be compiled out - it will do nothing
          when called.
-       depends on DM
-       default y if !SPL_BUILD
-       default n if SPL_BUILD
 
 config DM_DEVICE_REMOVE
        bool "Support device removal"
+       depends on DM
+       default y
        help
          We can save some code space by dropping support for removing a
          device. This is not normally required in SPL, so by default this
          option is disabled for SPL.
-       depends on DM
-       default y if !SPL_BUILD
-       default n if SPL_BUILD
 
 config DM_STDIO
        bool "Support stdio registration"
+       depends on DM
+       default y
        help
          Normally serial drivers register with stdio so that they can be used
          as normal output devices. In SPL we don't normally use stdio, so
          we can omit this feature.
-       depends on DM
-       default y if !SPL_BUILD
-       default n if SPL_BUILD
 
          This option, if enabled, provides more flexible and linux-like
          NAND initialization process.
 
-if !SPL_BUILD
-
 config NAND_DENALI
        bool "Support Denali NAND controller"
        select SYS_NAND_SELF_INIT
          of OOB area before last ECC sector data starts.  This is potentially
          used to preserve the bad block marker in the OOB area.
 
-endif
-
 if SPL
 
 config SPL_NAND_DENALI
 
        bool
 
 menu "Device Tree Control"
-       depends on !SPL_BUILD
        depends on SUPPORT_OF_CONTROL
 
 config OF_CONTROL
 
 #undef CONFIG_DM_SPI
 #endif
 
+#undef CONFIG_DM_WARN
+#undef CONFIG_DM_DEVICE_REMOVE
+#undef CONFIG_DM_STDIO
+
 #endif /* CONFIG_SPL_BUILD */
 #endif /* __CONFIG_UNCMD_SPL_H__ */
 
 CONFIG_DM_SPI_FLASH=
 endif
 
+CONFIG_DM_DEVICE_REMOVE=
+
 endif