| Line | |
|---|
| 1 | |
|---|
| 2 | override XEN_TARGET_ARCH = x86_32 |
|---|
| 3 | XEN_ROOT = ../../../.. |
|---|
| 4 | CFLAGS := |
|---|
| 5 | include $(XEN_ROOT)/tools/Rules.mk |
|---|
| 6 | |
|---|
| 7 | SOURCES = util.c |
|---|
| 8 | TARGET = 32bitbios_flat.h |
|---|
| 9 | |
|---|
| 10 | CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib |
|---|
| 11 | CFLAGS += -I../ -DGCC_PROTOS |
|---|
| 12 | CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) |
|---|
| 13 | CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) |
|---|
| 14 | |
|---|
| 15 | SUBDIRS = tcgbios |
|---|
| 16 | |
|---|
| 17 | MODULES = tcgbios/tcgbiosext.o |
|---|
| 18 | |
|---|
| 19 | .PHONY: all subdirs clean |
|---|
| 20 | |
|---|
| 21 | subdirs: |
|---|
| 22 | @for subdir in $(SUBDIRS); do \ |
|---|
| 23 | $(MAKE) -C $$subdir all; \ |
|---|
| 24 | done; |
|---|
| 25 | |
|---|
| 26 | all: $(TARGET) |
|---|
| 27 | |
|---|
| 28 | clean: |
|---|
| 29 | rm -rf *.o $(TARGET) |
|---|
| 30 | @for subdir in $(SUBDIRS); do \ |
|---|
| 31 | $(MAKE) -C $$subdir $@; \ |
|---|
| 32 | done; |
|---|
| 33 | |
|---|
| 34 | $(TARGET): subdirs 32bitbios.o util.o |
|---|
| 35 | $(LD) $(LDFLAGS_DIRECT) -s -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o |
|---|
| 36 | @nm 32bitbios_all.o | \ |
|---|
| 37 | grep -E -q '^ +U ' && { \ |
|---|
| 38 | echo "There are undefined symbols in the BIOS:"; \ |
|---|
| 39 | nm -u 32bitbios_all.o; \ |
|---|
| 40 | exit 11; \ |
|---|
| 41 | } || : |
|---|
| 42 | bash mkhex highbios_array 32bitbios_all.o > $@ |
|---|
Note: See
TracBrowser
for help on using the repository browser.