File: optionrom.mak

package info (click to toggle)
qemu 1%3A5.2%2Bdfsg-9~bpo10%2B1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 200,956 kB
  • sloc: ansic: 2,327,498; pascal: 107,506; asm: 49,545; python: 40,498; sh: 35,286; cpp: 33,587; makefile: 15,209; perl: 6,965; xml: 3,028; objc: 1,460; php: 1,299; tcl: 1,070; yacc: 604; lex: 363; sql: 71; awk: 35; sed: 11
file content (30 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
LD = ld
OBJCOPY = objcopy
CC = cc
CFLAGS = -O2 -m16 -Wa,-32 -march=i486 \
	-ffreestanding -fno-stack-protector -fno-pie \
	-I${SRC_PATH}/include
VPATH = ${SRC_PATH}/pc-bios/optionrom

BINS = kvmvapic.bin linuxboot.bin linuxboot_dma.bin multiboot.bin pvh.bin
all: ${BINS}

%.o: %.S
	${CC} ${CFLAGS} -c -o $@ $<
%.o: %.c
	${CC} ${CFLAGS} -c -o $@ $<
%.img: %.o
	${LD} -m elf_i386 -T ${SRC_PATH}/pc-bios/optionrom/flat.lds -s -o $@ $^
pvh.img: pvh.o pvh_main.o
%.raw: %.img
	${OBJCOPY} -O binary -j .text $< $@
%.bin: %.raw
	python3 ${SRC_PATH}/scripts/signrom.py $< $@

clean:
	rm -f ${BINS}

install: ${BINS}
	install -m 0644 -t "${DESTDIR}" ${BINS}

.PHONY: all clean install