mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-04-04 07:35:59 +00:00
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
# In the nrf52 sdk, will auto detection current platform: posix or windows.
|
|
# If your <arm-none-eabi> is already installed, and version and path is this:
|
|
# Version : 10.3.1
|
|
# Windows-path: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin
|
|
# POSIX -path: /usr/local/gcc-arm-none-eabi-10.3-2021.10/bin/
|
|
# You can ignore this file modify.
|
|
# Warning: your toolchain path not allow PR to public repo!!!
|
|
# If you need define the toolchain path, plz delete annotate and change it.
|
|
#GNU_INSTALL_ROOT ?= /your/toolchain/path/
|
|
#GNU_VERSION ?= 8.8.8
|
|
#GNU_PREFIX ?= arm-none-eabi
|
|
|
|
|
|
PROJECT_NAME := chameleon_ultra_firmware
|
|
OUTPUT_DIRECTORY := ../objects
|
|
PROJ_DIR := ./src
|
|
SDK_ROOT := ../nrf52_sdk
|
|
SRC_COMMON := ../common
|
|
LD_DIR := $(SRC_COMMON)
|
|
|
|
# Device type supported
|
|
CHAMELEON_ULTRA := ultra
|
|
CHAMELEON_LITE := lite
|
|
# What device is it?
|
|
|
|
CURRENT_DEVICE_TYPE ?= ${CHAMELEON_ULTRA}
|
|
|
|
# Versioning information
|
|
GIT_VERSION := $(shell git describe --abbrev=7 --dirty --always --tags --match "v*.*")
|
|
APP_FW_SEMVER := $(subst v,,$(shell git describe --tags --abbrev=0 --match "v*.*"))
|
|
APP_FW_VER_MAJOR := $(word 1,$(subst ., ,$(APP_FW_SEMVER)))
|
|
APP_FW_VER_MINOR := $(word 2,$(subst ., ,$(APP_FW_SEMVER)))
|
|
|
|
# Enable NRF_LOG on SWO pin as UART TX
|
|
NRF_LOG_UART_ON_SWO_ENABLED := 0
|
|
|
|
# Enable SDK validation checks
|
|
SDK_VALIDATION := 0
|