1include $(BUILD_DIR)/tests/tcg/riscv64-linux-user/config-target.mak 2 3SUBDIR = $(SRC_PATH)/linux-user/riscv 4VPATH += $(SUBDIR) 5 6all: $(SUBDIR)/vdso-32.so $(SUBDIR)/vdso-64.so 7 8LDFLAGS = -nostdlib -shared -fpic -Wl,-h,linux-vdso.so.1 -Wl,--build-id=sha1 \ 9 -Wl,--hash-style=both -Wl,-T,$(SUBDIR)/vdso.ld 10 11$(SUBDIR)/vdso-32.so: vdso.S vdso.ld vdso-asmoffset.h 12 $(CC) -o $@ $(LDFLAGS) -mabi=ilp32d -march=rv32g $< 13 14$(SUBDIR)/vdso-64.so: vdso.S vdso.ld vdso-asmoffset.h 15 $(CC) -o $@ $(LDFLAGS) -mabi=lp64d -march=rv64g $< 16