Skip to content

Commit 0de81df

Browse files
committed
Adding the .profreset to allow us to delete the stamp file to allow us to force a rebuild of the profiling image
1 parent 611d063 commit 0de81df

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

scripts/docker/crossbuild.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ crossbuild.help: crossbuild.info
9797
@echo " crossbuild.IMAGE.profregen - regenerate Dockerfile.prof using default profile ($(PROFILE))"
9898
@echo " crossbuild.IMAGE.profregen PROFILE=<name> - regenerate using a specific profile"
9999
@echo " crossbuild.IMAGE.profbuild - build profiling image using default profile ($(PROFILE))"
100+
@echo " crossbuild.IMAGE.profreset - remove profiling stamp and Dockerfile.prof to force rebuild"
100101
@echo ""
101102
@echo "Available profiling profiles (scripts/docker/profiling/profiles/):"
102103
@echo " profiling1 - callgrind call graph and instruction profiling"
@@ -291,6 +292,15 @@ $(DT)/${1}/Dockerfile.prof: $(DOCKER_TMPL) $(CB_DIR)/m4/profiling.deb.m4 $(CB_DI
291292
-D PROFILE_NAME=$(PROFILE) \
292293
$$< > $$@
293294

295+
#
296+
# Remove profiling stamp and Dockerfile so next profbuild starts clean
297+
#
298+
.PHONY: crossbuild.${1}.profreset
299+
crossbuild.${1}.profreset:
300+
${Q}echo RESET profiling ${1}
301+
${Q}rm -f $(DD)/stamp-image.${1}-profbuild
302+
${Q}rm -f $(DT)/${1}/Dockerfile.prof
303+
294304
#
295305
# Run the build test
296306
#

0 commit comments

Comments
 (0)