From d906c9e306829f26482a4fbc5a02c093a0222324 Mon Sep 17 00:00:00 2001 From: jzlv Date: Tue, 22 Nov 2022 16:01:53 +0800 Subject: [PATCH] [chore][makefile] avoid 'Entering|Leaving directory' messages --- project.build | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/project.build b/project.build index 782ba3f8..5d66698a 100644 --- a/project.build +++ b/project.build @@ -1,4 +1,8 @@ -# The command to remove a file. + +# avoid 'Entering|Leaving directory' messages +ifndef VERBOSE +MAKEFLAGS += --no-print-directory +endif ifeq ($(OS),Windows_NT) CMAKE = $(BL_SDK_BASE)/tools/cmake/bin/cmake.exe @@ -6,18 +10,22 @@ else CMAKE = $(BL_SDK_BASE)/tools/cmake/bin/cmake endif +# The command to remove a file. + RM = $(CMAKE) -E remove_directory CPU_ID ?= CONFIG_USB_HS ?=y +CONFIG_ROMAPI ?=y +CONFIG_DEBUG ?=y #cmake definition config cmake_definition+= -DCROSS_COMPILE=${CROSS_COMPILE} cmake_definition+= -DCHIP=$(CHIP) cmake_definition+= -DCPU_ID=$(CPU_ID) cmake_definition+= -DBOARD=$(BOARD) -cmake_definition+= -DCONFIG_DEBUG=y -cmake_definition+= -DCONFIG_ROMAPI=y +cmake_definition+= -DCONFIG_DEBUG=$(CONFIG_DEBUG) +cmake_definition+= -DCONFIG_ROMAPI=$(CONFIG_ROMAPI) cmake_definition+= -DCONFIG_USB_HS=$(CONFIG_USB_HS) cmake_definition+= -DCMAKE_EXPORT_COMPILE_COMMANDS=ON