Commit 7d9a7086 authored by Catalin Marinas's avatar Catalin Marinas

Revert "arm64: Fix vdso-offsets.h dependency"

This reverts commit 90f777be.

While this commit was aimed at fixing the dependencies, with a large
make -j the vdso-offsets.h file is not generated, leading to build
failures.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 16c11325
...@@ -54,7 +54,6 @@ obj-m += $(arm64-obj-m) ...@@ -54,7 +54,6 @@ obj-m += $(arm64-obj-m)
head-y := head.o head-y := head.o
extra-y += $(head-y) vmlinux.lds extra-y += $(head-y) vmlinux.lds
# Check that the vDSO symbol offsets header file is up to date and re-generate # vDSO - this must be built first to generate the symbol offsets
# it if necessary. $(call objectify,$(arm64-obj-y)): $(obj)/vdso/vdso-offsets.h
$(objtree)/include/generated/vdso-offsets.h: FORCE $(obj)/vdso/vdso-offsets.h: $(obj)/vdso
$(Q)$(MAKE) $(build)=$(obj)/vdso $@
...@@ -23,7 +23,7 @@ GCOV_PROFILE := n ...@@ -23,7 +23,7 @@ GCOV_PROFILE := n
ccflags-y += -Wl,-shared ccflags-y += -Wl,-shared
obj-y += vdso.o obj-y += vdso.o
extra-y += vdso.lds extra-y += vdso.lds vdso-offsets.h
CPPFLAGS_vdso.lds += -P -C -U$(ARCH) CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
# Force dependency (incbin is bad) # Force dependency (incbin is bad)
...@@ -42,10 +42,11 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE ...@@ -42,10 +42,11 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE
gen-vdsosym := $(srctree)/$(src)/gen_vdso_offsets.sh gen-vdsosym := $(srctree)/$(src)/gen_vdso_offsets.sh
quiet_cmd_vdsosym = VDSOSYM $@ quiet_cmd_vdsosym = VDSOSYM $@
define cmd_vdsosym define cmd_vdsosym
$(NM) $< | $(gen-vdsosym) | LC_ALL=C sort > $@ $(NM) $< | $(gen-vdsosym) | LC_ALL=C sort > $@ && \
cp $@ include/generated/
endef endef
$(objtree)/include/generated/vdso-offsets.h: $(obj)/vdso.so.dbg FORCE $(obj)/vdso-offsets.h: $(obj)/vdso.so.dbg FORCE
$(call if_changed,vdsosym) $(call if_changed,vdsosym)
# Assembly rules for the .S files # Assembly rules for the .S files
......
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