Browse Source

fix build bug, found by joerg.

It seems to be a problem to call PKG_INSTALL via $(shell ..)
Waldemar Brodkorb 15 years ago
parent
commit
43c90eb66a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mk/kernel-build.mk

+ 4 - 0
mk/kernel-build.mk

@@ -53,8 +53,12 @@ compile: $(LINUX_DIR)/vmlinux
 install: compile
 ifneq ($(strip $(INSTALL_TARGETS)),)
 	$(TRACE) target/${ADK_TARGET}-modules-install
+ifeq ($(ADK_TARGET_PACKAGE_IPKG),y)
+	$(PKG_INSTALL) $(INSTALL_TARGETS) $(MAKE_TRACE)
+else
 	$(foreach pkg,$(INSTALL_TARGETS),$(shell $(PKG_INSTALL) $(pkg)))
 endif
+endif
 
 clean:
 	rm -rf $(LINUX_BUILD_DIR)