diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-05 19:47:31 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-08-02 07:44:30 +0200 |
commit | 8aa99ec7b1277fc03bd678997bcf26258bc5a454 (patch) | |
tree | c29d1f4bf66482a8f6fdda0c60d081af9b9bb3d7 /rules/post/ptxd_make_world_extract.make | |
parent | 7b6e364899b7f163d07d2b9618febdce592c72d5 (diff) | |
download | ptxdist-8aa99ec7b1277fc03bd678997bcf26258bc5a454.tar.gz ptxdist-8aa99ec7b1277fc03bd678997bcf26258bc5a454.tar.xz |
[ptxd_make_world_extract] move "extract" from Rules here
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/post/ptxd_make_world_extract.make')
-rw-r--r-- | rules/post/ptxd_make_world_extract.make | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/rules/post/ptxd_make_world_extract.make b/rules/post/ptxd_make_world_extract.make index a0b942f0c..ea878f16d 100644 --- a/rules/post/ptxd_make_world_extract.make +++ b/rules/post/ptxd_make_world_extract.make @@ -1,6 +1,6 @@ # -*-makefile-*- # -# Copyright (C) 2008, 2009 by Marc Kleine-Budde <mkl@pengutronix.de> +# Copyright (C) 2008, 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de> # # See CREDITS for details about who has contributed to this project. # @@ -8,6 +8,24 @@ # see the README file. # +# +# extract +# +# Extract a source archive into a directory. This stage is +# skipped if $1_URL points to a local directory instead of +# an archive or online URL. +# +# $1: Packet label; we extract $1_SOURCE +# $2: dir to extract into; if $2 is not given we extract to $(BUILDDIR) +# +extract = \ + ptxd_make_extract \ + -s "$($(strip $(1))_SOURCE)" \ + -p "$($(strip $(1))_DIR)" \ + -u "$($(strip $(1))_URL)" \ + -d "$(strip $(2))" + + ### --- for CROSS packages only --- $(STATEDIR)/cross-%.extract: |