application.fam 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="Tools",
  8. fap_version="0.4",
  9. fap_description="compile and execute MicroPython scripts",
  10. fap_icon="icon.png",
  11. fap_author="Oliver Fabel",
  12. fap_file_assets="examples",
  13. fap_weburl="https://github.com/ofabel/mp-flipper",
  14. cdefines=[
  15. "MP_FLIPPER_RUNTIME",
  16. "MP_FLIPPER_COMPILER",
  17. "MP_FLIPPER_SPLIT_HEAP",
  18. ],
  19. sources=[
  20. "*.c*",
  21. "!./lib/micropython",
  22. "!./lib/micropython-port",
  23. ],
  24. fap_private_libs=[
  25. Lib(
  26. name="micropython",
  27. cdefines=[
  28. "MP_FLIPPER_RUNTIME",
  29. "MP_FLIPPER_COMPILER",
  30. "MP_FLIPPER_SPLIT_HEAP",
  31. ],
  32. cflags=[
  33. "-Wno-error",
  34. "-w",
  35. #
  36. # required for floating point support
  37. #
  38. "-mcpu=cortex-m4",
  39. "-mfloat-abi=hard",
  40. "-mfpu=fpv4-sp-d16",
  41. "-mthumb",
  42. "-fsingle-precision-constant",
  43. "-fno-math-errno",
  44. ],
  45. cincludes=["."]
  46. ),
  47. Lib(
  48. name="micropython-port",
  49. cdefines=[
  50. "MP_FLIPPER_RUNTIME",
  51. "MP_FLIPPER_COMPILER",
  52. "MP_FLIPPER_SPLIT_HEAP",
  53. ],
  54. cflags=[
  55. "-Wno-error",
  56. "-w",
  57. #
  58. # required for floating point support
  59. #
  60. "-mcpu=cortex-m4",
  61. "-mfloat-abi=hard",
  62. "-mfpu=fpv4-sp-d16",
  63. "-mthumb",
  64. "-fsingle-precision-constant",
  65. "-fno-math-errno",
  66. ],
  67. cincludes=["."]
  68. ),
  69. ]
  70. )