forked from mirrors/linux
		
	tools/build: Add bpftool-skeletons feature test
Add bpftool-skeletons feature test, testing the presence of a bpftool capable of generating skeletons. This is to be used for tools that do not require building their own bootstrap bpftool from the kernel source tree. Cc: John Kacur <jkacur@redhat.com> Cc: Luis Goncalves <lgoncalv@redhat.com> Cc: Gabriele Monaco <gmonaco@redhat.com> Cc: Clark Williams <williams@redhat.com> Link: https://lore.kernel.org/20250218145859.27762-3-tglozar@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
		
							parent
							
								
									6fa5e3a87c
								
							
						
					
					
						commit
						8a635c3856
					
				
					 3 changed files with 8 additions and 1 deletions
				
			
		|  | @ -135,7 +135,8 @@ FEATURE_TESTS_EXTRA :=                  \ | |||
|          libbpf-bpf_create_map		\ | ||||
|          libpfm4                        \ | ||||
|          libdebuginfod			\ | ||||
|          clang-bpf-co-re | ||||
|          clang-bpf-co-re		\ | ||||
|          bpftool-skeletons | ||||
| 
 | ||||
| 
 | ||||
| FEATURE_TESTS ?= $(FEATURE_TESTS_BASIC) | ||||
|  |  | |||
|  | @ -418,6 +418,9 @@ $(OUTPUT)test-file-handle.bin: | |||
| $(OUTPUT)test-libpfm4.bin: | ||||
| 	$(BUILD) -lpfm | ||||
| 
 | ||||
| $(OUTPUT)test-bpftool-skeletons.bin: | ||||
| 	$(BPFTOOL) version | grep '^features:.*skeletons' \
 | ||||
| 		> $(@:.bin=.make.output) 2>&1 | ||||
| ###############################
 | ||||
| 
 | ||||
| clean: | ||||
|  |  | |||
|  | @ -91,6 +91,9 @@ LLVM_CONFIG	?= llvm-config | |||
| LLVM_OBJCOPY	?= llvm-objcopy | ||||
| LLVM_STRIP	?= llvm-strip | ||||
| 
 | ||||
| # Some tools require bpftool | ||||
| BPFTOOL		?= bpftool | ||||
| 
 | ||||
| ifeq ($(CC_NO_CLANG), 1) | ||||
| EXTRA_WARNINGS += -Wstrict-aliasing=3 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Tomas Glozar
						Tomas Glozar