base-files: create /etc/opkg before generating distfeeds.conf
authorJonas Gorski <jonas.gorski@gmail.com>
Wed, 13 Dec 2017 13:30:30 +0000 (14:30 +0100)
committerJonas Gorski <jonas.gorski@gmail.com>
Wed, 13 Dec 2017 13:46:37 +0000 (14:46 +0100)
Ensure /etc/opkg exists before trying to write there. This fixes a build
failure if SIGNED_PACKAGES is disabled.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
package/base-files/Makefile

index 6e8ef58f210a6bb34e07c865e04f1866b37a452b..2cf76b1b7caf45e0cdea05ef17a616fefb4fcb87 100644 (file)
@@ -190,6 +190,7 @@ define Package/base-files/install
                echo -e "# Build configuration for board $(BOARD)/$(SUBTARGET)/$(PROFILE)\n" >$(1)/etc/build.config; \
                cat $(BIN_DIR)/config.seed >>$(1)/etc/build.config)
 
+       mkdir -p $(1)/etc/opkg
        $(call FeedSourcesAppend,$(1)/etc/opkg/distfeeds.conf)
        $(VERSION_SED) $(1)/etc/opkg/distfeeds.conf
 endef