Skip to content

Commit

Permalink
custom FW repos code generation process #5817
Browse files Browse the repository at this point in the history
preparation
  • Loading branch information
rusefillc committed Dec 19, 2023
1 parent 44b629c commit 4244a90
Show file tree
Hide file tree
Showing 4 changed files with 6,920 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@

#pragma once

#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
#if EFI_PROD_CODE
#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME))


#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)
#else
#include "engine_configuration_generated_structures_f407-discovery.h"

#endif
7 changes: 4 additions & 3 deletions firmware/controllers/algo/generated_lookup_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

#pragma once

#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME))

#define META_GENERATED_NAME rusefi_generated_
#define META_GENERATED_EXT .h

#if !EFI_UNIT_TEST
#if EFI_PROD_CODE
#pragma message ("SHORT_BOARD_NAME: " QUOTE(SHORT_BOARD_NAME))
#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)
#else
#include "rusefi_generated_f407-discovery.h"

#endif
Loading

0 comments on commit 4244a90

Please sign in to comment.