~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/bpf/runqslower/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/bpf/runqslower/Makefile (Architecture sparc64) and /tools/bpf/runqslower/Makefile (Architecture ppc)


  1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-      1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
  2 include ../../scripts/Makefile.include              2 include ../../scripts/Makefile.include
  3                                                     3 
  4 OUTPUT ?= $(abspath .output)/                       4 OUTPUT ?= $(abspath .output)/
  5                                                     5 
  6 BPFTOOL_OUTPUT := $(OUTPUT)bpftool/                 6 BPFTOOL_OUTPUT := $(OUTPUT)bpftool/
  7 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)bootstrap/      7 DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)bootstrap/bpftool
  8 BPFTOOL ?= $(DEFAULT_BPFTOOL)                       8 BPFTOOL ?= $(DEFAULT_BPFTOOL)
  9 LIBBPF_SRC := $(abspath ../../lib/bpf)              9 LIBBPF_SRC := $(abspath ../../lib/bpf)
 10 BPFOBJ_OUTPUT := $(OUTPUT)libbpf/                  10 BPFOBJ_OUTPUT := $(OUTPUT)libbpf/
 11 BPFOBJ := $(BPFOBJ_OUTPUT)libbpf.a                 11 BPFOBJ := $(BPFOBJ_OUTPUT)libbpf.a
 12 BPF_DESTDIR := $(BPFOBJ_OUTPUT)                    12 BPF_DESTDIR := $(BPFOBJ_OUTPUT)
 13 BPF_INCLUDE := $(BPF_DESTDIR)/include              13 BPF_INCLUDE := $(BPF_DESTDIR)/include
 14 INCLUDES := -I$(OUTPUT) -I$(BPF_INCLUDE) -I$(a     14 INCLUDES := -I$(OUTPUT) -I$(BPF_INCLUDE) -I$(abspath ../../include/uapi)
 15 CFLAGS := -g -Wall $(CLANG_CROSS_FLAGS)            15 CFLAGS := -g -Wall $(CLANG_CROSS_FLAGS)
 16 CFLAGS += $(EXTRA_CFLAGS)                          16 CFLAGS += $(EXTRA_CFLAGS)
 17 LDFLAGS += $(EXTRA_LDFLAGS)                        17 LDFLAGS += $(EXTRA_LDFLAGS)
 18 LDLIBS += -lelf -lz                                18 LDLIBS += -lelf -lz
 19                                                    19 
 20 # Try to detect best kernel BTF source             20 # Try to detect best kernel BTF source
 21 KERNEL_REL := $(shell uname -r)                    21 KERNEL_REL := $(shell uname -r)
 22 VMLINUX_BTF_PATHS := $(if $(O),$(O)/vmlinux)       22 VMLINUX_BTF_PATHS := $(if $(O),$(O)/vmlinux)            \
 23         $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)     23         $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \
 24         ../../../vmlinux /sys/kernel/btf/vmlin     24         ../../../vmlinux /sys/kernel/btf/vmlinux        \
 25         /boot/vmlinux-$(KERNEL_REL)                25         /boot/vmlinux-$(KERNEL_REL)
 26 VMLINUX_BTF_PATH := $(or $(VMLINUX_BTF),$(firs     26 VMLINUX_BTF_PATH := $(or $(VMLINUX_BTF),$(firstword                            \
 27                                           $(wi     27                                           $(wildcard $(VMLINUX_BTF_PATHS))))
 28                                                    28 
 29 ifeq ($(V),1)                                      29 ifeq ($(V),1)
 30 Q =                                                30 Q =
 31 else                                               31 else
 32 Q = @                                              32 Q = @
 33 MAKEFLAGS += --no-print-directory                  33 MAKEFLAGS += --no-print-directory
 34 submake_extras := feature_display=0                34 submake_extras := feature_display=0
 35 endif                                              35 endif
 36                                                    36 
 37 .DELETE_ON_ERROR:                                  37 .DELETE_ON_ERROR:
 38                                                    38 
 39 .PHONY: all clean runqslower libbpf_hdrs           39 .PHONY: all clean runqslower libbpf_hdrs
 40 all: runqslower                                    40 all: runqslower
 41                                                    41 
 42 runqslower: $(OUTPUT)/runqslower                   42 runqslower: $(OUTPUT)/runqslower
 43                                                    43 
 44 clean:                                             44 clean:
 45         $(call QUIET_CLEAN, runqslower)            45         $(call QUIET_CLEAN, runqslower)
 46         $(Q)$(RM) -r $(BPFOBJ_OUTPUT) $(BPFTOO     46         $(Q)$(RM) -r $(BPFOBJ_OUTPUT) $(BPFTOOL_OUTPUT)
 47         $(Q)$(RM) $(OUTPUT)*.o $(OUTPUT)*.d        47         $(Q)$(RM) $(OUTPUT)*.o $(OUTPUT)*.d
 48         $(Q)$(RM) $(OUTPUT)*.skel.h $(OUTPUT)v     48         $(Q)$(RM) $(OUTPUT)*.skel.h $(OUTPUT)vmlinux.h
 49         $(Q)$(RM) $(OUTPUT)runqslower              49         $(Q)$(RM) $(OUTPUT)runqslower
 50         $(Q)$(RM) -r .output                       50         $(Q)$(RM) -r .output
 51                                                    51 
 52 libbpf_hdrs: $(BPFOBJ)                             52 libbpf_hdrs: $(BPFOBJ)
 53                                                    53 
 54 $(OUTPUT)/runqslower: $(OUTPUT)/runqslower.o $     54 $(OUTPUT)/runqslower: $(OUTPUT)/runqslower.o $(BPFOBJ)
 55         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS     55         $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
 56                                                    56 
 57 $(OUTPUT)/runqslower.o: runqslower.h $(OUTPUT)     57 $(OUTPUT)/runqslower.o: runqslower.h $(OUTPUT)/runqslower.skel.h              \
 58                         $(OUTPUT)/runqslower.b     58                         $(OUTPUT)/runqslower.bpf.o | libbpf_hdrs
 59                                                    59 
 60 $(OUTPUT)/runqslower.bpf.o: $(OUTPUT)/vmlinux.     60 $(OUTPUT)/runqslower.bpf.o: $(OUTPUT)/vmlinux.h runqslower.h | libbpf_hdrs
 61                                                    61 
 62 $(OUTPUT)/%.skel.h: $(OUTPUT)/%.bpf.o | $(BPFT     62 $(OUTPUT)/%.skel.h: $(OUTPUT)/%.bpf.o | $(BPFTOOL)
 63         $(QUIET_GEN)$(BPFTOOL) gen skeleton $<     63         $(QUIET_GEN)$(BPFTOOL) gen skeleton $< > $@
 64                                                    64 
 65 $(OUTPUT)/%.bpf.o: %.bpf.c $(BPFOBJ) | $(OUTPU     65 $(OUTPUT)/%.bpf.o: %.bpf.c $(BPFOBJ) | $(OUTPUT)
 66         $(QUIET_GEN)$(CLANG) -g -O2 --target=b     66         $(QUIET_GEN)$(CLANG) -g -O2 --target=bpf $(INCLUDES)                  \
 67                  -c $(filter %.c,$^) -o $@ &&      67                  -c $(filter %.c,$^) -o $@ &&                                 \
 68         $(LLVM_STRIP) -g $@                        68         $(LLVM_STRIP) -g $@
 69                                                    69 
 70 $(OUTPUT)/%.o: %.c | $(OUTPUT)                     70 $(OUTPUT)/%.o: %.c | $(OUTPUT)
 71         $(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES)     71         $(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES) -c $(filter %.c,$^) -o $@
 72                                                    72 
 73 $(OUTPUT) $(BPFOBJ_OUTPUT) $(BPFTOOL_OUTPUT):      73 $(OUTPUT) $(BPFOBJ_OUTPUT) $(BPFTOOL_OUTPUT):
 74         $(QUIET_MKDIR)mkdir -p $@                  74         $(QUIET_MKDIR)mkdir -p $@
 75                                                    75 
 76 $(OUTPUT)/vmlinux.h: $(VMLINUX_BTF_PATH) | $(O     76 $(OUTPUT)/vmlinux.h: $(VMLINUX_BTF_PATH) | $(OUTPUT) $(BPFTOOL)
 77 ifeq ($(VMLINUX_H),)                               77 ifeq ($(VMLINUX_H),)
 78         $(Q)if [ ! -e "$(VMLINUX_BTF_PATH)" ]      78         $(Q)if [ ! -e "$(VMLINUX_BTF_PATH)" ] ; then \
 79                 echo "Couldn't find kernel BTF     79                 echo "Couldn't find kernel BTF; set VMLINUX_BTF to"            \
 80                         "specify its location.     80                         "specify its location." >&2;                           \
 81                 exit 1;\                           81                 exit 1;\
 82         fi                                         82         fi
 83         $(QUIET_GEN)$(BPFTOOL) btf dump file $     83         $(QUIET_GEN)$(BPFTOOL) btf dump file $(VMLINUX_BTF_PATH) format c > $@
 84 else                                               84 else
 85         $(Q)cp "$(VMLINUX_H)" $@                   85         $(Q)cp "$(VMLINUX_H)" $@
 86 endif                                              86 endif
 87                                                    87 
 88 $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(L     88 $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OUTPUT)
 89         $(Q)$(MAKE) $(submake_extras) -C $(LIB     89         $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) \
 90                     DESTDIR=$(BPFOBJ_OUTPUT) p     90                     DESTDIR=$(BPFOBJ_OUTPUT) prefix= $(abspath $@) install_headers
 91                                                    91 
 92 $(DEFAULT_BPFTOOL): | $(BPFTOOL_OUTPUT)            92 $(DEFAULT_BPFTOOL): | $(BPFTOOL_OUTPUT)
 93         $(Q)$(MAKE) $(submake_extras) -C ../bp     93         $(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) bootstrap
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php