From e456667d5e250cc9bdc30273325ca337ad6e7ca9 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Fri, 12 Mar 2021 14:10:24 +0100 Subject: [PATCH] [ion/device] Add parameter PCB_LATEST This indicates the latest PCB revision on which this version of Epsilon can run. --- build/platform.device.n0100.mak | 1 + build/platform.device.n0110.mak | 1 + ion/src/device/Makefile | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/platform.device.n0100.mak b/build/platform.device.n0100.mak index 8f41cc583..debb5dbc9 100644 --- a/build/platform.device.n0100.mak +++ b/build/platform.device.n0100.mak @@ -1,2 +1,3 @@ TOOLCHAIN ?= arm-gcc-m4f ION_KEYBOARD_LAYOUT = layout_B2 +PCB_LATEST = 0 diff --git a/build/platform.device.n0110.mak b/build/platform.device.n0110.mak index 8767597e6..5f6816850 100644 --- a/build/platform.device.n0110.mak +++ b/build/platform.device.n0110.mak @@ -1,2 +1,3 @@ TOOLCHAIN ?= arm-gcc-m7f ION_KEYBOARD_LAYOUT = layout_B3 +PCB_LATEST = 111 diff --git a/ion/src/device/Makefile b/ion/src/device/Makefile index b4f6a6b11..ad9926bca 100644 --- a/ion/src/device/Makefile +++ b/ion/src/device/Makefile @@ -12,7 +12,7 @@ endif ion_src += ion/src/shared/collect_registers.cpp -ION_DEVICE_SFLAGS = -Iion/src/device/$(MODEL) -Iion/src/device/shared +ION_DEVICE_SFLAGS = -Iion/src/device/$(MODEL) -Iion/src/device/shared -DPCB_LATEST=$(PCB_LATEST) $(call object_for,$(ion_device_src) $(ion_device_flasher_src) $(ion_device_bench_src)): SFLAGS += $(ION_DEVICE_SFLAGS)