package/batman-adv: fix compile with BR2_PACKAGE_BATMAN_ADV_BATMAN_V disabled
authorPeter Seiderer <ps.report@gmx.net>
Sun, 14 Mar 2021 22:32:06 +0000 (23:32 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 15 Mar 2021 19:46:43 +0000 (20:46 +0100)
commite8b1eeb2f3f5f0bfd089704ccad57e5665f5813a
treea4820cc0dd75f7f8fa09ec311a6f1d5359d0f9d8
parenta7143fb316d048d8a148df9371dbbab07dac3de3
package/batman-adv: fix compile with BR2_PACKAGE_BATMAN_ADV_BATMAN_V disabled

The given 'CONFIG_BATMAN_ADV_BATMAN_V=' is enough to trigger the wrong
code compile path in net/batman-adv/bat_v.h missing the static inline
dummy implementations.

Fixes:

  ERROR: modpost: "batadv_v_mesh_free" [.../build/batman-adv-2021.0/net/batman-adv/batman-adv.ko] undefined!
  ERROR: modpost: "batadv_v_mesh_init" [.../build/batman-adv-2021.0/net/batman-adv/batman-adv.ko] undefined!
  ERROR: modpost: "batadv_v_hardif_init" [.../build/batman-adv-2021.0/net/batman-adv/batman-adv.ko] undefined!
  ERROR: modpost: "batadv_v_init" [.../build/batman-adv-2021.0/net/batman-adv/batman-adv.ko] undefined!

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[yann.morin.1998@free.fr:
  - move all conditional options together
  - slight cleanup/reorganise
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/batman-adv/batman-adv.mk