VirtualBox

Changeset 2275 in kBuild


Ignore:
Timestamp:
Feb 20, 2009 11:46:29 PM (16 years ago)
Author:
bird
Message:

TAR.kmk,TARGZ.kmk,TARBZ2.kmk: Fixes and additions (BZ2).

Location:
trunk/kBuild/tools
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/TAR.kmk

    r2243 r2275  
    4040  TOOL_TAR_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE))
    4141 endif
    42  ifeq ($(TOOL_TAR_TAR),)
     42 ifneq ($(TOOL_TAR_TAR),)
    4343  TOOL_TAR_TAR := $(lastword $(sort $(TOOL_TAR_TAR)))
    4444 else
     
    6565define TOOL_TAR_UNPACK_CMDS
    6666        $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)
    67         $(QUIET)$(TOOL_TAR_UNPACK) -t $(flags) -f $(archive) > $(out)
     67        $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out)
    6868endef
    6969else
    7070define TOOL_TAR_UNPACK_CMDS
    7171        $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(inst) -f $(archive)
    72         $(QUIET)$(TOOL_TAR_UNPACK) -t $(flags) -f $(archive) > $(out)
     72        $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out)
    7373endef
    7474endif
  • trunk/kBuild/tools/TARBZ2.kmk

    r2272 r2275  
    11# $Id$
    22## @file
    3 # kBuild Tool Config - tar.gz unpacker.
     3# kBuild Tool Config - tar.bz2 unpacker.
    44#
    55
     
    3232#
    3333
    34 TOOL_TARGZ := tar.gz unpacker.
     34TOOL_TARBZ2 := tar.bz2 unpacker.
     35TOOL_TARBZ2_EXTENDS = TAR
     36TOOL_TARBZ2_UNPACKFLAGS ?= -j
    3537
    36 # Tool Specific Properties
    37 ifndef TOOL_TARGZ_TAR
    38  TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/tar/v*/tar$(HOSTSUFF_EXE))
    39  ifeq ($(TOOL_TARGZ_TAR),)
    40   TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE))
    41  endif
    42  ifeq ($(TOOL_TARGZ_TAR),)
    43   TOOL_TARGZ_TAR := $(TOOL_TAR_TAR)
    44  endif
    45  ifeq ($(TOOL_TARGZ_TAR),)
    46   TOOL_TARGZ_TAR := $(lastword $(sort $(TOOL_TARGZ_TAR)))
    47  else
    48   TOOL_TARGZ_TAR := tar$(HOSTSUFF_EXE)
    49  endif
    50 else
    51  TOOL_TARGZ_TAR := $(TOOL_TARGZ_TAR)
    52 endif
    53 TOOL_TARGZ_UNPACK ?= $(TOOL_TARGZ_TAR)
    54 
    55 # General Properties used by kBuild
    56 TOOL_TARGZ_UNPACKFLAGS ?= -z
    57 
    58 ## UNPACK one file.
    59 # @param    $(target)   Normalized main target name.
    60 # @param    $(archive)  The file to unpack.
    61 # @param    $(flags)    Flags.
    62 # @param        $(inst)         Where to unpack it.
    63 # @param        $(out)          Where to write the file list.
    64 TOOL_TARGZ_UNPACK_OUTPUT =
    65 TOOL_TARGZ_UNPACK_DEPEND =
    66 TOOL_TARGZ_UNPACK_DEPORD =
    67 ifeq ($(KBUILD_HOST),win) # hacking with buggy unxutils on windows. it doesn't like driver letters.
    68 define TOOL_TARGZ_UNPACK_CMDS
    69         $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)
    70         $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
    71 endef
    72 else
    73 define TOOL_TARGZ_UNPACK_CMDS
    74         $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)
    75         $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
    76 endef
    77 endif
    78 
  • trunk/kBuild/tools/TARGZ.kmk

    r2246 r2275  
    3333
    3434TOOL_TARGZ := tar.gz unpacker.
    35 
    36 # Tool Specific Properties
    37 ifndef TOOL_TARGZ_TAR
    38  TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/tar/v*/tar$(HOSTSUFF_EXE))
    39  ifeq ($(TOOL_TARGZ_TAR),)
    40   TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE))
    41  endif
    42  ifeq ($(TOOL_TARGZ_TAR),)
    43   TOOL_TARGZ_TAR := $(TOOL_TAR_TAR)
    44  endif
    45  ifeq ($(TOOL_TARGZ_TAR),)
    46   TOOL_TARGZ_TAR := $(lastword $(sort $(TOOL_TARGZ_TAR)))
    47  else
    48   TOOL_TARGZ_TAR := tar$(HOSTSUFF_EXE)
    49  endif
    50 else
    51  TOOL_TARGZ_TAR := $(TOOL_TARGZ_TAR)
    52 endif
    53 TOOL_TARGZ_UNPACK ?= $(TOOL_TARGZ_TAR)
    54 
    55 # General Properties used by kBuild
     35TOOL_TARGZ_EXTENDS = TAR
    5636TOOL_TARGZ_UNPACKFLAGS ?= -z
    5737
    58 ## UNPACK one file.
    59 # @param    $(target)   Normalized main target name.
    60 # @param    $(archive)  The file to unpack.
    61 # @param    $(flags)    Flags.
    62 # @param        $(inst)         Where to unpack it.
    63 # @param        $(out)          Where to write the file list.
    64 TOOL_TARGZ_UNPACK_OUTPUT =
    65 TOOL_TARGZ_UNPACK_DEPEND =
    66 TOOL_TARGZ_UNPACK_DEPORD =
    67 ifeq ($(KBUILD_HOST),win) # hacking with buggy unxutils on windows. it doesn't like driver letters.
    68 define TOOL_TARGZ_UNPACK_CMDS
    69         $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)
    70         $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
    71 endef
    72 else
    73 define TOOL_TARGZ_UNPACK_CMDS
    74         $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)
    75         $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
    76 endef
    77 endif
    78 
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