File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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#
You can’t perform that action at this time.
0 commit comments