From: Felix Fietkau Date: Thu, 4 Aug 2016 09:12:27 +0000 (+0200) Subject: image: fix per-device rootfs build error when not all opkg package files are found X-Git-Tag: v19.07.0-rc1~9407 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2180b715c1dcef30cb8e734c42b7e24f5f6555e5;p=openwrt%2Fstaging%2Fhauke.git image: fix per-device rootfs build error when not all opkg package files are found Signed-off-by: Felix Fietkau --- diff --git a/include/image.mk b/include/image.mk index f0b25aa763..c85a9d6505 100644 --- a/include/image.mk +++ b/include/image.mk @@ -294,7 +294,7 @@ target-dir-%: FORCE $(CP) $(TARGET_DIR) $(mkfs_cur_target_dir) mv $(mkfs_cur_target_dir)/etc/opkg $(mkfs_cur_target_dir).opkg echo 'src default file://$(PACKAGE_DIR_ALL)' > $(mkfs_cur_target_dir).conf - $(if $(mkfs_packages_add), \ + $(if $(call opkg_package_files,$(mkfs_packages_add)), \ $(opkg_target) update && \ $(opkg_target) install \ $(call opkg_package_files,$(mkfs_packages_add)))