]> granicus.if.org Git - esp-idf/commitdiff
Allow providing custom PARTITION_TABLE_CSV_PATH
authorDeomid Ryabkov <rojer@cesanta.com>
Wed, 21 Dec 2016 18:18:42 +0000 (18:18 +0000)
committerDeomid Ryabkov <rojer@cesanta.com>
Wed, 25 Jan 2017 00:30:29 +0000 (00:30 +0000)
Provide direct absolute path to CSV, without project_path

components/partition_table/Makefile.projbuild

index 5d1e726a8652ab1e361e857ad5c9aac4f81aaed5..4d548f7e2d6d04c0569daae4f6de6478391a0551 100644 (file)
@@ -14,10 +14,12 @@ GEN_ESP32PART := $(PYTHON) $(COMPONENT_PATH)/gen_esp32part.py -q
 # Has a matching value in bootloader_support esp_flash_partitions.h
 PARTITION_TABLE_OFFSET := 0x8000
 
+ifndef PARTITION_TABLE_CSV_PATH
 # Path to partition CSV file is relative to project path for custom
 # partition CSV files, but relative to component dir otherwise.$
 PARTITION_TABLE_ROOT := $(call dequote,$(if $(CONFIG_PARTITION_TABLE_CUSTOM),$(PROJECT_PATH),$(COMPONENT_PATH)))
 PARTITION_TABLE_CSV_PATH := $(call dequote,$(abspath $(PARTITION_TABLE_ROOT)/$(subst $(quote),,$(CONFIG_PARTITION_TABLE_FILENAME))))
+endif
 
 PARTITION_TABLE_BIN := $(BUILD_DIR_BASE)/$(notdir $(PARTITION_TABLE_CSV_PATH:.csv=.bin))