package-ipkg.mk: use the BOARD variable in opkg cmdline if ARCH_PACKAGES is not defined
authorGabor Juhos <juhosg@openwrt.org>
Fri, 1 Oct 2010 07:09:34 +0000 (07:09 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 1 Oct 2010 07:09:34 +0000 (07:09 +0000)
SVN-Revision: 23166

include/package-ipkg.mk

index 41f88d84d5a67b8797d46bb4bb84d2b73c351743..dbf87219776033d867de8b06b38f50272b9383bb 100644 (file)
@@ -18,7 +18,7 @@ OPKG:= \
        --force-postinstall \
        --add-dest root:/ \
        --add-arch all:100 \
-       --add-arch $(ARCH_PACKAGES):200
+       --add-arch $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD)):200
 
 # invoke ipkg-build with some default options
 IPKG_BUILD:= \