mac80211: build each variant in its own dir
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Tue, 10 Oct 2023 18:58:01 +0000 (15:58 -0300)
committerRobert Marko <robimarko@gmail.com>
Fri, 23 Feb 2024 13:02:53 +0000 (14:02 +0100)
commit4390ea484d7d9159a0a41f0cb71840346a7e3b4f
tree0bca99176fb531bba15e69e7cc1f70d6a6410624
parent70fd815e57dc98cef88828faa5ce71717540e99e
mac80211: build each variant in its own dir

Having different build directories is the default when the package
Makefile defines more than one variant.

Mac80211 overrides PKG_BUILD_DIR, not taking different variants in
consideration, which causes clobbering the directories when both
variants are built.

When compiled with AUTOREMOVE=y, the effect is that the package is
unnecessarily rebuilt when the package is compiled again.

Wihout AUTOREMOVE, the problem is worse: the second variant will not be
rebuilt, and you end up with the smallbuffers variant being a copy of
the regular one.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
package/kernel/mac80211/Makefile