From e275e449adff38f40610c7107d35d2d2fdb48a66 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 8 Jun 2010 20:21:40 +0300 Subject: [PATCH] kvm, test: Move PIT tests to separate directory This patch moves PIT tests to separate directory and adds Makefile for it. Signed-off-by: Pekka Enberg --- tools/kvm/tests/pit/Makefile | 20 ++++++++++++++++++++ tools/kvm/tests/pit/README | 16 ++++++++++++++++ tools/kvm/tests/{kernel => pit}/tick.S | 0 3 files changed, 36 insertions(+) create mode 100644 tools/kvm/tests/pit/Makefile create mode 100644 tools/kvm/tests/pit/README rename tools/kvm/tests/{kernel => pit}/tick.S (100%) diff --git a/tools/kvm/tests/pit/Makefile b/tools/kvm/tests/pit/Makefile new file mode 100644 index 000000000000..2fae9b2aec2f --- /dev/null +++ b/tools/kvm/tests/pit/Makefile @@ -0,0 +1,20 @@ +NAME := tick + +BIN := $(NAME).bin +ELF := $(NAME).elf +OBJ := $(NAME).o + +all: $(BIN) + +$(BIN): $(ELF) + objcopy -O binary $< $@ + +$(ELF): $(OBJ) + ld -Ttext=0x00 -nostdlib -static $< -o $@ + +%.o: %.S + gcc -nostdinc -c $< -o $@ + +clean: + rm -f $(BIN) $(ELF) $(OBJ) +.PHONY: clean diff --git a/tools/kvm/tests/pit/README b/tools/kvm/tests/pit/README new file mode 100644 index 000000000000..2923777e6d65 --- /dev/null +++ b/tools/kvm/tests/pit/README @@ -0,0 +1,16 @@ +Compiling +--------- + +You can simply type: + + $ make + +to build a 16-bit binary that uses the i8086 instruction set. + +Disassembling +------------- + +Use the "-m i8086" command line option with objdump to make sure it knows we're +dealing with i8086 instruction set: + + $ objdump -d -m i8086 i8086.elf diff --git a/tools/kvm/tests/kernel/tick.S b/tools/kvm/tests/pit/tick.S similarity index 100% rename from tools/kvm/tests/kernel/tick.S rename to tools/kvm/tests/pit/tick.S -- 2.39.5