summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-09-10 16:26:37 -0500
committerKumar Gala <galak@kernel.crashing.org>2009-09-24 12:04:57 -0500
commita0f9e0e0f06033807de0ae017ad4d9cf5ddff84b (patch)
treede50b1ee4c8480671f4a84a98959e3788e2e5fe6
parentf9edcc10e6cb497dd7dcbaf691cfd1859abae27a (diff)
downloadu-boot-imx-a0f9e0e0f06033807de0ae017ad4d9cf5ddff84b.zip
u-boot-imx-a0f9e0e0f06033807de0ae017ad4d9cf5ddff84b.tar.gz
u-boot-imx-a0f9e0e0f06033807de0ae017ad4d9cf5ddff84b.tar.bz2
ppc/85xx: Simplify the top makefile for 36-bit config for P2020DS
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--Makefile7
-rw-r--r--include/configs/P2020DS.h4
2 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8672336..1e25669 100644
--- a/Makefile
+++ b/Makefile
@@ -2518,12 +2518,7 @@ MPC8572DS_config: unconfig
P2020DS_36BIT_config \
P2020DS_config: unconfig
- @mkdir -p $(obj)include
- @if [ "$(findstring _36BIT_,$@)" ] ; then \
- echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
- $(XECHO) "... enabling 36-bit physical addressing." ; \
- fi
- @$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale
+ @$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale
P1011RDB_config: unconfig
@mkdir -p $(obj)include
diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h
index 2a2b9ac..b48c199 100644
--- a/include/configs/P2020DS.h
+++ b/include/configs/P2020DS.h
@@ -27,6 +27,10 @@
#ifndef __CONFIG_H
#define __CONFIG_H
+#ifdef CONFIG_MK_36BIT
+#define CONFIG_PHYS_64BIT
+#endif
+
/* High Level Configuration Options */
#define CONFIG_BOOKE 1 /* BOOKE */
#define CONFIG_E500 1 /* BOOKE e500 family */