__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# SPDX-License-Identifier: GPL-2.0
####
# kbuild: Generic definitions
# Convenient variables
comma := ,
quote := "
squote := '
empty :=
space := $(empty) $(empty)
space_escape := _-_SPACE_-_
pound := \#
define newline
endef
###
# Comparison macros.
# Usage: $(call test-lt, $(CONFIG_LLD_VERSION), 150000)
#
# Use $(intcmp ...) if supported. (Make >= 4.4)
# Otherwise, fall back to the 'test' shell command.
ifeq ($(intcmp 1,0,,,y),y)
test-ge = $(intcmp $(strip $1)0, $(strip $2)0,,y,y)
test-gt = $(intcmp $(strip $1)0, $(strip $2)0,,,y)
else
test-ge = $(shell test $(strip $1)0 -ge $(strip $2)0 && echo y)
test-gt = $(shell test $(strip $1)0 -gt $(strip $2)0 && echo y)
endif
test-le = $(call test-ge, $2, $1)
test-lt = $(call test-gt, $2, $1)
###
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
dot-target = $(dir $@).$(notdir $@)
###
# Name of target with a '.tmp_' as filename prefix. foo/bar.o => foo/.tmp_bar.o
tmp-target = $(dir $@).tmp_$(notdir $@)
###
# The temporary file to save gcc -MMD generated dependencies must not
# contain a comma
depfile = $(subst $(comma),_,$(dot-target).d)
###
# filename of target with directory and extension stripped
basetarget = $(basename $(notdir $@))
###
# real prerequisites without phony targets
real-prereqs = $(filter-out $(PHONY), $^)
###
# Escape single quote for use in echo statements
escsq = $(subst $(squote),'\$(squote)',$1)
###
# Quote a string to pass it to C files. foo => '"foo"'
stringify = $(squote)$(quote)$1$(quote)$(squote)
###
# The path to Kbuild or Makefile. Kbuild has precedence over Makefile.
kbuild-file = $(or $(wildcard $(src)/Kbuild),$(src)/Makefile)
###
# Read a file, replacing newlines with spaces
#
# Make 4.2 or later can read a file by using its builtin function.
ifneq ($(filter-out 4.0 4.1, $(MAKE_VERSION)),)
read-file = $(subst $(newline),$(space),$(file < $1))
else
read-file = $(shell cat $1 2>/dev/null)
endif
###
# Easy method for doing a status message
kecho := :
quiet_kecho := echo
silent_kecho := :
kecho := $($(quiet)kecho)
###
# filechk is used to check if the content of a generated file is updated.
# Sample usage:
#
# filechk_sample = echo $(KERNELRELEASE)
# version.h: FORCE
# $(call filechk,sample)
#
# The rule defined shall write to stdout the content of the new file.
# The existing file will be compared with the new one.
# - If no file exist it is created
# - If the content differ the new file is used
# - If they are equal no change, and no timestamp update
define filechk
$(check-FORCE)
$(Q)set -e; \
mkdir -p $(dir $@); \
trap "rm -f $(tmp-target)" EXIT; \
{ $(filechk_$(1)); } > $(tmp-target); \
if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then \
$(kecho) ' UPD $@'; \
mv -f $(tmp-target) $@; \
fi
endef
###
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj=
# Usage:
# $(Q)$(MAKE) $(build)=dir
build := -f $(srctree)/scripts/Makefile.build obj
###
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=
# Usage:
# $(Q)$(MAKE) $(clean)=dir
clean := -f $(srctree)/scripts/Makefile.clean obj
# pring log
#
# If quiet is "silent_", print nothing and sink stdout
# If quiet is "quiet_", print short log
# If quiet is empty, print short log and whole command
silent_log_print = exec >/dev/null;
quiet_log_print = $(if $(quiet_cmd_$1), echo ' $(call escsq,$(quiet_cmd_$1)$(why))';)
log_print = echo '$(pound) $(call escsq,$(or $(quiet_cmd_$1),cmd_$1 $@)$(why))'; \
echo ' $(call escsq,$(cmd_$1))';
# Delete the target on interruption
#
# GNU Make automatically deletes the target if it has already been changed by
# the interrupted recipe. So, you can safely stop the build by Ctrl-C (Make
# will delete incomplete targets), and resume it later.
#
# However, this does not work when the stderr is piped to another program, like
# $ make >&2 | tee log
# Make dies with SIGPIPE before cleaning the targets.
#
# To address it, we clean the target in signal traps.
#
# Make deletes the target when it catches SIGHUP, SIGINT, SIGQUIT, SIGTERM.
# So, we cover them, and also SIGPIPE just in case.
#
# Of course, this is unneeded for phony targets.
delete-on-interrupt = \
$(if $(filter-out $(PHONY), $@), \
$(foreach sig, HUP INT QUIT TERM PIPE, \
trap 'rm -f $@; trap - $(sig); kill -s $(sig) $$$$' $(sig);))
# print and execute commands
cmd = @$(if $(cmd_$(1)),set -e; $($(quiet)log_print) $(delete-on-interrupt) $(cmd_$(1)),:)
###
# if_changed - execute command if any prerequisite is newer than
# target, or command line has changed
# if_changed_dep - as if_changed, but uses fixdep to reveal dependencies
# including used config symbols
# if_changed_rule - as if_changed but execute rule instead
# See Documentation/kbuild/makefiles.rst for more info
ifneq ($(KBUILD_NOCMDDEP),1)
# Check if both commands are the same including their order. Result is empty
# string if equal. User may override this check using make KBUILD_NOCMDDEP=1
# If the target does not exist, the *.cmd file should not be included so
# $(savedcmd_$@) gets empty. Then, target will be built even if $(newer-prereqs)
# happens to become empty.
cmd-check = $(filter-out $(subst $(space),$(space_escape),$(strip $(savedcmd_$@))), \
$(subst $(space),$(space_escape),$(strip $(cmd_$1))))
else
# We still need to detect missing targets.
cmd-check = $(if $(strip $(savedcmd_$@)),,1)
endif
# Replace >$< with >$$< to preserve $ when reloading the .cmd file
# (needed for make)
# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
# (needed for make)
# Replace >'< with >'\''< to be able to enclose the whole string in '...'
# (needed for the shell)
make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
# Find any prerequisites that are newer than target or that do not exist.
# PHONY targets skipped in both cases.
# If there is no prerequisite other than phony targets, $(newer-prereqs) becomes
# empty even if the target does not exist. cmd-check saves this corner case.
newer-prereqs = $(filter-out $(PHONY),$?)
# It is a typical mistake to forget the FORCE prerequisite. Check it here so
# no more breakage will slip in.
check-FORCE = $(if $(filter FORCE, $^),,$(warning FORCE prerequisite is missing))
if-changed-cond = $(newer-prereqs)$(cmd-check)$(check-FORCE)
# Execute command if command has changed or prerequisite(s) are updated.
if_changed = $(if $(if-changed-cond),$(cmd_and_savecmd),@:)
cmd_and_savecmd = \
$(cmd); \
printf '%s\n' 'savedcmd_$@ := $(make-cmd)' > $(dot-target).cmd
# Execute the command and also postprocess generated .d dependencies file.
if_changed_dep = $(if $(if-changed-cond),$(cmd_and_fixdep),@:)
cmd_and_fixdep = \
$(cmd); \
$(objtree)/scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\
rm -f $(depfile)
# Usage: $(call if_changed_rule,foo)
# Will check if $(cmd_foo) or any of the prerequisites changed,
# and if so will execute $(rule_foo).
if_changed_rule = $(if $(if-changed-cond),$(rule_$(1)),@:)
###
# why - tell why a target got built
# enabled by make V=2
# Output (listed in the order they are checked):
# (1) - due to target is PHONY
# (2) - due to target missing
# (3) - due to: file1.h file2.h
# (4) - due to command line change
# (5) - due to missing .cmd file
# (6) - due to target not in $(targets)
# (1) PHONY targets are always build
# (2) No target, so we better build it
# (3) Prerequisite is newer than target
# (4) The command line stored in the file named dir/.target.cmd
# differed from actual command line. This happens when compiler
# options changes
# (5) No dir/.target.cmd file (used to store command line)
# (6) No dir/.target.cmd file and target not listed in $(targets)
# This is a good hint that there is a bug in the kbuild file
ifneq ($(findstring 2, $(KBUILD_VERBOSE)),)
_why = \
$(if $(filter $@, $(PHONY)),- due to target is PHONY, \
$(if $(wildcard $@), \
$(if $(newer-prereqs),- due to: $(newer-prereqs), \
$(if $(cmd-check), \
$(if $(savedcmd_$@),- due to command line change, \
$(if $(filter $@, $(targets)), \
- due to missing .cmd file, \
- due to $(notdir $@) not in $$(targets) \
) \
) \
) \
), \
- due to target missing \
) \
)
why = $(space)$(strip $(_why))
endif
###############################################################################
# delete partially updated (i.e. corrupted) files on error
.DELETE_ON_ERROR:
# do not delete intermediate files automatically
#
# .NOTINTERMEDIATE is more correct, but only available on newer Make versions.
# Make 4.4 introduced .NOTINTERMEDIATE, and it appears in .FEATURES, but the
# global .NOTINTERMEDIATE does not work. We can use it on Make > 4.4.
# Use .SECONDARY for older Make versions, but "newer-prereq" cannot detect
# deleted files.
ifneq ($(and $(filter notintermediate, $(.FEATURES)),$(filter-out 4.4,$(MAKE_VERSION))),)
.NOTINTERMEDIATE:
else
.SECONDARY:
endif
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| atomic | Folder | 0755 |
|
|
| basic | Folder | 0755 |
|
|
| clang-tools | Folder | 0755 |
|
|
| coccinelle | Folder | 0755 |
|
|
| dtc | Folder | 0755 |
|
|
| dummy-tools | Folder | 0755 |
|
|
| gcc-plugins | Folder | 0755 |
|
|
| gdb | Folder | 0755 |
|
|
| gendwarfksyms | Folder | 0755 |
|
|
| genksyms | Folder | 0755 |
|
|
| include | Folder | 0755 |
|
|
| ipe | Folder | 0755 |
|
|
| kconfig | Folder | 0755 |
|
|
| ksymoops | Folder | 0755 |
|
|
| mod | Folder | 0755 |
|
|
| package | Folder | 0755 |
|
|
| selinux | Folder | 0755 |
|
|
| tracing | Folder | 0755 |
|
|
| Kbuild.include | File | 9.88 KB | 0644 |
|
| Kconfig.include | File | 3.27 KB | 0644 |
|
| Lindent | File | 502 B | 0755 |
|
| Makefile | File | 2.08 KB | 0644 |
|
| Makefile.asm-headers | File | 3.38 KB | 0644 |
|
| Makefile.autofdo | File | 808 B | 0644 |
|
| Makefile.btf | File | 1.13 KB | 0644 |
|
| Makefile.build | File | 16.76 KB | 0644 |
|
| Makefile.clang | File | 1.66 KB | 0644 |
|
| Makefile.clean | File | 1.88 KB | 0644 |
|
| Makefile.compiler | File | 3.49 KB | 0644 |
|
| Makefile.debug | File | 1.36 KB | 0644 |
|
| Makefile.defconf | File | 1.04 KB | 0644 |
|
| Makefile.dtbinst | File | 1.03 KB | 0644 |
|
| Makefile.dtbs | File | 4.89 KB | 0644 |
|
| Makefile.extrawarn | File | 7.81 KB | 0644 |
|
| Makefile.gcc-plugins | File | 2.59 KB | 0644 |
|
| Makefile.headersinst | File | 2.88 KB | 0644 |
|
| Makefile.host | File | 6.02 KB | 0644 |
|
| Makefile.kasan | File | 3.67 KB | 0644 |
|
| Makefile.kcov | File | 333 B | 0644 |
|
| Makefile.kcsan | File | 1004 B | 0644 |
|
| Makefile.kmsan | File | 208 B | 0644 |
|
| Makefile.lib | File | 20.62 KB | 0644 |
|
| Makefile.modfinal | File | 2.77 KB | 0644 |
|
| Makefile.modinst | File | 4.04 KB | 0644 |
|
| Makefile.modpost | File | 4.85 KB | 0644 |
|
| Makefile.package | File | 9.27 KB | 0644 |
|
| Makefile.propeller | File | 1.45 KB | 0644 |
|
| Makefile.randstruct | File | 511 B | 0644 |
|
| Makefile.ubsan | File | 984 B | 0644 |
|
| Makefile.userprogs | File | 1.59 KB | 0644 |
|
| Makefile.vdsoinst | File | 1.06 KB | 0644 |
|
| Makefile.vmlinux | File | 3.32 KB | 0644 |
|
| Makefile.vmlinux_o | File | 3.37 KB | 0644 |
|
| as-version.sh | File | 2.03 KB | 0755 |
|
| asn1_compiler | File | 34.37 KB | 0755 |
|
| asn1_compiler.c | File | 35.32 KB | 0644 |
|
| bloat-o-meter | File | 3.77 KB | 0755 |
|
| bootgraph.pl | File | 5.64 KB | 0755 |
|
| bpf_doc.py | File | 33.46 KB | 0755 |
|
| build-version | File | 177 B | 0755 |
|
| cc-can-link.sh | File | 166 B | 0755 |
|
| cc-version.sh | File | 1.36 KB | 0755 |
|
| check-git | File | 298 B | 0755 |
|
| check-sysctl-docs | File | 3.66 KB | 0755 |
|
| check-uapi.sh | File | 15.05 KB | 0755 |
|
| check-variable-fonts.sh | File | 4.65 KB | 0755 |
|
| check_extable.sh | File | 4.93 KB | 0755 |
|
| checkdeclares.pl | File | 1.1 KB | 0755 |
|
| checkincludes.pl | File | 1.94 KB | 0755 |
|
| checkkconfigsymbols.py | File | 15.75 KB | 0755 |
|
| checkpatch.pl | File | 233.11 KB | 0755 |
|
| checkstack.pl | File | 5.96 KB | 0755 |
|
| checksyscalls.sh | File | 7.51 KB | 0755 |
|
| checktransupdate.py | File | 8.91 KB | 0755 |
|
| checkversion.pl | File | 2.16 KB | 0755 |
|
| cleanfile | File | 3.46 KB | 0755 |
|
| cleanpatch | File | 5.06 KB | 0755 |
|
| coccicheck | File | 7.79 KB | 0755 |
|
| config | File | 4.78 KB | 0755 |
|
| const_structs.checkpatch | File | 1.59 KB | 0644 |
|
| decode_stacktrace.sh | File | 8.49 KB | 0755 |
|
| decodecode | File | 4.86 KB | 0755 |
|
| depmod.sh | File | 723 B | 0755 |
|
| dev-needs.sh | File | 6.07 KB | 0755 |
|
| diffconfig | File | 4.12 KB | 0755 |
|
| documentation-file-ref-check | File | 5.67 KB | 0755 |
|
| extract-ikconfig | File | 1.74 KB | 0755 |
|
| extract-module-sig.pl | File | 3.66 KB | 0755 |
|
| extract-sys-certs.pl | File | 3.75 KB | 0755 |
|
| extract-vmlinux | File | 1.66 KB | 0755 |
|
| extract_xc3028.pl | File | 44.62 KB | 0755 |
|
| faddr2line | File | 10.8 KB | 0755 |
|
| file-size.sh | File | 86 B | 0755 |
|
| find-unused-docs.sh | File | 1.27 KB | 0755 |
|
| gcc-x86_32-has-stack-protector.sh | File | 405 B | 0755 |
|
| gcc-x86_64-has-stack-protector.sh | File | 195 B | 0755 |
|
| gen-randstruct-seed.sh | File | 228 B | 0755 |
|
| gen_packed_field_checks.c | File | 1.19 KB | 0644 |
|
| generate_builtin_ranges.awk | File | 15.3 KB | 0755 |
|
| generate_initcall_order.pl | File | 5.95 KB | 0755 |
|
| generate_rust_analyzer.py | File | 6.17 KB | 0755 |
|
| generate_rust_target | File | 522.16 KB | 0755 |
|
| generate_rust_target.rs | File | 8.57 KB | 0644 |
|
| get_abi.pl | File | 25.36 KB | 0755 |
|
| get_dvb_firmware | File | 24.54 KB | 0755 |
|
| get_feat.pl | File | 14.61 KB | 0755 |
|
| get_maintainer.pl | File | 67.87 KB | 0755 |
|
| gfp-translate | File | 2.08 KB | 0755 |
|
| git.orderFile | File | 564 B | 0644 |
|
| head-object-list.txt | File | 1.28 KB | 0644 |
|
| headerdep.pl | File | 3.5 KB | 0755 |
|
| headers_install.sh | File | 2.71 KB | 0755 |
|
| insert-sys-cert | File | 21.66 KB | 0755 |
|
| insert-sys-cert.c | File | 13.08 KB | 0644 |
|
| install.sh | File | 1.06 KB | 0755 |
|
| jobserver-exec | File | 2.56 KB | 0755 |
|
| kallsyms | File | 21.82 KB | 0755 |
|
| kallsyms.c | File | 17.7 KB | 0644 |
|
| kernel-doc | File | 77.71 KB | 0755 |
|
| ld-version.sh | File | 1.82 KB | 0755 |
|
| leaking_addresses.pl | File | 14.59 KB | 0755 |
|
| link-vmlinux.sh | File | 7.59 KB | 0755 |
|
| macro_checker.py | File | 4.1 KB | 0755 |
|
| make_fit.py | File | 10.45 KB | 0755 |
|
| makelst | File | 808 B | 0755 |
|
| markup_oops.pl | File | 7.92 KB | 0755 |
|
| min-tool-version.sh | File | 630 B | 0755 |
|
| misc-check | File | 509 B | 0755 |
|
| mkcompile_h | File | 642 B | 0755 |
|
| mksysmap | File | 2.01 KB | 0755 |
|
| mkuboot.sh | File | 414 B | 0755 |
|
| module-common.c | File | 480 B | 0644 |
|
| module.lds | File | 845 B | 0644 |
|
| module.lds.S | File | 1.67 KB | 0644 |
|
| modules-check.sh | File | 443 B | 0755 |
|
| nsdeps | File | 1.56 KB | 0644 |
|
| objdiff | File | 2.83 KB | 0755 |
|
| objdump-func | File | 848 B | 0755 |
|
| orc_hash.sh | File | 316 B | 0644 |
|
| pahole-version.sh | File | 269 B | 0755 |
|
| parse-maintainers.pl | File | 4.54 KB | 0755 |
|
| patch-kernel | File | 9.95 KB | 0755 |
|
| profile2linkerlist.pl | File | 414 B | 0755 |
|
| prune-kernel | File | 912 B | 0755 |
|
| recordmcount.c | File | 17.51 KB | 0644 |
|
| recordmcount.h | File | 19.37 KB | 0644 |
|
| recordmcount.pl | File | 17.34 KB | 0755 |
|
| relocs_check.sh | File | 717 B | 0755 |
|
| remove-stale-files | File | 1.08 KB | 0755 |
|
| rust_is_available.sh | File | 10.18 KB | 0755 |
|
| rust_is_available_bindgen_0_66.h | File | 54 B | 0644 |
|
| rust_is_available_bindgen_libclang.h | File | 91 B | 0644 |
|
| rust_is_available_bindgen_libclang_concat.h | File | 69 B | 0644 |
|
| rust_is_available_test.py | File | 20.35 KB | 0755 |
|
| rustc-llvm-version.sh | File | 482 B | 0755 |
|
| rustc-version.sh | File | 598 B | 0755 |
|
| rustdoc_test_builder.rs | File | 3.25 KB | 0644 |
|
| rustdoc_test_gen.rs | File | 9.47 KB | 0644 |
|
| setlocalversion | File | 5.2 KB | 0755 |
|
| show_delta | File | 3.04 KB | 0755 |
|
| sign-file | File | 26.12 KB | 0755 |
|
| sign-file.c | File | 10.4 KB | 0644 |
|
| sorttable | File | 22.28 KB | 0755 |
|
| sorttable.c | File | 22.86 KB | 0644 |
|
| spdxcheck-test.sh | File | 284 B | 0644 |
|
| spdxcheck.py | File | 15.73 KB | 0755 |
|
| spdxexclude | File | 417 B | 0644 |
|
| spelling.txt | File | 35.64 KB | 0644 |
|
| sphinx-pre-install | File | 25.11 KB | 0755 |
|
| split-man.pl | File | 604 B | 0755 |
|
| ssl-common.h | File | 678 B | 0644 |
|
| stackdelta | File | 1.84 KB | 0755 |
|
| stackusage | File | 794 B | 0755 |
|
| subarch.include | File | 658 B | 0644 |
|
| syscall.tbl | File | 16.99 KB | 0644 |
|
| syscallhdr.sh | File | 1.89 KB | 0755 |
|
| syscallnr.sh | File | 1.45 KB | 0755 |
|
| syscalltbl.sh | File | 1.82 KB | 0755 |
|
| tags.sh | File | 11.25 KB | 0755 |
|
| target.json | File | 513 B | 0644 |
|
| tools-support-relr.sh | File | 726 B | 0755 |
|
| unifdef.c | File | 34.84 KB | 0644 |
|
| ver_linux | File | 2.59 KB | 0755 |
|
| verify_builtin_ranges.awk | File | 9.12 KB | 0755 |
|
| xen-hypercalls.sh | File | 386 B | 0755 |
|
| xz_wrap.sh | File | 3.44 KB | 0755 |
|