Skip to content

Commit

Permalink
base-files: ensure buildinfo files are present
Browse files Browse the repository at this point in the history
This will check if the buildinfo files are present, and run
'make buildinfo', if not.

This allows the package to be built outside of a full 'make world'.

Signed-off-by: Eneas U de Queiroz <[email protected]>
  • Loading branch information
cotequeiroz committed Jun 12, 2023
1 parent a760a63 commit 152d6f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/base-files/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ endif
done

$(if $(CONFIG_INCLUDE_CONFIG), \
{ [ ! -f $(BIN_DIR)/config.buildinfo ] || \
[ ! -f $(BIN_DIR)/feeds.buildinfo ] || \
[ ! -f $(BIN_DIR)/version.buildinfo ]; } && \
$(SUBMAKE) -C $(TOPDIR) buildinfo; \
echo -e "# Build configuration for board $(BOARD)/$(SUBTARGET)/$(PROFILE)\n" >$(1)/etc/build.config; \
cat $(BIN_DIR)/config.buildinfo >>$(1)/etc/build.config; \
cat $(BIN_DIR)/feeds.buildinfo >>$(1)/etc/build.feeds; \
Expand Down

0 comments on commit 152d6f1

Please sign in to comment.