build: allow openwrt.git packages to be replaced by feeds
authorJohn Crispin <john@openwrt.org>
Mon, 9 Feb 2015 12:09:23 +0000 (12:09 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 9 Feb 2015 12:09:23 +0000 (12:09 +0000)
commite3137fbe46ba295dece84a19d06a42825c5a3ff4
treeeaf00a8f6495e578a39dbc6d4e7b414954d4741c
parentcad3be2857e6b28a9e032939ff9736da15b2672b
build: allow openwrt.git packages to be replaced by feeds

Currently, replacing a package available in openwrt.git requires
modifications in openwrt.git, or requires duplicating the package in a
feed but with a different name, which causes all kind of problems
related to dependencies (all packages selecting it would have to be
modified accordingly to select the new package).

With this change, if a package with the same name is present both in
feeds/ and package/ folders, the one in feeds/ can override the one
in package/, both in the menuconfig and during the build, by passing the
"-f" option to "./scripts/feeds install"

This mechanism is particularly useful for vendor tree, or in general for
application which needs to replace one particular package which exists
within openwrt.git by a custom/newer version.

Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 44334
include/scan.awk [new file with mode: 0644]
include/scan.mk
scripts/feeds