forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> SVN-Revision: 44334
- Loading branch information
John Crispin
committed
Feb 9, 2015
1 parent
28353b3
commit 2e2c047
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
BEGIN { FS="/" } | ||
$1 ~ /^feeds/ { FEEDS[$NF]=$0 } | ||
$1 !~ /^feeds/ { PKGS[$NF]=$0 } | ||
END { | ||
# Filter-out OpenWrt packages which have a feeds equivalent | ||
for (pkg in PKGS) | ||
if (pkg in FEEDS) | ||
delete PKGS[pkg] | ||
n = asort(PKGS) | ||
for (i=1; i <= n; i++) { | ||
print PKGS[i] | ||
} | ||
n = asort(FEEDS) | ||
for (i=1; i <= n; i++){ | ||
print FEEDS[i] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters