From adad83c1f35bfa67a2dcb84dd209dc78e222c84a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 12 Feb 2013 00:09:22 +0100 Subject: [PATCH] Improve feed handling --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ab7b8b0..c9187f71 100644 --- a/Makefile +++ b/Makefile @@ -15,16 +15,19 @@ ${space} := ${space} prepare: mkdir -p $(GLUON_IMAGEDIR) $(GLUON_BUILDDIR) - $(LN_S) $(GLUON_BUILDERDIR)/feeds.conf $(GLUON_OPENWRTDIR)/feeds.conf echo 'src packages file:../openwrt/bin/$(BOARD)/packages' > $(GLUON_BUILDDIR)/opkg-$(BOARD).conf + $(LN_S) $(GLUON_BUILDERDIR)/feeds.conf $(GLUON_OPENWRTDIR)/feeds.conf + $(GLUON_OPENWRTDIR)/scripts/feeds uninstall -a + $(GLUON_OPENWRTDIR)/scripts/feeds update -a + $(GLUON_OPENWRTDIR)/scripts/feeds install -a + echo 'CONFIG_TARGET_$(BOARD)=y' > $(GLUON_OPENWRTDIR)/.config echo -e "$(subst ${ },\n,$(patsubst %,CONFIG_PACKAGE_%=m,$(GLUON_PACKAGES)))" >> $(GLUON_OPENWRTDIR)/.config - $(MAKE) -C $(GLUON_OPENWRTDIR) defconfig package/symlinks prepare package/compile + $(MAKE) -C $(GLUON_OPENWRTDIR) defconfig prepare package/compile image-%: prepare $(MAKE) -C $(GLUON_BUILDERDIR) image \ - BIN_DIR=$(GLUON_IMAGEDIR) \ PACKAGE_DIR=$(GLUON_OPENWRTDIR)/bin/$(BOARD)/packages \ PROFILE=$(subst image-,,$@)