Browse Source

imagebuilder: fix standalone operation

Fix standalone ImageBuilders after the package layout rework.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Jo-Philipp Wich 10 years ago
parent
commit
da46d2b228
1 changed files with 2 additions and 1 deletions
  1. 2 1
      target/imagebuilder/Makefile

+ 2 - 1
target/imagebuilder/Makefile

@@ -53,7 +53,8 @@ ifeq ($(CONFIG_IB_STANDALONE),)
 			cp "$(PACKAGE_DIR)/$$path" "$(PKG_BUILD_DIR)/packages/$$path"; \
 		done
 else
-	$(CP) $(PACKAGE_DIR) $(PKG_BUILD_DIR)/packages
+	$(INSTALL_DIR) $(PKG_BUILD_DIR)/packages
+	find $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.ipk' -exec $(CP) {} $(PKG_BUILD_DIR)/packages/ \;
 endif
 
 	$(CP) $(TOPDIR)/target/linux $(PKG_BUILD_DIR)/target/