Lines Matching +full:tsx +full:- +full:ctrl
1 #This is a make file with common rules for both x86 & x86-64
7 cflatobjs += lib/pci-edu.o
35 $(libcflat): CFLAGS += -ffreestanding -I $(SRCDIR)/lib -I lib
37 COMMON_CFLAGS += -m$(bits)
39 COMMON_CFLAGS += -Wa,--divide
41 COMMON_CFLAGS += -O1
52 $(LD) -T $(SRCDIR)/x86/efi/elf_x86_64_efi.lds $(EFI_LDFLAGS) -o $@ \
54 @chmod a-x $@
57 $(OBJCOPY) --only-keep-debug $^ $@.debug
58 $(OBJCOPY) --strip-debug $^
59 $(OBJCOPY) --add-gnu-debuglink=$@.debug $^
61 -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
62 -j .rela -j .reloc -S --target=$(FORMAT) $< $@
63 @chmod a-x $@
70 $(LD) $(LDFLAGS) -T $(SRCDIR)/x86/flat.lds -o $@ \
72 @chmod a-x $@
75 $(OBJCOPY) -O elf32-i386 $^ $@
76 @chmod a-x $@
79 tests-common = $(TEST_DIR)/vmexit.$(exe) $(TEST_DIR)/tsc.$(exe) \
89 $(TEST_DIR)/tsx-ctrl.$(exe) \
97 # with the '-fPIC' flag
99 tests-common += $(TEST_DIR)/realmode.$(exe) \
101 realmode_bits := $(if $(call cc-option,-m16,""),16,32)
104 test_cases: $(tests-common) $(tests)
106 $(TEST_DIR)/%.o: CFLAGS += -std=gnu99 -ffreestanding -I $(SRCDIR)/lib -I $(SRCDIR)/lib/x86 -I lib
109 $(LD) -m elf_i386 -nostdlib -o $@ \
110 -T $(SRCDIR)/$(TEST_DIR)/realmode.lds $(filter %.o, $^)