mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/custom_partition_table_csv_path' into 'master'
Allow providing custom PARTITION_TABLE_CSV_PATH Provide direct absolute path to CSV, without project_path Github pull request #296: https://github.com/espressif/esp-idf/pull/296 See merge request !469
This commit is contained in:
commit
aaa891ada9
@ -14,10 +14,12 @@ GEN_ESP32PART := $(PYTHON) $(COMPONENT_PATH)/gen_esp32part.py -q
|
|||||||
# Has a matching value in bootloader_support esp_flash_partitions.h
|
# Has a matching value in bootloader_support esp_flash_partitions.h
|
||||||
PARTITION_TABLE_OFFSET := 0x8000
|
PARTITION_TABLE_OFFSET := 0x8000
|
||||||
|
|
||||||
|
ifndef PARTITION_TABLE_CSV_PATH
|
||||||
# Path to partition CSV file is relative to project path for custom
|
# Path to partition CSV file is relative to project path for custom
|
||||||
# partition CSV files, but relative to component dir otherwise.$
|
# 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_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))))
|
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))
|
PARTITION_TABLE_BIN := $(BUILD_DIR_BASE)/$(notdir $(PARTITION_TABLE_CSV_PATH:.csv=.bin))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user