]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
build: Fix dependency file inclusion
authorJohannes Berg <johannes.berg@intel.com>
Sun, 11 Oct 2020 19:24:34 +0000 (21:24 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 12 Oct 2020 08:05:16 +0000 (11:05 +0300)
The objs.mk include changes for archive files broke things
completely and none of the dependency files (*.d) ever got
included, as the expansion there ended up empty.

Clearly, my mistake, I should've tested that better. As we
don't need the %.a files in the list there use filter-out
to remove them, rather than what I had lazily wanted to do,
which was trying to read %.d files for them. The filter-out
actually works, and avoids looking up files that can never
exist in the first place.

Fixes: 87098d3324e0 ("build: Put archive files into build/ folder too")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/objs.mk

index 54e42e6999df7918a899bf0cd122994b00998b4d..a3040b21bd94a5d3336592c24c457a24dea06dfc 100644 (file)
@@ -1,3 +1,3 @@
 $(_OBJS_VAR) := $(call BUILDOBJ,$($(_OBJS_VAR)))
--include $($($(_OBJS_VAR):%.o=%.d):%.a=%.d)
+-include $(filter-out %.a,$($(_OBJS_VAR):%.o=%.d))
 _DIRS += $(dir $($(_OBJS_VAR)))