Xilinx / dfx-mgr

Other
10 stars 5 forks source link

Make dfx-mgr snap #6

Closed talhaHavadar closed 3 months ago

talhaHavadar commented 5 months ago

Make dfx-mgr snappable

Proposed changes makes dfx-mgr more modular by introducing customizable config path instead of using one in /etc/dfx-mgrd/. It also introduces snapcraft.yaml and snap/hooks/configure to provide functionality to pack dfx-mgr as snap.

Due to lack of configfs interface in snapcraft, system-files interface is used to provide dynamic dtbo loading mechanism

plugs:
  system-files:
    write:
      - /sys/kernel/config/device-tree

This part advised to be updated once we have configfs for devicetree overlays available in snapcraft.

Additional debug messages added to provide ease of debugging.

While making dfx-mgr snap, I kept the compatibility so these changes should not affect the existing way of working for dfx-mgr project.

Please check my changes in src/CMakeLists.txt this might affect the way that dfx-mgr being packaged today for some other projects, if thats the case I can update the PR accordingly.