Skip to contentSkip to conversation

Makefile vgabios.c: Add filename to VGA splash screen

PATCH In review Gerhard Wiesinger 1 participant 2 messages Feb 17, 2012 – Feb 23, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile vgabios.c: Add filename to VGA splash screen

Filename is now displayed at VGA splash screen
to see which BIOS on different VGAs will be used.

---
 Makefile  |    2 +-
 vgabios.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
Makefile +1 -1
index 578721a..627b758 100644
@@ -74,7 +74,7 @@ vgabios-qxl.debug.bin    : $(VGA_FILES) $(VBE_FILES) biossums
 
 # build rule
 %.bin:
-	$(GCC) -E -P vgabios.c $(VGABIOS_VERS) $(VGAFLAGS) $(VGABIOS_DATE) > _$*_.c
+	$(GCC) -E -P vgabios.c $(VGABIOS_VERS) $(VGAFLAGS) $(VGABIOS_DATE) -DBIOS_NAME=\"$*.bin\" > _$*_.c
 	$(BCC) -o $*.s -C-c -D__i86__ -S -0 _$*_.c
 	sed -e 's/^\.text//' -e 's/^\.data//' $*.s > _$*_.s
 	$(AS86) _$*_.s -b $*.bin -u -w- -g -0 -j -O -l $*.txt
vgabios.c +3 -0
index c1e312b..3b308f2 100644
@@ -177,6 +177,9 @@ vgabios_version:
 
 vgabios_date:
 .ascii  VGABIOS_DATE
+.ascii  " ("
+.ascii  BIOS_NAME
+.ascii  ")"
 .byte   0x0a,0x0d
 .byte	0x00
 
Signature · 1 line
1.7.7.6
#1 lore raw

Any comments?

Ciao,
Gerhard

--
http://www.wiesinger.com/

Quoted 43 lines · Gerhard Wiesinger

Filename is now displayed at VGA splash screen
to see which BIOS on different VGAs will be used.

---

Makefile  |    2 +-
vgabios.c |    3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
Makefile +0 -0
index 578721a..627b758 100644
@@ -74,7 +74,7 @@ vgabios-qxl.debug.bin    : $(VGA_FILES) $(VBE_FILES) 

biossums

# build rule
%.bin:
Makefile +0 -1
-	$(GCC) -E -P vgabios.c $(VGABIOS_VERS) $(VGAFLAGS) $(VGABIOS_DATE) > 

_$*_.c

Makefile +1 -1
+	$(GCC) -E -P vgabios.c $(VGABIOS_VERS) $(VGAFLAGS) $(VGABIOS_DATE) 
-DBIOS_NAME=\"$*.bin\" > _$*_.c
	$(BCC) -o $*.s -C-c -D__i86__ -S -0 _$*_.c
	sed -e 's/^\.text//' -e 's/^\.data//' $*.s > _$*_.s
	$(AS86) _$*_.s -b $*.bin -u -w- -g -0 -j -O -l $*.txt
vgabios.c +0 -0
index c1e312b..3b308f2 100644
@@ -177,6 +177,9 @@ vgabios_version:
 

vgabios_date:
.ascii VGABIOS_DATE

+.ascii  " ("
+.ascii  BIOS_NAME
+.ascii  ")"

.byte 0x0a,0x0d
.byte 0x00

Signature · 1 line
1.7.7.6