application.fam 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ],
  18. sources=[
  19. "*.c*",
  20. "!./lib/micropython",
  21. ],
  22. fap_private_libs=[
  23. Lib(
  24. name="micropython",
  25. cdefines=[
  26. "MP_FLIPPER_RUNTIME",
  27. "MP_FLIPPER_COMPILER",
  28. ],
  29. cflags=[
  30. "-Wno-error",
  31. "-w",
  32. #
  33. # required for floating point support
  34. #
  35. "-mcpu=cortex-m4",
  36. "-mfloat-abi=hard",
  37. "-mfpu=fpv4-sp-d16",
  38. "-mthumb",
  39. "-fsingle-precision-constant",
  40. "-fno-math-errno",
  41. ],
  42. cincludes=["."]
  43. ),
  44. Lib(
  45. name="micropython-port",
  46. cdefines=[
  47. "MP_FLIPPER_RUNTIME",
  48. "MP_FLIPPER_COMPILER",
  49. ],
  50. cflags=[
  51. "-Wno-error",
  52. "-w",
  53. #
  54. # required for floating point support
  55. #
  56. "-mcpu=cortex-m4",
  57. "-mfloat-abi=hard",
  58. "-mfpu=fpv4-sp-d16",
  59. "-mthumb",
  60. "-fsingle-precision-constant",
  61. "-fno-math-errno",
  62. ],
  63. cincludes=["."]
  64. ),
  65. ]
  66. )