@@ -26,8 +26,7 @@ DD:=$(CB_DIR)/crossbuild
2626DOCKER_TMPL: =$(CB_DIR ) /m4/Dockerfile.m4
2727
2828# List of all the docker images (sorted for "crossbuild.info")
29- CB_IMAGES := $(sort $(filter-out profiling,\
30- $(patsubst $(DT ) /% /,% ,$(wildcard $(DT ) /* /) ) ) )
29+ CB_IMAGES: =$(sort $(patsubst $(DT ) /% ,% ,$(wildcard $(DT ) /* ) ) )
3130
3231# Location of the .git dir (may be different for e.g. submodules)
3332GITDIR: =$(shell perl -MCwd -e 'print Cwd::abs_path shift' $$(git rev-parse --git-dir ) )
4140CB_IPREFIX: =freeradius40x-build
4241CB_CPREFIX: =fr40x-crossbuild-
4342
44- PROFILE ?= profiling1
43+ PROFILE ?= default-profiling
44+
45+ # Where profiling profiles live
46+ PROFILES_DIR: =$(CB_DIR ) /profiling/profiles
47+
48+ # All available profiling profiles (one sub-directory per profile)
49+ CB_PROFILES: =$(sort $(patsubst $(PROFILES_DIR ) /% ,% ,$(wildcard $(PROFILES_DIR ) /* ) ) )
4550
4651#
4752# This Makefile is included in-line, and not via the "boilermake"
@@ -99,11 +104,6 @@ crossbuild.help: crossbuild.info
99104 @echo " crossbuild.IMAGE.profbuild - build profiling image using default profile ($( PROFILE) )"
100105 @echo " crossbuild.IMAGE.profreset - remove profiling stamp and Dockerfile.prof to force rebuild"
101106 @echo " "
102- @echo " Available profiling profiles (scripts/docker/profiling/profiles/):"
103- @echo " profiling1 - callgrind call graph and instruction profiling"
104- @echo " profiling2 - FUTURE: e.g. massif heap memory profiling"
105- @echo " profiling3 - FUTURE: e.g. gperftools CPU profiling"
106- @echo " "
107107 @echo " Use 'make NOCACHE=1 ...' to disregard the Docker cache on build"
108108
109109#
0 commit comments