application.fam 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # For details & more options, see documentation/AppManifests.md in firmware repo
  2. App(
  3. appid="mp_flipper_app", # Must be unique
  4. name="uPython", # Displayed in menus
  5. apptype=FlipperAppType.EXTERNAL,
  6. entry_point="mp_flipper_app",
  7. stack_size=4 * 1024,
  8. fap_category="Examples",
  9. fap_icon="icon.png", # 10x10 1-bit PNG
  10. fap_author="Oliver Fabel",
  11. fap_file_assets="examples",
  12. # fap_weburl="https://github.com/user/funky_flipper_app",
  13. # fap_icon_assets="images", # Image assets to compile for this application
  14. cdefines=[
  15. "MP_FLIPPER_RUNTIME",
  16. "MP_FLIPPER_COMPILER",
  17. "MP_FLIPPER_SPLIT_HEAP",
  18. ],
  19. sources=[
  20. "*.c*",
  21. "!./lib/micropython",
  22. ],
  23. fap_private_libs=[
  24. Lib(
  25. name="micropython",
  26. cdefines=[
  27. "MP_FLIPPER_RUNTIME",
  28. "MP_FLIPPER_COMPILER",
  29. "MP_FLIPPER_SPLIT_HEAP",
  30. ],
  31. cflags=[
  32. "-Wno-error",
  33. "-w",
  34. #
  35. # required for floating point support
  36. #
  37. "-mcpu=cortex-m4",
  38. "-mfloat-abi=hard",
  39. "-mfpu=fpv4-sp-d16",
  40. "-mthumb",
  41. "-fsingle-precision-constant",
  42. "-fno-math-errno",
  43. ],
  44. cincludes=["."]
  45. ),
  46. Lib(
  47. name="micropython-port",
  48. cdefines=[
  49. "MP_FLIPPER_RUNTIME",
  50. "MP_FLIPPER_COMPILER",
  51. "MP_FLIPPER_SPLIT_HEAP",
  52. ],
  53. cflags=[
  54. "-Wno-error",
  55. "-w",
  56. #
  57. # required for floating point support
  58. #
  59. "-mcpu=cortex-m4",
  60. "-mfloat-abi=hard",
  61. "-mfpu=fpv4-sp-d16",
  62. "-mthumb",
  63. "-fsingle-precision-constant",
  64. "-fno-math-errno",
  65. ],
  66. cincludes=["."]
  67. ),
  68. ]
  69. )