mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
build system: Fix undefined variables
make/project.mk:315: warning: undefined variable `CC' make/project.mk:316: warning: undefined variable `LD' make/project.mk:317: warning: undefined variable `AR' make/project.mk:62: warning: undefined variable `MAKECMDGOALS' components/partition_table/Makefile.projbuild:24: warning: undefined variable `quote' components/bootloader/Makefile.projbuild:123: warning: undefined variable 'BOOTLOADER_DIGEST_BIN' components/bootloader/Makefile.projbuild:123: warning: undefined variable 'SECURE_BOOTLOADER_KEY'
This commit is contained in:
@@ -121,4 +121,6 @@ endif
|
|||||||
|
|
||||||
bootloader-clean: $(SDKCONFIG_MAKEFILE)
|
bootloader-clean: $(SDKCONFIG_MAKEFILE)
|
||||||
$(BOOTLOADER_MAKE) app-clean
|
$(BOOTLOADER_MAKE) app-clean
|
||||||
|
ifdef CONFIG_SECURE_BOOTLOADER_REFLASHABLE
|
||||||
rm -f $(SECURE_BOOTLOADER_KEY) $(BOOTLOADER_DIGEST_BIN)
|
rm -f $(SECURE_BOOTLOADER_KEY) $(BOOTLOADER_DIGEST_BIN)
|
||||||
|
endif
|
||||||
|
@@ -21,8 +21,7 @@ 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)))
|
||||||
quote := "
|
PARTITION_TABLE_CSV_PATH := $(call dequote,$(abspath $(PARTITION_TABLE_ROOT)/$(call dequote,$(CONFIG_PARTITION_TABLE_FILENAME))))
|
||||||
PARTITION_TABLE_CSV_PATH := $(call dequote,$(abspath $(PARTITION_TABLE_ROOT)/$(subst $(quote),,$(CONFIG_PARTITION_TABLE_FILENAME))))
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PARTITION_TABLE_CSV_NAME := $(notdir $(PARTITION_TABLE_CSV_PATH))
|
PARTITION_TABLE_CSV_NAME := $(notdir $(PARTITION_TABLE_CSV_PATH))
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
.PHONY: build-components menuconfig defconfig all build clean all_binaries check-submodules size size-components size-files list-components
|
.PHONY: build-components menuconfig defconfig all build clean all_binaries check-submodules size size-components size-files list-components
|
||||||
|
|
||||||
|
MAKECMDGOALS ?= all
|
||||||
all: all_binaries
|
all: all_binaries
|
||||||
# see below for recipe of 'all' target
|
# see below for recipe of 'all' target
|
||||||
#
|
#
|
||||||
@@ -326,20 +328,19 @@ endif
|
|||||||
|
|
||||||
export CFLAGS CPPFLAGS CXXFLAGS
|
export CFLAGS CPPFLAGS CXXFLAGS
|
||||||
|
|
||||||
|
# Set default values that were not previously defined
|
||||||
|
CC ?= gcc
|
||||||
|
LD ?= ld
|
||||||
|
AR ?= ar
|
||||||
|
OBJCOPY ?= objcopy
|
||||||
|
SIZE ?= size
|
||||||
|
|
||||||
# Set host compiler and binutils
|
# Set host compiler and binutils
|
||||||
HOSTCC := $(CC)
|
HOSTCC := $(CC)
|
||||||
HOSTLD := $(LD)
|
HOSTLD := $(LD)
|
||||||
HOSTAR := $(AR)
|
HOSTAR := $(AR)
|
||||||
ifdef OBJCOPY
|
|
||||||
HOSTOBJCOPY := $(OBJCOPY)
|
HOSTOBJCOPY := $(OBJCOPY)
|
||||||
else
|
|
||||||
HOSTOBJCOPY := objcopy
|
|
||||||
endif
|
|
||||||
ifdef SIZE
|
|
||||||
HOSTSIZE := $(SIZE)
|
HOSTSIZE := $(SIZE)
|
||||||
else
|
|
||||||
HOSTSIZE := size
|
|
||||||
endif
|
|
||||||
export HOSTCC HOSTLD HOSTAR HOSTOBJCOPY SIZE
|
export HOSTCC HOSTLD HOSTAR HOSTOBJCOPY SIZE
|
||||||
|
|
||||||
# Set target compiler. Defaults to whatever the user has
|
# Set target compiler. Defaults to whatever the user has
|
||||||
|
Reference in New Issue
Block a user