|
41 | 41 | CB_IPREFIX:=freeradius40x-build |
42 | 42 | CB_CPREFIX:=fr40x-crossbuild- |
43 | 43 |
|
44 | | -PROFILING_PROFILE ?= valgrind-callgrind |
| 44 | +PROFILE ?= valgrind-callgrind |
45 | 45 |
|
46 | 46 | # |
47 | 47 | # This Makefile is included in-line, and not via the "boilermake" |
@@ -94,21 +94,21 @@ crossbuild.help: crossbuild.info |
94 | 94 | @echo " crossbuild.IMAGE.wipe - remove Docker image" |
95 | 95 | @echo "" |
96 | 96 | @echo "Profiling targets:" |
97 | | - @echo " crossbuild.IMAGE.profregen - regenerate Dockerfile.prof using default profile ($(PROFILING_PROFILE))" |
98 | | - @echo " crossbuild.IMAGE.profregen PROFILING_PROFILE=<name> - regenerate using a specific profile" |
99 | | - @echo " crossbuild.IMAGE.profbuild - build profiling image using default profile ($(PROFILING_PROFILE))" |
100 | | - @echo " crossbuild.IMAGE.profbuild PROFILING_PROFILE=<name> - build using a specific profile" |
| 97 | + @echo " crossbuild.IMAGE.profregen - regenerate Dockerfile.prof using default profile ($(PROFILE))" |
| 98 | + @echo " crossbuild.IMAGE.profregen PROFILE=<name> - regenerate using a specific profile" |
| 99 | + @echo " crossbuild.IMAGE.profbuild - build profiling image using default profile ($(PROFILE))" |
| 100 | + @echo " crossbuild.IMAGE.profbuild PROFILE=<name> - build using a specific profile" |
101 | 101 | @echo "" |
102 | 102 | @echo "Available profiling profiles (scripts/docker/profiling/profiles/):" |
103 | 103 | @echo " valgrind-callgrind - callgrind call graph and instruction profiling" |
104 | 104 | @echo " valgrind-massif - FUTURE: massif heap memory profiling" |
105 | 105 | @echo " gperftools-cpu - FUTURE: gperftools CPU profiling" |
106 | 106 | @echo "" |
107 | | - @echo "Profiling image profregen/profbuild examples:" |
| 107 | + @echo "Profiling examples:" |
108 | 108 | @echo " make crossbuild.ubuntu24.profregen" |
109 | | - @echo " make crossbuild.ubuntu24.profregen PROFILING_PROFILE=valgrind-callgrind" |
| 109 | + @echo " make crossbuild.ubuntu24.profregen PROFILE=valgrind-callgrind" |
110 | 110 | @echo " make crossbuild.ubuntu24.profbuild" |
111 | | - @echo " make crossbuild.ubuntu24.profbuild PROFILING_PROFILE=gperftools-cpu" |
| 111 | + @echo " make crossbuild.ubuntu24.profbuild PROFILE=gperftools-cpu" |
112 | 112 | @echo "" |
113 | 113 | @echo "Use 'make NOCACHE=1 ...' to disregard the Docker cache on build" |
114 | 114 |
|
@@ -169,9 +169,9 @@ crossbuild.${1}.profbuild: $(DD)/stamp-image.${1}-profbuild |
169 | 169 | $(DD)/stamp-image.${1}-profbuild: $(DT)/${1}/Dockerfile.prof |
170 | 170 | ${Q}echo "BUILD ${1} ($(CB_IPREFIX)/${1}-prof) > $(DD)/build.${1}-profbuild" |
171 | 171 | ${Q}docker build $(DOCKER_BUILD_OPTS) . \ |
172 | | - -f $(DT)/${1}/Dockerfile.prof \ |
173 | | - -t $(CB_IPREFIX)/${1}-prof \ |
174 | | - >$(DD)/build.${1}-profbuild 2>&1 |
| 172 | + -f $(DT)/${1}/Dockerfile.prof \ |
| 173 | + -t $(CB_IPREFIX)/${1}-prof \ |
| 174 | + >$(DD)/build.${1}-profbuild 2>&1 |
175 | 175 | ${Q}touch $(DD)/stamp-image.${1}-profbuild |
176 | 176 |
|
177 | 177 | # |
@@ -295,7 +295,7 @@ $(DT)/${1}/Dockerfile.prof: $(DOCKER_TMPL) $(CB_DIR)/m4/profiling.deb.m4 $(CB_DI |
295 | 295 | -D D_NAME=${1} \ |
296 | 296 | -D D_TYPE=profiling \ |
297 | 297 | -D CB_IMAGE=$(CB_IPREFIX)/${1} \ |
298 | | - -D PROFILING_PROFILE_NAME=$(PROFILING_PROFILE) \ |
| 298 | + -D PROFILE_NAME=$(PROFILE) \ |
299 | 299 | $$< > $$@ |
300 | 300 |
|
301 | 301 | # |
|
0 commit comments