Merge "fs_config: error on multiple specifications of android_filesystem_config.h"

This commit is contained in:
Dan Willemsen 2016-02-11 21:01:18 +00:00 committed by Gerrit Code Review
commit 0f745aaf4d
1 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,13 @@ include $(BUILD_HOST_EXECUTABLE)
ANDROID_FS_CONFIG_H := android_filesystem_config.h
ifneq ($(TARGET_ANDROID_FILESYSTEM_CONFIG_H),)
# One and only one file can be specified.
ifneq ($(words $(TARGET_ANDROID_FILESYSTEM_CONFIG_H)),1)
$(error Multiple fs_config files specified, \
see "$(TARGET_ANDROID_FILESYSTEM_CONFIG_H)".)
endif
ifeq ($(filter %/$(ANDROID_FS_CONFIG_H),$(TARGET_ANDROID_FILESYSTEM_CONFIG_H)),)
$(error TARGET_ANDROID_FILESYSTEM_CONFIG_H file name must be $(ANDROID_FS_CONFIG_H), \
see "$(notdir $(TARGET_ANDROID_FILESYSTEM_CONFIG_H))".)