application.fam 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.0",
  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. ],
  20. fap_private_libs=[
  21. Lib(
  22. name="micropython",
  23. cflags=[
  24. "-Wno-error",
  25. "-w",
  26. #
  27. # required for floating point support
  28. #
  29. "-mcpu=cortex-m4",
  30. "-mfloat-abi=hard",
  31. "-mfpu=fpv4-sp-d16",
  32. "-mthumb",
  33. "-fsingle-precision-constant",
  34. "-fno-math-errno",
  35. ],
  36. cincludes=["."]
  37. ),
  38. Lib(
  39. name="micropython-port",
  40. cflags=[
  41. "-Wno-error",
  42. "-w",
  43. #
  44. # required for floating point support
  45. #
  46. "-mcpu=cortex-m4",
  47. "-mfloat-abi=hard",
  48. "-mfpu=fpv4-sp-d16",
  49. "-mthumb",
  50. "-fsingle-precision-constant",
  51. "-fno-math-errno",
  52. ],
  53. cincludes=["."]
  54. ),
  55. ]
  56. )