]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
tools: use HOSTCC/CPP to compile rombios code and helper
authorOlaf Hering <olaf@aepfle.de>
Mon, 18 May 2020 14:44:00 +0000 (16:44 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 May 2020 15:49:56 +0000 (16:49 +0100)
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>
tools/firmware/rombios/Makefile

index 78237fd736f5d7ba261494613c923c23409475c8..02abdb3038461d2416de1648b2102eb2fb1ccc11 100644 (file)
@@ -19,7 +19,7 @@ clean: subdirs-clean
 distclean: clean
 
 BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c
-       gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.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
@@ -29,6 +29,6 @@ BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c
        rm -f _rombios_.s
 
 biossums: biossums.c
-       gcc -o biossums biossums.c
+       $(HOSTCC) $(HOSTCFLAGS) -o biossums biossums.c
 
 -include $(DEPS_INCLUDE)