VirtualBox

Ignore:
Timestamp:
Sep 9, 2008 3:43:51 AM (16 years ago)
Author:
vboxsync
Message:

Devices/Makefiles: PATH_TARGET elimination, push up to root (sub-makefile wise). Some minor cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk

    r12170 r12268  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../../../..
    24 else
    25 SUB_DEPTH = ../..
    26 DEPTH    ?= ../../../../..
    27 endif
    2823include $(KBUILD_PATH)/subheader.kmk
    2924
     25#
     26# Globals
     27#
    3028VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices
    3129
     
    4644VgaBiosBin_DEFS     = IN_VBOXDD2
    4745VgaBiosBin_INCS     = $(VBOX_PATH_DEVICES_SRC)
    48 VgaBiosBin_SOURCES  = $(PATH_TARGET)/VgaBiosBin.c
     46VgaBiosBin_SOURCES  = $(PATH_VgaBiosBin)/VgaBiosBin.c
    4947VgaBiosBin_CLEAN    = \
    50         $(PATH_TARGET)/vbetables.h \
     48        $(PATH_VgaBiosBin)/vbetables.h \
    5149        \
    52         $(PATH_TARGET)/_vgabios_.c \
    53         $(PATH_TARGET)/vgabios0.s \
    54         $(PATH_TARGET)/vgabios1.s \
    55         $(PATH_TARGET)/vgabios.tmp \
    56         $(PATH_TARGET)/vgabios.lst \
    57         $(PATH_TARGET)/vgabios.bin \
    58         $(PATH_TARGET)/VgaBiosBin.c \
    59         $(PATH_TARGET)/VgaDefBiosLogo.c \
     50        $(PATH_VgaBiosBin)/_vgabios_.c \
     51        $(PATH_VgaBiosBin)/vgabios0.s \
     52        $(PATH_VgaBiosBin)/vgabios1.s \
     53        $(PATH_VgaBiosBin)/vgabios.tmp \
     54        $(PATH_VgaBiosBin)/vgabios.lst \
     55        $(PATH_VgaBiosBin)/vgabios.bin \
     56        $(PATH_VgaBiosBin)/VgaBiosBin.c \
     57        $(PATH_VgaBiosBin)/VgaDefBiosLogo.c \
    6058        \
    61         $(PATH_TARGET)/_vgabios-cirrus_.c \
    62         $(PATH_TARGET)/vgabios-cirrus0.s \
    63         $(PATH_TARGET)/vgabios-cirrus1.s \
    64         $(PATH_TARGET)/vgabios-cirrus.tmp \
    65         $(PATH_TARGET)/vgabios-cirrus.lst \
    66         $(PATH_TARGET)/vgabios-cirrus.bin
     59        $(PATH_VgaBiosBin)/_vgabios-cirrus_.c \
     60        $(PATH_VgaBiosBin)/vgabios-cirrus0.s \
     61        $(PATH_VgaBiosBin)/vgabios-cirrus1.s \
     62        $(PATH_VgaBiosBin)/vgabios-cirrus.tmp \
     63        $(PATH_VgaBiosBin)/vgabios-cirrus.lst \
     64        $(PATH_VgaBiosBin)/vgabios-cirrus.bin
    6765
    6866#
    6967# Rule for making the bios.
    7068#
    71 $(PATH_TARGET)/VgaBiosBin.c: $(PATH_TARGET)/vgabios.bin $(VBOX_BIN2C)
     69$$(PATH_VgaBiosBin)/VgaBiosBin.c: $$(PATH_VgaBiosBin)/vgabios.bin $(VBOX_BIN2C)
    7270        $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
    7371        $(QUIET)$(VBOX_BIN2C) -min 32 -max 64 -mask 0x0fff -ascii -export VgaBiosBinary $< $@
     
    7876
    7977# 1. create vbetables.h
    80 $(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen)
     78$$(PATH_VgaBiosBin)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen)
    8179        $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen)
    8280
    8381# 2. precompile
    84 $(PATH_TARGET)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $(PATH_TARGET)/vbetables.h $(VBOX_VERSION_STAMP)
     82$$(PATH_VgaBiosBin)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $$(PATH_VgaBiosBin)/vbetables.h $(VBOX_VERSION_STAMP)
    8583        $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@)
    8684        $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(KBUILD_TYPE))) -o $@ $<
     
    8886# 3. compile
    8987# BCC tempfile clashes, order the BCC jobs to make sure they don't interfere with one another.
    90 $(PATH_TARGET)/vgabios0.s: $(PATH_TARGET)/_vgabios_.c | $(VBOX_BCC_JOBS)
     88$$(PATH_VgaBiosBin)/vgabios0.s: $$(PATH_VgaBiosBin)/_vgabios_.c | $(VBOX_BCC_JOBS)
    9189        $(call MSG_COMPILE,VgaBiosBin,$<,$@,C)
    9290        $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^
    93 VBOX_BCC_JOBS += $(PATH_TARGET)/vgabios0.s
     91VBOX_BCC_JOBS += $(PATH_VgaBiosBin)/vgabios0.s
    9492
    9593# 4. preprocess intermediate assembly.
    96 $(PATH_TARGET)/vgabios1.s: $(PATH_TARGET)/vgabios0.s
     94$$(PATH_VgaBiosBin)/vgabios1.s: $$(PATH_VgaBiosBin)/vgabios0.s
    9795        $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@)
    9896        $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^
    9997
    10098# 5. assemble
    101 $(PATH_TARGET)/vgabios.tmp $(PATH_TARGET)/vgabios.lst: $(PATH_TARGET)/vgabios1.s
     99$$(PATH_VgaBiosBin)/vgabios.tmp $$(PATH_VgaBiosBin)/vgabios.lst: $$(PATH_VgaBiosBin)/vgabios1.s
    102100        $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS)
    103         $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst
     101        $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_VgaBiosBin)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_VgaBiosBin)/vgabios.lst
    104102
    105103# 6. checksums
    106 $(PATH_TARGET)/vgabios.bin: $(PATH_TARGET)/vgabios.tmp $$(TARGET_vgabiossums)
     104$$(PATH_VgaBiosBin)/vgabios.bin: $$(PATH_VgaBiosBin)/vgabios.tmp $$(TARGET_vgabiossums)
    107105        $(call MSG_TOOL,vgabiossums,VgaBiosBin,$<,$@)
    108         $(QUIET)$(CP) -f $(PATH_TARGET)/vgabios.tmp $@
     106        $(QUIET)$(CP) -f $(PATH_VgaBiosBin)/vgabios.tmp $@
    109107        $(QUIET)$(TARGET_vgabiossums) $@
    110108
     
    115113VgaDefBiosLogo_TEMPLATE  = VBOXR3
    116114VgaDefBiosLogo_INCS      = $(VBOX_PATH_DEVICES_SRC)
    117 VgaDefBiosLogo_SOURCES   = $(PATH_TARGET)/VgaDefBiosLogo.c
     115VgaDefBiosLogo_SOURCES   = $(PATH_VgaBiosBin)/VgaDefBiosLogo.c
    118116
    119117#
     
    121119#
    122120ifdef VBOX_OSE
    123 VBOX_LOGO_FILE := ose_logo.bmp
     121 VBOX_LOGO_FILE := ose_logo.bmp
    124122else
    125 VBOX_LOGO_FILE := sun_logo.bmp
     123 VBOX_LOGO_FILE := sun_logo.bmp
    126124endif
    127 $(PATH_TARGET)/VgaDefBiosLogo.c: $(PATH_SUB_CURRENT)/$(VBOX_LOGO_FILE) $(VBOX_BIN2C)
     125$$(PATH_VgaBiosBin)/VgaDefBiosLogo.c: $(PATH_SUB_CURRENT)/$(VBOX_LOGO_FILE) $(VBOX_BIN2C)
    128126        $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
    129127        $(QUIET)$(VBOX_BIN2C) VgaDefBiosLogo $< $@
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette