]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Move CONFIG_DISPLAY_CPUINFO to Makefile
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 13 Feb 2014 09:30:27 +0000 (18:30 +0900)
committerTom Rini <trini@ti.com>
Wed, 19 Feb 2014 16:10:05 +0000 (11:10 -0500)
If the whole code is surrounded by #ifdef(CONFIG_ ) .. #endif,
it should be moved to Makefile.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arch/arm/cpu/arm926ejs/omap/Makefile
arch/arm/cpu/arm926ejs/omap/cpuinfo.c
arch/arm/cpu/tegra-common/Makefile
arch/arm/cpu/tegra-common/sys_info.c

index bd0a2fbe92b1b061b64b47fb64bf5197bfed4b78..add923276c9c49e72167f9acee807fd62680d2a7 100644 (file)
@@ -5,5 +5,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-y  = timer.o cpuinfo.o
+obj-y  = timer.o
+obj-$(CONFIG_DISPLAY_CPUINFO) += cpuinfo.o
 obj-y  += reset.o
index 02332eee0e13fa514234288fe7405f4e79d6bff4..587d99a2bb02c5a368b7781d729f37f7eb5a2244 100644 (file)
@@ -13,7 +13,7 @@
 #include <command.h>
 #include <linux/compiler.h>
 
-#if defined(CONFIG_DISPLAY_CPUINFO) && defined(CONFIG_OMAP)
+#if defined(CONFIG_OMAP)
 
 #define omap_readw(x)          *(volatile unsigned short *)(x)
 #define omap_readl(x)          *(volatile unsigned long *)(x)
@@ -239,4 +239,4 @@ int print_cpuinfo (void)
        return 0;
 }
 
-#endif /* #if defined(CONFIG_DISPLAY_CPUINFO) && defined(CONFIG_OMAP) */
+#endif /* #if defined(CONFIG_OMAP) */
index edfc1a83a950fb2767be371f55781acc690f45a5..34d57349afb5b631c516c52edb65d5427e8ee907 100644 (file)
@@ -8,4 +8,5 @@
 #
 
 obj-y += lowlevel_init.o
-obj-y  += ap.o board.o sys_info.o clock.o cache.o
+obj-y  += ap.o board.o clock.o cache.o
+obj-$(CONFIG_DISPLAY_CPUINFO) += sys_info.o
index dc8a2e4d3168860c2864ee4f74acbeb4b222f8bc..de20325ecf3239666e5da6e5d23cbcba5811108c 100644 (file)
@@ -8,7 +8,6 @@
 #include <common.h>
 #include <linux/ctype.h>
 
-#ifdef CONFIG_DISPLAY_CPUINFO
 void upstring(char *s)
 {
        while (*s) {
@@ -30,4 +29,3 @@ int print_cpuinfo(void)
        /* TBD: Add printf of major/minor rev info, stepping, etc. */
        return 0;
 }
-#endif /* CONFIG_DISPLAY_CPUINFO */