diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-08-01 20:10:20 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-10-27 18:22:27 +0200 |
commit | e268c9265b6a99f82f9a05709e63b660aa57a479 (patch) | |
tree | 5b9913f81cb55c9869745581d6d2c28ee209c44a /scripts/lib/ptxd_make_world_patchin.sh | |
parent | ab0074aee54829c515a2772b8e6e8a46c461deaf (diff) | |
download | ptxdist-e268c9265b6a99f82f9a05709e63b660aa57a479.tar.gz ptxdist-e268c9265b6a99f82f9a05709e63b660aa57a479.tar.xz |
[extract] do nothing in extract and patching if both <PKG>_URL and <PKG>_SOURCE are undefined.
This makes it possible to use the default extract stage for packages
that have nothing to extract.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_patchin.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_patchin.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh index 6afe17eb3..57f7a610c 100644 --- a/scripts/lib/ptxd_make_world_patchin.sh +++ b/scripts/lib/ptxd_make_world_patchin.sh @@ -386,6 +386,11 @@ ptxd_make_world_patchin() { ptxd_make_world_init || return + if [ -z "${pkg_url}" -a -z "${pkg_src}" ]; then + # no <PKG>_URL and no <PKG>_SOURCE -> assume the package has nothing to patchin. + return + fi + if [ -n "${pkg_deprecated_patchin_series}" ]; then ptxd_bailout "a 3rd parameter to patchin ('${pkg_deprecated_patchin_series}') is obsolete, please define <PKG>_SERIES instead" fi |