From b59454f6f79ee607a78d5b2a8a241636e30aca9d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 9 Apr 2020 15:27:18 +0200 Subject: [PATCH] tool/metric: add micro-ecc and rijndael sources update location of minimal c-headers --- tool/metrics/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tool/metrics/Makefile b/tool/metrics/Makefile index de1be08aa..cb7e5834f 100644 --- a/tool/metrics/Makefile +++ b/tool/metrics/Makefile @@ -1,4 +1,4 @@ -C_HEADERS ?= /Projects/c_headers/include/ +C_HEADERS ?= ~/Projects/c_headers/include/ BTSTACK_ROOT ?= ../.. VPATH=${BTSTACK_ROOT}/src @@ -16,13 +16,14 @@ SRC_FILES=$(wildcard ${BTSTACK_ROOT}/src/*.c) SRC_BLE_FILES=$(wildcard ${BTSTACK_ROOT}/src/ble/*.c) SRC_BLE_GATT_FILES_FILES=$(wildcard ${BTSTACK_ROOT}/src/ble/gatt-service/*.c) SRC_CLASSIC_FILES=$(wildcard ${BTSTACK_ROOT}/src/classic/*.c) - -SRCS = ${SRC_FILES} ${SRC_BLE_FILES} ${SRC_BLE_GATT_SERVICE_FILES} ${SRC_CLASSIC_FILES} +SRC_3RD_RIJNDAEL=${BTSTACK_ROOT}/3rd-party/rijndael/rijndael.c +SRC_3RD_UECC=${BTSTACK_ROOT}/3rd-party/micro-ecc/uECC.c +SRCS = ${SRC_FILES} ${SRC_BLE_FILES} ${SRC_BLE_GATT_SERVICE_FILES} ${SRC_CLASSIC_FILES} ${SRC_3RD_RIJNDAEL} ${SRC_3RD_UECC} all: metrics.md metrics.html metrics.tsv: ${SRCS} - ccsm --disable-file --disable-global --exclude-std-headers --exclude-file=.h$$ --output-format=tsv --output-metrics=HIS_.* $^ -- -isystem ${C_HEADERS}/c90 -isystem ${C_HEADERS}/c99 ${INCLUDES} > $@ + ccsm --disable-file --disable-global --exclude-std-headers --exclude-file=.h$$ --output-format=tsv --output-metrics=HIS_.* $^ -- -DuECC_NO_DEFAULT_RNG -isystem ${C_HEADERS}/c90 -isystem ${C_HEADERS}/c99 ${INCLUDES} > $@ metrics.md: metrics.tsv metrics-ccsm.py ./metrics-ccsm.py > metrics.md