You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.6 KiB

#
# Copyright (c) 2021 Phytium Information Technology, Inc.
#
# SPDX-License-Identifier: Apache-2.0.
#
# @Date: 2021-06-02 14:17:37
# @LastEditTime: 2021-06-02 14:24:21
# @Description:  This files is to print build info for debugging
#
# @Modify History:
# Ver   Who        Date         Changes
# ----- ------     --------    --------------------------------------
#
.PHONY: info info-objs info-incs info-srcs info-libs info-variables
info:
@echo "cc-tool" $(CROSS_COMPILE)
@echo
@echo "project path: " $(PROJECT_DIR)
@echo
@echo "usr src path: " $(USR_SRC_DIR)
@echo
@echo "usr inc path: " $(USR_INC_DIR)
@echo
@echo "sdk path: " $(STANDALONE_SDK_ROOT)
@echo
@echo "output path: "
@echo $(OUTPUT_DIR) | tr ' ' '\n'
@echo
@echo "x output path: "
@echo $(X_OUTPUT_DIRS) | tr ' ' '\n'
@echo
@echo "link script: "$(LDSNAME)
@echo
@echo "lib path: "$(LIBPATH)
@echo
@echo "cross compiler: "$(CROSS_COMPILE)
info-objs:
@echo "all objs files"
# @echo $(notdir $(OBJ_FILES))
@echo $(OBJ_FILES) | tr ' ' '\n'
info-incs:
@echo "all include paths"
# @echo $(patsubst $(STANDALONE_DIR)/%, %, $(INCLUDES))
@echo $(INCLUDES) | tr ' ' '\n'
info-srcs:
@echo "all src files"
# @echo $(notdir $(SRC_DIR))
@echo $(SRC_DIR) | tr ' ' '\n'
info-libs:
@echo "all lib paths"
@echo $(patsubst $(STANDALONE_DIR)/%, %, $(INCLUDES))
info-variables:
@echo "sdkconfig: "$(PROJECT_DIR)/$(KCONFIG_CONFIG)
info-flags:
@echo "target arch: "$(TARGET_ARCH)
@echo
@echo "link flags: "$(LDFLAGS)
@echo
@echo "cpp flags: "$(CPPFLAGS)
@echo
@echo "asemblely flags: "$(ASFLAGS)
@echo
@echo "c flags: "$(CFLAGS)