[ELDK] [PATCH 2/5] Allow using a customized device table
Wolfgang Denk
wd at denx.de
Thu Apr 29 12:35:03 CEST 2010
When customizing a project it is often necessary to add or even to
remove certain device node entries from the device table. To make this
possible, we now allow for a "custom/rootfs_devices.tab" file which
can contain such custom settings. If the file does not exist, the
defaults in "config/rootfs_devices.tab" will be used instead.
Signed-off-by: Wolfgang Denk <wd at denx.de>
cc: Detlev Zundel <dzu at denx.de>
---
Makefile | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index e8954af..c973afc 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,11 @@ CONFIG_DEFCONFIG = .defconfig
CONFIG_PACKAGES_IN = packages/Config.in
CONFIG = scripts/kconfig
BUILD := $(TOPDIR)/build
+ifeq ($(wildcard custom/rootfs_devices.tab),)
DEV_TAB := config/rootfs_devices.tab
+else
+DEV_TAB := custom/rootfs_devices.tab
+endif
BUILD_RFS := $(BUILD)/rootfs
CRAMFS_FILE := $(BUILD)/images/image.cramfs
EXT2_FILE := $(BUILD)/images/image.ext2
--
1.6.2.5
More information about the eldk
mailing list