mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-28 03:53:29 +07:00
[PATCH] uml: avoid unnecessary pcap rebuild
Just a Kbuild subtlety, not listing a target file inside targets causes it to be rebuilt each time, and as a consequence everything depending on it is rebuilt. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
b85e9680a3
commit
8afe07ce00
@ -19,6 +19,8 @@ harddog-objs := harddog_kern.o harddog_user.o
|
|||||||
|
|
||||||
LDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a)
|
LDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a)
|
||||||
|
|
||||||
|
targets := pcap_kern.o pcap_user.o
|
||||||
|
|
||||||
$(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o
|
$(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o
|
||||||
$(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o)
|
$(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o)
|
||||||
#XXX: The call below does not work because the flags are added before the
|
#XXX: The call below does not work because the flags are added before the
|
||||||
@ -26,7 +28,7 @@ $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o
|
|||||||
#$(call if_changed,ld)
|
#$(call if_changed,ld)
|
||||||
|
|
||||||
# When the above is fixed, don't forget to add this too!
|
# When the above is fixed, don't forget to add this too!
|
||||||
#targets := $(obj)/pcap.o
|
#targets += $(obj)/pcap.o
|
||||||
|
|
||||||
obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o
|
obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o
|
||||||
obj-$(CONFIG_SSL) += ssl.o
|
obj-$(CONFIG_SSL) += ssl.o
|
||||||
|
Loading…
Reference in New Issue
Block a user