fix(firmware): fix build when using ALL_LANGUAGES option (#7212)
This commit is contained in:
@@ -18,7 +18,7 @@ BOOTLOADER_SIZE = 0x10000;
|
||||
MAIN_STACK_SIZE = 8192;
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
MIN_HEAP_SIZE = 4096k; /* required amount of heap */
|
||||
MIN_HEAP_SIZE = 1024k; /* minimum size of heap - all unused SDRAM will be used regardless of this setting */
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
|
||||
@@ -18,7 +18,7 @@ BOOTLOADER_SIZE = 0x10000;
|
||||
MAIN_STACK_SIZE = 8192;
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
MIN_HEAP_SIZE = 4096k; /* required amount of heap */
|
||||
MIN_HEAP_SIZE = 1024k; /* minimum size of heap - all unused SDRAM will be used regardless of this setting */
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
|
||||
@@ -18,7 +18,7 @@ BOOTLOADER_SIZE = 0x10000;
|
||||
MAIN_STACK_SIZE = 8192;
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
MIN_HEAP_SIZE = 4096k; /* required amount of heap */
|
||||
MIN_HEAP_SIZE = 1024k; /* minimum size of heap - all unused SDRAM will be used regardless of this setting */
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
|
||||
@@ -18,7 +18,7 @@ BOOTLOADER_SIZE = 0x10000;
|
||||
MAIN_STACK_SIZE = 8192;
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
MIN_HEAP_SIZE = 4096k; /* required amount of heap */
|
||||
MIN_HEAP_SIZE = 1024k; /* minimum size of heap - all unused SDRAM will be used regardless of this setting */
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/cn.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings cnLangStrings = {
|
||||
const LangStrings cnLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/cz.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings czLangStrings = {
|
||||
const LangStrings czLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/da.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings daLangStrings = {
|
||||
const LangStrings daLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/de.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings deLangStrings = {
|
||||
const LangStrings deLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/en.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char EN_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char EN_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const EN_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const EN_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) EN_STR_##x,
|
||||
|
||||
const LangStrings enLangStrings = {
|
||||
const LangStrings enLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/es.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings esLangStrings = {
|
||||
const LangStrings esLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/fi.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings fiLangStrings = {
|
||||
const LangStrings fiLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/fr.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings frLangStrings = {
|
||||
const LangStrings frLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/he.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings heLangStrings = {
|
||||
const LangStrings heLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/it.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings itLangStrings = {
|
||||
const LangStrings itLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/jp.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings jpLangStrings = {
|
||||
const LangStrings jpLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/ko.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings koLangStrings = {
|
||||
const LangStrings koLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/nl.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings nlLangStrings = {
|
||||
const LangStrings nlLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/pl.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings plLangStrings = {
|
||||
const LangStrings plLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/pt.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings ptLangStrings = {
|
||||
const LangStrings ptLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/ru.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings ruLangStrings = {
|
||||
const LangStrings ruLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/se.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings seLangStrings = {
|
||||
const LangStrings seLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/tw.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings twLangStrings = {
|
||||
const LangStrings twLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "translations/i18n/ua.h"
|
||||
|
||||
// Static string
|
||||
#define STR(x) static const char LNG_STR_##x[] = TR_##x;
|
||||
#define STR(x) static const char LNG_STR_##x[] __FLASH = TR_##x;
|
||||
// Static string array
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] = { TR_##x };
|
||||
#define STRARRAY(x) static const char* const LNG_STR_##x[] __FLASH = { TR_##x };
|
||||
|
||||
#include "translations/string_list.h"
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
// Static string array
|
||||
#define STRARRAY(x) LNG_STR_##x,
|
||||
|
||||
const LangStrings uaLangStrings = {
|
||||
const LangStrings uaLangStrings __FLASH = {
|
||||
#include "translations/string_list.h"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user