Skip to content

Commit 56bc4a0

Browse files
GeorgeSapkinrobimarko
authored andcommitted
build: fix missing PKG_INFO_DIR
If the first built package has an ABI, PKG_INFO_DIR might not exist, so ensure it does. Signed-off-by: George Sapkin <[email protected]> Link: openwrt/openwrt#21265 Signed-off-by: Robert Marko <[email protected]>
1 parent b43f7bc commit 56bc4a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/package-pack.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ endif
191191
$(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
192192
mkdir -p $(STAGING_DIR_ROOT)/stamp
193193
$(if $(ABI_VERSION),echo '$(ABI_VERSION)' | cmp -s - $(PKG_INFO_DIR)/$(1).version || { \
194+
mkdir -p $(PKG_INFO_DIR); \
194195
echo '$(ABI_VERSION)' > $(PKG_INFO_DIR)/$(1).version; \
195196
$(foreach pkg,$(filter-out $(1),$(PROVIDES)), \
196197
cp $(PKG_INFO_DIR)/$(1).version $(PKG_INFO_DIR)/$(pkg).version; \

0 commit comments

Comments
 (0)