parent
c4cf973705
commit
24c78d2f0b
|
@ -140,6 +140,18 @@ const electronic_throttle_s* getLiveDataAddr(size_t) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if EFI_UNIT_TEST
|
||||||
|
FragmentList getLiveDataFragments() {
|
||||||
|
// todo: would same runtime be optimized into static during firmware build?
|
||||||
|
FragmentEntry fragments[] = {
|
||||||
|
// This header is generated - do not edit by hand!
|
||||||
|
#include "live_data_fragments.h"
|
||||||
|
};
|
||||||
|
|
||||||
|
return { fragments, efi::size(fragments) };
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
|
||||||
static const FragmentEntry fragments[] = {
|
static const FragmentEntry fragments[] = {
|
||||||
// This header is generated - do not edit by hand!
|
// This header is generated - do not edit by hand!
|
||||||
#include "live_data_fragments.h"
|
#include "live_data_fragments.h"
|
||||||
|
@ -148,3 +160,5 @@ static const FragmentEntry fragments[] = {
|
||||||
FragmentList getLiveDataFragments() {
|
FragmentList getLiveDataFragments() {
|
||||||
return { fragments, efi::size(fragments) };
|
return { fragments, efi::size(fragments) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue