mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-27 19:09:50 -04:00
Bumping the version number on the first pull request after each merge window was deemed inappropriate for an in-tree component. The version number carries little meaningful information in the context of the Linux kernel release model, where stable and distribution might all carry slightly different patches (without any change to the batman-adv version). Instead, expose a UTS_RELEASE-based string to consumers of the netlink and ethtool interfaces. To avoid recompilation for each (re)generate of generated/utsrelease.h, init_utsname()->release is used in code which can dynamically retrieve the version string. The MODULE_VERSION is moved to a separate file because it doesn't support dynamic retrieval of the version string (but constant "at compile time" string) and it is required for the /sys/module/batman_adv/version. The latter is unfortunately still required by userspace tools. Link: https://lore.kernel.org/r/20210203163302.13e8a2a7@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com Link: https://lore.kernel.org/r/YnfjtpuAaH+Zkf9S@unreal Link: https://lore.kernel.org/r/Y9faTA0rNSXg%2FsLD@nanopsycho Signed-off-by: Sven Eckelmann <sven@narfation.org>
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) B.A.T.M.A.N. contributors:
|
|
#
|
|
# Marek Lindner, Simon Wunderlich
|
|
|
|
obj-$(CONFIG_BATMAN_ADV) += batman-adv.o
|
|
batman-adv-y += bat_algo.o
|
|
batman-adv-y += bat_iv_ogm.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_BATMAN_V) += bat_v.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_BATMAN_V) += bat_v_elp.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_BATMAN_V) += bat_v_ogm.o
|
|
batman-adv-y += bitarray.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_BLA) += bridge_loop_avoidance.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
|
|
batman-adv-y += fragmentation.o
|
|
batman-adv-y += gateway_client.o
|
|
batman-adv-y += gateway_common.o
|
|
batman-adv-y += hard-interface.o
|
|
batman-adv-y += hash.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_DEBUG) += log.o
|
|
batman-adv-y += main.o
|
|
batman-adv-y += mesh-interface.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_MCAST) += multicast.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_MCAST) += multicast_forw.o
|
|
batman-adv-y += netlink.o
|
|
batman-adv-y += originator.o
|
|
batman-adv-y += routing.o
|
|
batman-adv-y += send.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_TRACING) += trace.o
|
|
batman-adv-y += tp_meter.o
|
|
batman-adv-y += translation-table.o
|
|
batman-adv-y += tvlv.o
|
|
batman-adv-y += version.o
|
|
|
|
CFLAGS_trace.o := -I$(src)
|