VirtualBox

Changeset 35367 in vbox for trunk/src


Ignore:
Timestamp:
Dec 30, 2010 1:29:22 PM (14 years ago)
Author:
vboxsync
Message:

Etherboot-src/Makefile.kmk: Simplified the build-from-precompiled-binary case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/Etherboot-src/Makefile.kmk

    r34775 r35367  
    55
    66#
    7 # Copyright (C) 2006-2007 Oracle Corporation
     7# Copyright (C) 2006-2010 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1818SUB_DEPTH = ../../../../..
    1919include $(KBUILD_PATH)/subheader.kmk
     20
     21if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.x86 darwin.amd64 os2.x86 solaris.x86 solaris.amd64 win.x86 win.amd64 linux.amd64 freebsd.amd64)
     22 #
     23 # Build it from a precompiled binary.
     24 # See notes about the binary load address and size way below.
     25 #
     26 LIBRARIES += NetBiosBin
     27 NetBiosBin_TEMPLATE = VBOXR3
     28 NetBiosBin_SOURCES  = $(NetBiosBin_0_OUTDIR)/NetBiosBin.c
     29 NetBiosBin_CLEAN    = $(NetBiosBin_0_OUTDIR)/NetBiosBin.c
     30
     31 $$(NetBiosBin_0_OUTDIR)/NetBiosBin.c: $(PATH_SUB_CURRENT)/pcnet32.zrom $(VBOX_BIN2C)
     32        $(call MSG_TOOL,bin2c,NetBiosBin,$<,$@)
     33        $(QUIET)$(VBOX_BIN2C) -min 16 -max 24 -mask 0xfff -export NetBiosBinary $< $@
     34
     35else
     36#
     37# Build it from scratch.
     38# TODO: Stop using $(PATH_TARGET)!
     39#
    2040
    2141BLDPROGS  += nrv2b makerom
     
    289309# the final binary to 0xffc00000 and filling out relocations incorrectly
    290310# (first occurrence is the call to prelocate in the pciprefix.o file).
    291 ifeq ($(filter-out darwin.x86 darwin.amd64 os2.x86 solaris.x86 solaris.amd64 win.x86 win.amd64 linux.amd64 freebsd.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),)
    292 $(PATH_TARGET)/pcnet32.zrom: $(PATH_SUB_CURRENT)/pcnet32.zrom | $(call DIRDEP,$(PATH_TARGET))
    293         $(CP) -f $< $@
    294 else
    295311$(PATH_TARGET)/pcnet32.zrom: $(PATH_TARGET)/pcnet32.rom.zprf $(MAKEROM) $(MAKEDEPS)
    296312        $(call MSG_TOOL,makerom,NetBiosBin,$<,$@)
     
    313329        $(QUIET)$(MAKEROM) -p 0x1022,0x2000 -i $(IDENT) [email protected]
    314330        $(QUIET)$(MV) -f [email protected] $@
    315 endif
    316331
    317332
     
    791806include/mii.h:
    792807
     808endif # build it
    793809include $(KBUILD_PATH)/subfooter.kmk
    794810
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