cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

Makefile (456B)


      1all: build-all
      2
      3build-all: vof.bin
      4
      5CROSS ?=
      6CC = $(CROSS)gcc
      7LD = $(CROSS)ld
      8OBJCOPY = $(CROSS)objcopy
      9
     10%.o: %.S
     11	$(CC) -m32 -mbig-endian -mcpu=power4 -c -o $@ $<
     12
     13%.o: %.c
     14	$(CC) -m32 -mbig-endian -mcpu=power4 -c -fno-stack-protector -o $@ $<
     15
     16vof.elf: entry.o main.o ci.o bootmem.o libc.o
     17	$(LD) -nostdlib -e_start -Tvof.lds -EB -o $@ $^
     18
     19%.bin: %.elf
     20	$(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@
     21
     22clean:
     23	rm -f *.o vof.bin vof.elf *~