debuggers.hg

view tools/firmware/rombios/32bit/Makefile @ 13681:c07326324f8d

[HVM] Add TCG BIOS extensions to the high memory area along with
some often-used libc utility functions. The TCG extensions are
described here:

https://www.trustedcomputinggroup.org/specs/PCClient/TCG_PCClientImplementationforBIOS_1-20_1-00.pdf

I have tried to keep the patching with rombios.c to a minimum, but
some amount of code needs to be inserted at various locations.

The code is currently deactivated, but can be activated by setting
BX_TCGBIOS to '1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kaf24@localhost.localdomain
date Fri Jan 26 16:38:32 2007 +0000 (2007-01-26)
parents 480436ef6255
children 4dd3266e13a7
line source
2 override XEN_TARGET_ARCH = x86_32
3 XEN_ROOT = ../../../..
4 CFLAGS :=
5 include $(XEN_ROOT)/tools/Rules.mk
7 SOURCES = util.c
8 TARGET = 32bitbios_flat.h
10 CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib
11 CFLAGS += -I../
13 SUBDIRS = tcgbios
15 MODULES := 32bitbios.o
16 MODULES += tcgbios/tcgbiosext.o
17 MODULES += util.o
19 .PHONY: all subdirs
21 subdirs:
22 @for subdir in $(SUBDIRS); do \
23 $(MAKE) -C $$subdir all; \
24 done;
26 all: subdirs $(TARGET)
28 clean::
29 rm -rf *.o $(TARGET)
30 @for subdir in $(SUBDIRS); do \
31 $(MAKE) -C $$subdir $@; \
32 done;
34 $(TARGET): 32bitbios_all.o $(SOURCES)
35 unref=`nm -u 32bitbios_all.o`
36 @if [ "$$unref" != "" ]; then \
37 echo "There are unresolved symbols in the BIOS."; \
38 echo $$unref ; \
39 else \
40 bash mkhex highbios_array 32bitbios_all.o > $(TARGET); \
41 fi
43 32bitbios_all.o: $(MODULES)
44 ld $(LDFLAGS_DIRECT) -r $(MODULES) -o 32bitbios_all.o