diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-23 15:46:50 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-24 19:15:30 +0200 |
commit | 4b76328f0c967b4d2c2ca1ec1f5090d901c96f81 (patch) | |
tree | c2f099174b46e95a45ea5527b1e36744f0e3a1fa /scripts/lib/ptxd_lib_dgen.awk | |
parent | c60d30a8fc44b199ae5d6d526308bb854da6dc36 (diff) | |
download | ptxdist-4b76328f0c967b4d2c2ca1ec1f5090d901c96f81.tar.gz ptxdist-4b76328f0c967b4d2c2ca1ec1f5090d901c96f81.tar.xz |
ptxd_make_world_get: use pattern rule for sources instead of generated rules
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.awk | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 1c0093b69..406b54234 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -109,29 +109,6 @@ $1 ~ /^[A-Z_]*PACKAGES-/ { } # -# Look for <PKG>_SOURCE definitions and corresponding rules to determine -# which rules must be generated. -# This assumes: -# "<PKG>_SOURCE := ...." defined a new source. -# "<PKG>_SOURCE = ...." reuses another source ('=' because the order is unknown) -# "(<PKG>_SOURCE):" defined a souce rule. -# -# Default rules will be generated for all new souces with no source rule. -# -# out: -# PKG_source_url array with value '1' for all PKG with new source. -# PKG_source_rule array with value '1' for all PKG with source rule. -# -$0 ~ /^[A-Z0-9_]*_SOURCE[[:space:]]*:=.*/ { - PKG = gensub(/^([A-Z0-9_]*)_SOURCE[[:space:]]*:=.*/, "\\1", "g"); - PKG_source_url[PKG] = 1; -} -$1 ~ /^\$\([A-Z0-9_]*_SOURCE\):$/ { - PKG = gensub(/^\$\(([A-Z0-9_]*)_SOURCE\):$/, "\\1", "g", $1); - PKG_source_rule[PKG] = 1; -} - -# # parses "PTX_MAP_DEP_PKG=FOO" lines, which are the raw dependencies # generated from kconfig. these deps usually contain non pkg symbols, # these are filtered out here. @@ -286,11 +263,6 @@ function import_PKG(this_PKG, this_pkg) { print this_PKG "_DEVPKG = cross-" this_devpkg > DGEN_DEPS_PRE; } } - if ((this_PKG in PKG_source_url) && !(this_PKG in PKG_source_rule)) { - print "$(" this_PKG "_SOURCE):" > DGEN_DEPS_POST; - print " @$(call targetinfo)" > DGEN_DEPS_POST; - print " @$(call get, " this_PKG ")" > DGEN_DEPS_POST; - } } END { |