mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Use also HOSTCFLAGS for biossums while touching the code. Spotted by inspecting build logfile. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
35 lines
896 B
Makefile
35 lines
896 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SUBDIRS := 32bit
|
|
|
|
.PHONY: all
|
|
all: subdirs-all
|
|
$(MAKE) BIOS-bochs-latest
|
|
|
|
.PHONY: clean
|
|
clean: subdirs-clean
|
|
rm -f *.o *.a *.s rombios.bin _rombios*_.c
|
|
rm -f as86-sym.txt ld86-sym.txt
|
|
rm -f rombios*.txt rombios*.sym usage biossums
|
|
rm -f BIOS-bochs-*
|
|
rm -f $(DEPS_RM)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c
|
|
$(CPP) -DBX_SMP_PROCESSORS=1 -P $< > _rombios_.c
|
|
bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
|
|
sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
|
|
as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
|
|
-perl makesym.perl < rombios.txt > rombios.sym
|
|
mv tmp.bin BIOS-bochs-latest
|
|
./biossums BIOS-bochs-latest
|
|
rm -f _rombios_.s
|
|
|
|
biossums: biossums.c
|
|
$(HOSTCC) $(HOSTCFLAGS) -o biossums biossums.c
|
|
|
|
-include $(DEPS_INCLUDE)
|