build: allow openwrt.git packages to be replaced by feeds
authorJohn Crispin <john@openwrt.org>
Thu, 22 Jan 2015 09:35:40 +0000 (09:35 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 22 Jan 2015 09:35:40 +0000 (09:35 +0000)
commitde3bf7e4c227f9947e352a4de3861c3475415f0a
tree54925168e0e16d6baefcbf17394a43c2c756a83f
parentbebf1e6e6ec7904137a4a1f87c059a0911dc6345
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: 44076
include/scan.awk [new file with mode: 0644]
include/scan.mk
scripts/feeds