b9a766d909
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
49 lines
1018 B
Plaintext
49 lines
1018 B
Plaintext
Import("ENV")
|
|
|
|
|
|
ENV.AppendUnique(
|
|
CFLAGS=[
|
|
"-std=gnu17",
|
|
],
|
|
CXXFLAGS=[
|
|
"-std=c++17",
|
|
"-fno-rtti",
|
|
"-fno-use-cxa-atexit",
|
|
"-fno-exceptions",
|
|
"-fno-threadsafe-statics",
|
|
"-ftemplate-depth=4096",
|
|
],
|
|
CCFLAGS=[
|
|
"-mcpu=cortex-m4",
|
|
"-mfloat-abi=hard",
|
|
"-mfpu=fpv4-sp-d16",
|
|
"-mthumb",
|
|
# "-MMD",
|
|
# "-MP",
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Werror",
|
|
"-Wno-address-of-packed-member",
|
|
"-Wredundant-decls",
|
|
"-Wdouble-promotion",
|
|
"-fdata-sections",
|
|
"-ffunction-sections",
|
|
"-fsingle-precision-constant",
|
|
"-fno-math-errno",
|
|
"-fstack-usage",
|
|
"-g",
|
|
# "-Wno-stringop-overread",
|
|
# "-Wno-stringop-overflow",
|
|
],
|
|
CPPDEFINES=[
|
|
"_GNU_SOURCE",
|
|
],
|
|
LINKFLAGS=[
|
|
"-mcpu=cortex-m4",
|
|
"-mfloat-abi=hard",
|
|
"-mfpu=fpv4-sp-d16",
|
|
"-mlittle-endian",
|
|
"-mthumb",
|
|
],
|
|
)
|