[U-Boot-Users] [Patch 07/17] U-Boot-V2:Common: Make partitions configurable

Menon, Nishanth x0nishan at ti.com
Wed May 21 18:27:31 CEST 2008


Not all configurations of Uboot require partitions. This patch modifies partition compilation as configurable parameters.

Signed-off-by: Nishanth Menon<x0nishan at ti.com>

---
 common/Kconfig  |    4 ++++
 common/Makefile |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Index: u-boot-v2.git/common/Kconfig
===================================================================
--- u-boot-v2.git.orig/common/Kconfig	2008-05-20 17:26:30.000000000 -0500
+++ u-boot-v2.git/common/Kconfig	2008-05-20 17:26:35.000000000 -0500
@@ -205,6 +205,10 @@
 	bool
 	prompt "Open Firmware flat device tree support"
 
+config PARTITION
+	bool
+	prompt "Enable Partitions"
+
 config DEFAULT_ENVIRONMENT
 	bool
 	default y
Index: u-boot-v2.git/common/Makefile
===================================================================
--- u-boot-v2.git.orig/common/Makefile	2008-05-20 17:19:41.000000000 -0500
+++ u-boot-v2.git/common/Makefile	2008-05-20 17:26:35.000000000 -0500
@@ -11,7 +11,7 @@
 obj-y += clock.o
 obj-y += command.o
 obj-y += console.o
-obj-y += partition.o
+obj-$(CONFIG_PARTITION) += partition.o
 obj-y += env.o
 obj-y += startup.o
 obj-y += misc.o




More information about the U-Boot mailing list