Skip to content

Commit

Permalink
toplevel.mk: make sure tmp exist for .packagedynamicdefault
Browse files Browse the repository at this point in the history
With some big corner case, tmp directory might not exist when
check-dynamic-def-pkg is called. To handle this, make sure tmp exist
before creating the .packagedynamicdefault file.

Fixes: 9a52ec4 ("toplevel.mk: implement logic to invalidate targetinfo with some config")
Signed-off-by: Christian Marangi <[email protected]>
  • Loading branch information
Ansuel committed Jun 12, 2024
1 parent 95597dc commit 3810219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/toplevel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ check-dynamic-def-pkg: FORCE
fi; \
[ ! -f tmp/.packagedynamicdefault ] || OLD_DEF_PKG_CONFS=$$(cat tmp/.packagedynamicdefault); \
[ "$$DEF_PKG_CONFS" = "$$OLD_DEF_PKG_CONFS" ] || rm -rf tmp/info/.targetinfo*; \
echo "$$DEF_PKG_CONFS" > tmp/.packagedynamicdefault;
mkdir -p tmp && echo "$$DEF_PKG_CONFS" > tmp/.packagedynamicdefault;

prepare-tmpinfo: check-dynamic-def-pkg FORCE
@+$(MAKE) -r -s $(STAGING_DIR_HOST)/.prereq-build $(PREP_MK)
Expand Down

0 comments on commit 3810219

Please sign in to comment.