Linux Audio

Check our new training course

Loading...
v4.17
 1# SPDX-License-Identifier: GPL-2.0
 2# The gate DSO image is built using a special linker script.
 3
 4targets += gate.so gate.lds gate.o gate-dummy.o
 5
 6obj-y += gate-syms.o
 7
 8CPPFLAGS_gate.lds := -P -C -U$(ARCH)
 9
10quiet_cmd_gate = GATE    $@
11      cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
12
13GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
14		     $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
15$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
16	$(call if_changed,gate)
17
18GATECFLAGS_gate-dummy.o = -r
19$(obj)/gate-dummy.o: $(obj)/gate.lds $(obj)/gate.o FORCE
20	$(call if_changed,gate)
21
22LDFLAGS_gate-syms.o := -r -R
23$(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
24	$(call if_changed,ld)
25
26# gate-data.o contains the gate DSO image as data in section .data..gate.
27# We must build gate.so before we can assemble it.
28# Note: kbuild does not track this dependency due to usage of .incbin
29$(obj)/gate-data.o: $(obj)/gate.so
v3.1
 
 1# The gate DSO image is built using a special linker script.
 2
 3targets += gate.so gate-syms.o
 4
 5extra-y += gate.so gate-syms.o gate.lds gate.o
 6
 7CPPFLAGS_gate.lds := -P -C -U$(ARCH)
 8
 9quiet_cmd_gate = GATE $@
10      cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
11
12GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
13		     $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
14$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
15	$(call if_changed,gate)
16
17$(obj)/built-in.o: $(obj)/gate-syms.o
18$(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
 
19
20GATECFLAGS_gate-syms.o = -r
21$(obj)/gate-syms.o: $(obj)/gate.lds $(obj)/gate.o FORCE
22	$(call if_changed,gate)
23
24# gate-data.o contains the gate DSO image as data in section .data..gate.
25# We must build gate.so before we can assemble it.
26# Note: kbuild does not track this dependency due to usage of .incbin
27$(obj)/gate-data.o: $(obj)/gate.so