aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefiles/firmware.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/makefiles/firmware.mk b/makefiles/firmware.mk
index e6a45a4e8..6fa0ae3eb 100644
--- a/makefiles/firmware.mk
+++ b/makefiles/firmware.mk
@@ -269,13 +269,17 @@ endif
#
# Add dependencies on anything in the ROMFS root
-ROMFS_DEPS += $(wildcard \
- (ROMFS_ROOT)/* \
- (ROMFS_ROOT)/*/* \
- (ROMFS_ROOT)/*/*/* \
- (ROMFS_ROOT)/*/*/*/* \
- (ROMFS_ROOT)/*/*/*/*/* \
- (ROMFS_ROOT)/*/*/*/*/*/*)
+ROMFS_FILES += $(wildcard \
+ $(ROMFS_ROOT)/* \
+ $(ROMFS_ROOT)/*/* \
+ $(ROMFS_ROOT)/*/*/* \
+ $(ROMFS_ROOT)/*/*/*/* \
+ $(ROMFS_ROOT)/*/*/*/*/* \
+ $(ROMFS_ROOT)/*/*/*/*/*/*)
+ifeq ($(ROMFS_FILES),)
+$(error ROMFS_ROOT $(ROMFS_ROOT) specifies a directory containing no files)
+endif
+ROMFS_DEPS += $(ROMFS_FILES)
ROMFS_IMG = $(WORK_DIR)romfs.img
ROMFS_CSRC = $(ROMFS_IMG:.img=.c)
ROMFS_OBJ = $(ROMFS_CSRC:.c=.o)