-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): define model-specific include files in site-scons
[no changelog]
- Loading branch information
1 parent
ed2abfc
commit e5c278e
Showing
9 changed files
with
24 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,4 @@ | ||
#ifndef MODELS_MODEL_H_ | ||
#define MODELS_MODEL_H_ | ||
#pragma once | ||
|
||
#if defined TREZOR_MODEL_T2T1 | ||
#include "T2T1/versions.h" | ||
#elif defined TREZOR_MODEL_T2B1 | ||
#include "T2B1/versions.h" | ||
#elif defined TREZOR_MODEL_T3T1 | ||
#include "T3T1/versions.h" | ||
#elif defined TREZOR_MODEL_T3B1 | ||
#include "T3B1/versions.h" | ||
#elif defined TREZOR_MODEL_T3W1 | ||
#include "T3W1/versions.h" | ||
#elif defined TREZOR_MODEL_D001 | ||
#include "D001/versions.h" | ||
#elif defined TREZOR_MODEL_D002 | ||
#include "D002/versions.h" | ||
#else | ||
#error Unknown Trezor model | ||
#endif | ||
|
||
#endif | ||
#include VERSIONS_HEADER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
#ifndef MODELS_MODEL_H_ | ||
#define MODELS_MODEL_H_ | ||
#pragma once | ||
|
||
#include <util/flash_layout.h> | ||
#include "otp_layout.h" | ||
|
||
#if defined TREZOR_MODEL_T2T1 | ||
#include "T2T1/model_T2T1.h" | ||
#elif defined TREZOR_MODEL_T2B1 | ||
#include "T2B1/model_T2B1.h" | ||
#elif defined TREZOR_MODEL_T3T1 | ||
#include "T3T1/model_T3T1.h" | ||
#elif defined TREZOR_MODEL_T3B1 | ||
#include "T3B1/model_T3B1.h" | ||
#elif defined TREZOR_MODEL_T3W1 | ||
#include "T3W1/model_T3W1.h" | ||
#elif defined TREZOR_MODEL_D001 | ||
#include "D001/model_D001.h" | ||
#elif defined TREZOR_MODEL_D002 | ||
#include "D002/model_D002.h" | ||
#else | ||
#error Unknown Trezor model | ||
#endif | ||
|
||
#endif | ||
#include MODEL_HEADER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters