]> granicus.if.org Git - esp-idf/commitdiff
make: fix unexpected operator warning
authorAnton Maklakov <anton@espressif.com>
Mon, 3 Dec 2018 10:11:13 +0000 (18:11 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Tue, 4 Dec 2018 23:54:59 +0000 (07:54 +0800)
components/app_update/Makefile.projbuild

index c9ee59137309349d71b1c81a4b127f5c2f87b7e1..26a987ac7c7a18adb7ee5877202e51ab45bf2327 100644 (file)
@@ -9,11 +9,11 @@ PARTTOOL_PY := $(PYTHON) $(IDF_PATH)/components/partition_table/parttool.py
 BLANK_OTA_DATA_FILE = $(BUILD_DIR_BASE)/ota_data_initial.bin
 
 $(BLANK_OTA_DATA_FILE): partition_table_get_info $(PARTITION_TABLE_BIN) | check_python_dependencies
-       $(shell if [ $(OTA_DATA_OFFSET) != "" ] && [ $(OTA_DATA_SIZE) != "" ]; then \
+       $(shell if [ "$(OTA_DATA_OFFSET)" != "" ] && [ "$(OTA_DATA_SIZE)" != "" ]; then \
                                $(PARTTOOL_PY) --partition-type data --partition-subtype ota --partition-table-file $(PARTITION_TABLE_BIN) \
                                                                -q generate_blank_partition_file --output $(BLANK_OTA_DATA_FILE); \
                        fi; )
-       $(eval BLANK_OTA_DATA_FILE = $(shell if [ $(OTA_DATA_OFFSET) != "" ] && [ $(OTA_DATA_SIZE) != "" ]; then \
+       $(eval BLANK_OTA_DATA_FILE = $(shell if [ "$(OTA_DATA_OFFSET)" != "" ] && [ "$(OTA_DATA_SIZE)" != "" ]; then \
                        echo $(BLANK_OTA_DATA_FILE); else echo " "; fi) )
 
 blank_ota_data: $(BLANK_OTA_DATA_FILE)