Skip to content
Snippets Groups Projects
Commit ca53735a authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

Move CONFIG_DISPLAY_CPUINFO to Makefile


If the whole code is surrounded by #ifdef(CONFIG_ ) .. #endif,
it should be moved to Makefile.

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent 365475e6
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # 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 obj-y += reset.o
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <command.h> #include <command.h>
#include <linux/compiler.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_readw(x) *(volatile unsigned short *)(x)
#define omap_readl(x) *(volatile unsigned long *)(x) #define omap_readl(x) *(volatile unsigned long *)(x)
...@@ -239,4 +239,4 @@ int print_cpuinfo (void) ...@@ -239,4 +239,4 @@ int print_cpuinfo (void)
return 0; return 0;
} }
#endif /* #if defined(CONFIG_DISPLAY_CPUINFO) && defined(CONFIG_OMAP) */ #endif /* #if defined(CONFIG_OMAP) */
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
# #
obj-y += lowlevel_init.o 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
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <common.h> #include <common.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#ifdef CONFIG_DISPLAY_CPUINFO
void upstring(char *s) void upstring(char *s)
{ {
while (*s) { while (*s) {
...@@ -30,4 +29,3 @@ int print_cpuinfo(void) ...@@ -30,4 +29,3 @@ int print_cpuinfo(void)
/* TBD: Add printf of major/minor rev info, stepping, etc. */ /* TBD: Add printf of major/minor rev info, stepping, etc. */
return 0; return 0;
} }
#endif /* CONFIG_DISPLAY_CPUINFO */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment