Commit 7587682d authored by Matthew Wilcox's avatar Matthew Wilcox Committed by David Mosberger

[PATCH] ia64: improve gate generation

This patch fixes a couple of things.  
 - gate.lds.s is generated in the obj tree, not the src tree.
 - It can be generated by the normal .s.S rule.
 - Adding the extra-y list prevents it from being rebuilt unnecessarily.
parent c54f2c7f
...@@ -23,15 +23,15 @@ obj-$(CONFIG_IA64_CYCLONE) += cyclone.o ...@@ -23,15 +23,15 @@ obj-$(CONFIG_IA64_CYCLONE) += cyclone.o
# The gate DSO image is built using a special linker script. # The gate DSO image is built using a special linker script.
targets += gate.so gate-syms.o targets += gate.so gate-syms.o
extra-y += gate.so gate-syms.o gate.lds.s gate.o
AFLAGS_gate.lds.o += -P -C -U$(ARCH) AFLAGS_gate.lds.o += -P -C -U$(ARCH)
arch/ia64/kernel/gate.lds.s: %.s: %.S scripts FORCE
$(call if_changed_dep,as_s_S)
quiet_cmd_gate = GATE $@ quiet_cmd_gate = GATE $@
cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@ cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1
$(obj)/gate.so: $(src)/gate.lds.s $(obj)/gate.o FORCE $(obj)/gate.so: $(obj)/gate.lds.s $(obj)/gate.o FORCE
$(call if_changed,gate) $(call if_changed,gate)
$(obj)/built-in.o: $(obj)/gate-syms.o $(obj)/built-in.o: $(obj)/gate-syms.o
......
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