Commit 20810f64 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Fix asm/offset.h generation

gen-asm-offsets, the most common user of the new filechk function, needs
to be fed input from $< (the first prerequisite).
parent 5ebe2675
......@@ -900,8 +900,9 @@ cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1))
# - If they are equal no change, and no timestamp update
define filechk
@echo ' CHK $@';
@set -e; $(filechk_$(1)) > $@.tmp
@set -e; \
echo ' CHK $@'; \
$(filechk_$(1)) < $< > $@.tmp; \
if [ -r $@ ] && cmp -s $@ $@.tmp; then \
rm -f $@.tmp; \
else \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment