From eefd3751d88ca5f038041db16fb5d60208c37a70 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 19 Dec 2023 15:36:28 -0500 Subject: [PATCH] custom FW repos code generation process #5817 preparation --- .../algo/generated_lookup_engine_configuration.h | 15 ++++++++++++++- firmware/controllers/algo/generated_lookup_meta.h | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/generated_lookup_engine_configuration.h b/firmware/controllers/algo/generated_lookup_engine_configuration.h index 026db52f79..442712aebd 100644 --- a/firmware/controllers/algo/generated_lookup_engine_configuration.h +++ b/firmware/controllers/algo/generated_lookup_engine_configuration.h @@ -1,3 +1,16 @@ +#include "efi_quote.h" + #pragma once -#include "engine_configuration_generated_structures.h" +#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME)) + +#define META_ENGINE_GENERATED_NAME engine_configuration_generated_structures_ +#define META_ENGINE_GENERATED_EXT .h + +#if !EFI_UNIT_TEST +#define META_ENGINE_GENERATED_H_FILENAME QUOTE(META_ENGINE_GENERATED_NAME SHORT_BOARD_NAME META_ENGINE_GENERATED_EXT) +#include META_ENGINE_GENERATED_H_FILENAME + +#pragma message ("META_ENGINE_GENERATED_H_FILENAME: " META_ENGINE_GENERATED_H_FILENAME) + +#endif diff --git a/firmware/controllers/algo/generated_lookup_meta.h b/firmware/controllers/algo/generated_lookup_meta.h index cc2aaeaa54..816e064663 100644 --- a/firmware/controllers/algo/generated_lookup_meta.h +++ b/firmware/controllers/algo/generated_lookup_meta.h @@ -1,3 +1,16 @@ +#include "efi_quote.h" + #pragma once -#include "rusefi_generated.h" +#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME)) + +#define META_GENERATED_NAME rusefi_generated_ +#define META_GENERATED_EXT .h + +#if !EFI_UNIT_TEST +#define META_GENERATED_H_FILENAME QUOTE(META_GENERATED_NAME SHORT_BOARD_NAME META_GENERATED_EXT) +#include META_GENERATED_H_FILENAME + +#pragma message ("META_GENERATED_H_FILENAME: " META_GENERATED_H_FILENAME) + +#endif