Fix ROMFS dependency scan, add a warning if ROMFS_ROOT appears to be empty.

This commit is contained in:
px4dev
2013-05-12 10:51:25 -07:00
parent 555d42e0cd
commit 0ee738e9c9
+11 -7
View File
@@ -269,13 +269,17 @@ endif
# #
# Add dependencies on anything in the ROMFS root # Add dependencies on anything in the ROMFS root
ROMFS_DEPS += $(wildcard \ ROMFS_FILES += $(wildcard \
(ROMFS_ROOT)/* \ $(ROMFS_ROOT)/* \
(ROMFS_ROOT)/*/* \ $(ROMFS_ROOT)/*/* \
(ROMFS_ROOT)/*/*/* \ $(ROMFS_ROOT)/*/*/* \
(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_IMG = $(WORK_DIR)romfs.img
ROMFS_CSRC = $(ROMFS_IMG:.img=.c) ROMFS_CSRC = $(ROMFS_IMG:.img=.c)
ROMFS_OBJ = $(ROMFS_CSRC:.c=.o) ROMFS_OBJ = $(ROMFS_CSRC:.c=.o)