tools/console: correct make dependencies for _paths.h
PATCH 1/1 tools/console: correct make dependencies for _paths.h
Correct dependencies for _paths.h to avoid build failure with make -j. Only main.c requires _paths.h. This fixes commit 8398ec70 ("xenconsole:
Ensure exclusive access to console using locks")
Signed-off-by Olaf Hering <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
---
Should be backported to 4.6
tools/console/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/console/Makefile +2 -1
@@ -30,7 +30,8 @@ daemon/io.o: CFLAGS += $(CFLAGS_libxenevtchn) $(CFLAGS_libxengnttab) xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c)) $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS) $(LDLIBS_libxenevtchn) $(LDLIBS_libxengnttab) $(LDLIBS_xenconsoled) $(APPEND_LDFLAGS) -xenconsole: client/_paths.h $(patsubst %.c,%.o,$(wildcard client/*.c)) +client/main.o: client/_paths.h +xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c)) $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS) $(LDLIBS_xenconsole) $(APPEND_LDFLAGS) genpath-target = $(call buildmakevars2header,client/_paths.h)
Quoted 9 lines · Olaf Hering
Correct dependencies for
_paths.hto avoid build failure with make -j. Onlymain.crequires_paths.h. This fixes commit8398ec70("xenconsole:
Ensure exclusive access to console using locks")Signed-off-by Olaf Hering <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>
Acked-by Ian Campbell <[email protected]>
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Olaf Hering
Correct dependencies for
_paths.hto avoid build failure with make -j. Onlymain.crequires_paths.h. This fixes commit8398ec70("xenconsole:
Ensure exclusive access to console using locks")
Quoted 7 lines
Quoted 5 lines
Signed-off-by Olaf Hering <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>Acked-by Ian Campbell <[email protected]>
and applied, thanks.