summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorJon Ringle <jringle@gridpoint.com>2014-02-13 07:42:15 -0500
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-02-13 15:30:55 +0100
commit22f4d1aeb2be4afb68f0fc87b21d1f37d091d819 (patch)
tree2b93f6609d2240caf1bfae603fc2fb4cabd60613 /scripts/lib/ptxd_lib_dgen.awk
parent528bb7e6ef7fadc1aad032b9f895fb265f748ac6 (diff)
downloadptxdist-22f4d1aeb2be4afb68f0fc87b21d1f37d091d819.tar.gz
ptxdist-22f4d1aeb2be4afb68f0fc87b21d1f37d091d819.tar.xz
ptxd_lib_dgen: don't dereference <PKG>_DEVPKG twice
Otherwise we basically get 'ifneq ($(NO),NO)' which makes no sense. Also, strip <PKG>_DEVPKG when comparing to NO in case of trailing white-spaces. Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 863dda4d0..41b3ded63 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -242,7 +242,7 @@ function write_deps_pkg_all(this_PKG, this_pkg) {
#
print "$(STATEDIR)/" this_pkg ".get: $(" this_PKG "_SOURCES)" > DGEN_DEPS_POST;
print "ifneq ($(call remove_quotes, $(PTXCONF_PROJECT_DEVMIRROR)),)" > DGEN_DEPS_POST;
- print "ifneq ($($(" this_PKG "_DEVPKG)),NO)" > DGEN_DEPS_POST;
+ print "ifneq ($(strip $(" this_PKG "_DEVPKG)),NO)" > DGEN_DEPS_POST;
print "ifneq ($(" this_PKG "_CFGHASH),)" > DGEN_DEPS_POST;
print "getdev: $(call remove_quotes, $(PTXCONF_PROJECT_DEVPKGDIR))/$(" this_PKG "_DEVPKG)" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;