Browse Source

base-files: create /etc/opkg before generating distfeeds.conf

Ensure /etc/opkg exists before trying to write there. This fixes a build
failure if SIGNED_PACKAGES is disabled.

Reported-by: Matthias Schiffer <[email protected]>
Signed-off-by: Jonas Gorski <[email protected]>
Jonas Gorski 8 years ago
parent
commit
5538b4df7f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/base-files/Makefile

+ 1 - 0
package/base-files/Makefile

@@ -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