build: allow openwrt.git packages to be replaced by feeds
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Jan 2015 09:35:40 +0000 (09:35 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Jan 2015 09:35:40 +0000 (09:35 +0000)
commit77e2b216862b6532a15fe027b7ea9d7ec1c5f3bf
treefe04e7ef788200bc3981b7aa34e504bd5742e216
parentc9f5b682ea6503ff5c4d604caebb1ffe0c52ea77
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44076 3c298f89-4303-0410-b956-a3cf2f4a3e73
include/scan.awk [new file with mode: 0644]
include/scan.mk
scripts/feeds