application.fam 1.5 KB

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