sunxi: Kconfig: Unify sunxi Kconfig code
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 Aug 2014 12:02:29 +0000 (14:02 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Oct 2014 07:35:38 +0000 (09:35 +0200)
Unify the sunxi Kconfig code, instead of having separate code blocks for
each of sun4i - sun7i.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/Kconfig

index 552fce8394a9c0764cb0afe45aa3ca52f6ac2ce1..9892a34cfbbaac0a1a89bd75fb95b30d451c5a7e 100644 (file)
@@ -1,33 +1,11 @@
-if TARGET_SUN4I
-
-config SYS_CONFIG_NAME
-       default "sun4i"
-
-endif
-
-if TARGET_SUN5I
-
-config SYS_CONFIG_NAME
-       default "sun5i"
-
-endif
-
-if TARGET_SUN6I
+if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
 
 config SYS_CONFIG_NAME
        string
-       default "sun6i"
-
-endif
-
-if TARGET_SUN7I
-
-config SYS_CONFIG_NAME
-       default "sun7i"
-
-endif
-
-if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
+       default "sun4i" if TARGET_SUN4I
+       default "sun5i" if TARGET_SUN5I
+       default "sun6i" if TARGET_SUN6I
+       default "sun7i" if TARGET_SUN7I
 
 config SYS_CPU
        default "armv7"