From 0091f181efdb042e778a357df0ba8ffaddfc9b0c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 15 Feb 2007 16:49:39 +0000 Subject: - do not use TARGET_DEVICE_TABLE if is is empty --- target/cpio/cpioroot.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/cpio/cpioroot.mk') diff --git a/target/cpio/cpioroot.mk b/target/cpio/cpioroot.mk index 8f460c713..6cff4dde6 100644 --- a/target/cpio/cpioroot.mk +++ b/target/cpio/cpioroot.mk @@ -20,9 +20,11 @@ cpioroot: host-fakeroot makedevs cpioroot-init touch $(STAGING_DIR)/.fakeroot.00000 cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(notdir $(CPIO_TARGET)) echo "chown -R root:root $(TARGET_DIR)" >> $(STAGING_DIR)/_fakeroot.$(notdir $(CPIO_TARGET)) +ifneq ($(TARGET_DEVICE_TABLE),) # Use fakeroot to pretend to create all needed device nodes echo "$(STAGING_DIR)/bin/makedevs -d $(TARGET_DEVICE_TABLE) $(TARGET_DIR)" \ >> $(STAGING_DIR)/_fakeroot.$(notdir $(CPIO_TARGET)) +endif # Use fakeroot so tar believes the previous fakery echo "cd $(TARGET_DIR) && find . | cpio --quiet -o -H newc > $(CPIO_TARGET)" \ >> $(STAGING_DIR)/_fakeroot.$(notdir $(CPIO_TARGET)) -- cgit v1.2.3