application.fam 1.8 KB

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