- Timestamp:
- Apr 10, 2009 4:18:27 PM (16 years ago)
- Location:
- branches/kBuild-0.1.5
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/kBuild-0.1.5
-
branches/kBuild-0.1.5/kBuild/tools/TAR.kmk
r2243 r2326 40 40 TOOL_TAR_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE)) 41 41 endif 42 if eq ($(TOOL_TAR_TAR),)42 ifneq ($(TOOL_TAR_TAR),) 43 43 TOOL_TAR_TAR := $(lastword $(sort $(TOOL_TAR_TAR))) 44 44 else … … 65 65 define TOOL_TAR_UNPACK_CMDS 66 66 $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive) 67 $(QUIET)$(TOOL_TAR_UNPACK) -t $(f lags) -f $(archive) > $(out)67 $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out) 68 68 endef 69 69 else 70 70 define TOOL_TAR_UNPACK_CMDS 71 71 $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(inst) -f $(archive) 72 $(QUIET)$(TOOL_TAR_UNPACK) -t $(f lags) -f $(archive) > $(out)72 $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out) 73 73 endef 74 74 endif -
branches/kBuild-0.1.5/kBuild/tools/TARGZ.kmk
r2246 r2326 33 33 34 34 TOOL_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 35 TOOL_TARGZ_EXTENDS = TAR 56 36 TOOL_TARGZ_UNPACKFLAGS ?= -z 57 37 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_CMDS69 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)70 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)71 endef72 else73 define TOOL_TARGZ_UNPACK_CMDS74 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)75 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)76 endef77 endif78
Note:
See TracChangeset
for help on using the changeset viewer.