aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-10 11:17:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-10 11:17:29 +0000
commit4e90bd649abb6a749a8fb0ff59398bd054bda44d (patch)
tree968c6022e2720ce95eb0e39f2fe35d17f4069704 /include
parent77a7e33168245f320c94662d13339cd68573dd8f (diff)
downloadmaster-187ad058-4e90bd649abb6a749a8fb0ff59398bd054bda44d.tar.gz
master-187ad058-4e90bd649abb6a749a8fb0ff59398bd054bda44d.tar.bz2
master-187ad058-4e90bd649abb6a749a8fb0ff59398bd054bda44d.zip
build: don't call prereq for any package/symlinks rules
Most of the time, we want to make sure OpenWrt has been configured and setup before start running make. However, in case of package/symlinks, forcing prereq as a dependency creates multiple issues: *when executed on a clean workspace, it will prompt for user input and open a menuconfig window before executing the feeds command *the only way around that is to provide a .config. However, the "prereq" target would then run a "make defconfig", which will remove all the packages in the .config but from external feeds, as feeds have not been installed yet. The only way to currently work around this, is to generate a fake config by running "make defconfig", then "make package/symlinks", copy the real config (which at this point disregards the previously generated config), and run make defconfig again. Something like this: make defconfig make package/symlinks cp real.config .config make defconfig This change is removing the need for the first defconfig, making the process more logical for OpenWrt users using the package/symlinks target. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45657 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/toplevel.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index d8651d923b..bbeb7ebcef 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -193,6 +193,20 @@ else
endif
+# update all feeds, re-create index files, install symlinks
+package/symlinks:
+ ./scripts/feeds update -a
+ ./scripts/feeds install -a
+
+# re-create index files, install symlinks
+package/symlinks-install:
+ ./scripts/feeds update -i
+ ./scripts/feeds install -a
+
+# remove all symlinks, don't touch ./feeds
+package/symlinks-clean:
+ ./scripts/feeds uninstall -a
+
help:
cat README