File tree 6 files changed +254
-83
lines changed
6 files changed +254
-83
lines changed Original file line number Diff line number Diff line change @@ -1341,6 +1341,12 @@ ifneq ($(wildcard $(resolve_btfids_O)),)
1341
1341
$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1342
1342
endif
1343
1343
1344
+ tools-clean-targets := sched_ext
1345
+ PHONY += $(tools-clean-targets )
1346
+ $(tools-clean-targets ) :
1347
+ $(Q )$(MAKE ) -sC tools $@ _clean
1348
+ tools_clean : $(tools-clean-targets )
1349
+
1344
1350
# Clear a bunch of variables before executing the submake
1345
1351
ifeq ($(quiet ) ,silent_)
1346
1352
tools_silent =s
@@ -1510,7 +1516,7 @@ PHONY += $(mrproper-dirs) mrproper
1510
1516
$(mrproper-dirs ) :
1511
1517
$(Q )$(MAKE ) $(clean ) =$(patsubst _mrproper_% ,% ,$@ )
1512
1518
1513
- mrproper : clean $(mrproper-dirs )
1519
+ mrproper : clean $(mrproper-dirs ) tools_clean
1514
1520
$(call cmd,rmfiles)
1515
1521
@find . $(RCS_FIND_IGNORE ) \
1516
1522
\( -name ' *.rmeta' \) \
Original file line number Diff line number Diff line change 29
29
@echo ' pci - PCI tools'
30
30
@echo ' perf - Linux performance measurement and analysis tool'
31
31
@echo ' selftests - various kernel selftests'
32
+ @echo ' sched_ext - sched_ext example schedulers'
32
33
@echo ' bootconfig - boot config tool'
33
34
@echo ' spi - spi tools'
34
35
@echo ' tmon - thermal monitoring and tuning tool'
@@ -92,6 +93,9 @@ perf: FORCE
92
93
$(Q ) mkdir -p $(PERF_O ) .
93
94
$(Q )$(MAKE ) --no-print-directory -C perf O=$(PERF_O ) subdir=
94
95
96
+ sched_ext : FORCE
97
+ $(call descend,sched_ext)
98
+
95
99
selftests : FORCE
96
100
$(call descend,testing/$@ )
97
101
@@ -185,6 +189,9 @@ perf_clean:
185
189
$(Q ) mkdir -p $(PERF_O ) .
186
190
$(Q )$(MAKE ) --no-print-directory -C perf O=$(PERF_O ) subdir= clean
187
191
192
+ sched_ext_clean :
193
+ $(call descend,sched_ext,clean)
194
+
188
195
selftests_clean :
189
196
$(call descend,testing/$(@:_clean= ) ,clean)
190
197
@@ -214,6 +221,7 @@ clean: acpi_clean cgroup_clean counter_clean cpupower_clean hv_clean firewire_cl
214
221
mm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \
215
222
freefall_clean build_clean libbpf_clean libsubcmd_clean \
216
223
gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \
217
- intel-speed-select_clean tracing_clean thermal_clean thermometer_clean thermal-engine_clean
224
+ intel-speed-select_clean tracing_clean thermal_clean thermometer_clean thermal-engine_clean \
225
+ sched_ext_clean
218
226
219
227
.PHONY : FORCE
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ scx_userland
7
7
* .skel.h
8
8
* .subskel.h
9
9
/tools /
10
+ build /
Original file line number Diff line number Diff line change
1
+ CONFIG_BPF=y
2
+ CONFIG_SCHED_CLASS_EXT=y
3
+ CONFIG_BPF_SYSCALL=y
4
+ CONFIG_BPF_JIT=y
5
+ CONFIG_DEBUG_INFO_BTF=y
6
+ CONFIG_BPF_JIT_ALWAYS_ON=y
7
+ CONFIG_BPF_JIT_DEFAULT_ON=y
8
+ CONFIG_PAHOLE_HAS_SPLIT_BTF=y
9
+ CONFIG_PAHOLE_HAS_BTF_TAG=y
Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ clean:
228
228
rm -f * .o * .bpf.o * .skel.h * .subskel.h
229
229
rm -f scx_simple scx_qmap scx_central scx_pair scx_flatcg scx_userland
230
230
231
+ fullclean : clean
232
+ $(Q )$(MAKE ) -sC ../../ clean
233
+
231
234
help :
232
235
@echo ' Building targets:'
233
236
@echo ' all - Compile all schedulers'
@@ -282,8 +285,12 @@ help:
282
285
@echo ' Cleaning targets:'
283
286
@echo ' clean - Remove all generated files, including intermediate'
284
287
@echo ' rust files for rust schedulers.'
288
+ @echo ' '
289
+ @echo ' fullclean - Remove all generated files, including intermediate'
290
+ @echo ' rust files for rust schedulers, and also trigger a'
291
+ @echo ' clean of the kernel at the root of the whole repository.'
285
292
286
- .PHONY : all scx_rusty clean help
293
+ .PHONY : all scx_rusty clean fullclean help
287
294
288
295
# delete failed targets
289
296
.DELETE_ON_ERROR :
You can’t perform that action at this time.
0 commit comments