Bladeren bron

docs: dev/hardware: update libplatforminfo instructions

Matthias Schiffer 7 jaren geleden
bovenliggende
commit
0775bf76aa
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      docs/dev/hardware.rst

+ 4 - 3
docs/dev/hardware.rst

@@ -119,10 +119,11 @@ required for adding a new target:
 Package adjustments
 Package adjustments
 '''''''''''''''''''
 '''''''''''''''''''
 
 
-One package that definitely needs adjustments for every new target added is ``libplatforminfo`` (to be found in
+One package that may need adjustments for new targets is ``libplatforminfo`` (to be found in
 `packages/gluon/libs/libplatforminfo <https://github.com/freifunk-gluon/packages/tree/master/libs/libplatforminfo>`_).
 `packages/gluon/libs/libplatforminfo <https://github.com/freifunk-gluon/packages/tree/master/libs/libplatforminfo>`_).
-Start with a copy of an existing platform info source file and adjust it for the new target (or just add a symlink if
-there is nothing to adjust). Then add the new target to the DEPENDS variable in the ``libplatforminfo`` package Makefile.
+If the new platform works fine with the definitions found in ``default.c``, nothing needs to be done. Otherwise,
+create a definition for the added target or subtarget, either by symlinking one of the files in the ``templates``
+directory, or adding a new source file.
 
 
 On many targets, Gluon's network setup scripts (mainly in the packages ``gluon-core`` and ``gluon-mesh-batman-adv-core``)
 On many targets, Gluon's network setup scripts (mainly in the packages ``gluon-core`` and ``gluon-mesh-batman-adv-core``)
 won't run correctly without some adjustments, so better double check that everything is fine there (and the files
 won't run correctly without some adjustments, so better double check that everything is fine there (and the files