1
0

release 6.15.8

This commit is contained in:
2025-07-26 13:24:48 +03:00
parent 48372baf14
commit 4d05ae4de6
27 changed files with 206 additions and 244 deletions

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
linux (6.15.8-1) sid; urgency=medium
* New upstream stable update:
https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.15.8
-- Konstantin Demin <rockdrilla@gmail.com> Sat, 26 Jul 2025 12:31:39 +0300
linux (6.15.7-1) sid; urgency=medium linux (6.15.7-1) sid; urgency=medium
* New upstream stable update: * New upstream stable update:

View File

@@ -2359,7 +2359,6 @@ CONFIG_IP_VS_PROTO_AH_ESP=y
CONFIG_KEXEC_CORE=y CONFIG_KEXEC_CORE=y
CONFIG_LZ4HC_COMPRESS=m CONFIG_LZ4HC_COMPRESS=m
CONFIG_LZ4_COMPRESS=m CONFIG_LZ4_COMPRESS=m
# CONFIG_MDIO_BUS is not set
CONFIG_MFD_CORE=m CONFIG_MFD_CORE=m
CONFIG_ND_BTT=m CONFIG_ND_BTT=m
CONFIG_ND_PFN=m CONFIG_ND_PFN=m

View File

@@ -8817,7 +8817,6 @@ CONFIG_MADERA_IRQ=m
CONFIG_MAPPING_DIRTY_HELPERS=y CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_MCTP_FLOWS=y CONFIG_MCTP_FLOWS=y
CONFIG_MDIO=m CONFIG_MDIO=m
CONFIG_MDIO_BUS=m
CONFIG_MDIO_BUS_MUX=m CONFIG_MDIO_BUS_MUX=m
CONFIG_MDIO_CAVIUM=m CONFIG_MDIO_CAVIUM=m
CONFIG_MDIO_I2C=m CONFIG_MDIO_I2C=m

View File

@@ -3956,7 +3956,6 @@ CONFIG_LZ4HC_COMPRESS=m
CONFIG_LZ4_COMPRESS=m CONFIG_LZ4_COMPRESS=m
CONFIG_MAPPING_DIRTY_HELPERS=y CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_MCTP_FLOWS=y CONFIG_MCTP_FLOWS=y
CONFIG_MDIO_BUS=m
CONFIG_MFD_CORE=m CONFIG_MFD_CORE=m
CONFIG_MOUSE_PS2_SMBUS=y CONFIG_MOUSE_PS2_SMBUS=y
CONFIG_ND_BTT=m CONFIG_ND_BTT=m

View File

@@ -4081,6 +4081,7 @@ CONFIG_LRU_GEN_WALKS_MMU=y
CONFIG_LZ4_DECOMPRESS=y CONFIG_LZ4_DECOMPRESS=y
CONFIG_LZO_COMPRESS=y CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y CONFIG_LZO_DECOMPRESS=y
CONFIG_MDIO_BUS=m
CONFIG_MDIO_DEVRES=m CONFIG_MDIO_DEVRES=m
CONFIG_MEMORY_BALLOON=y CONFIG_MEMORY_BALLOON=y
CONFIG_MEMORY_ISOLATION=y CONFIG_MEMORY_ISOLATION=y

View File

@@ -5,12 +5,15 @@ VPATH = $(top_rulesdir)/$(OUTDIR) $(top_srcdir)/$(OUTDIR)
SHELL = /bin/sh -e SHELL = /bin/sh -e
srcdir := $(top_srcdir)/$(OUTDIR)
objdir := $(CURDIR)
CC = $(CROSS_COMPILE)gcc CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++ CXX = $(CROSS_COMPILE)g++
PKG_CONFIG = $(CROSS_COMPILE)pkg-config PKG_CONFIG = $(CROSS_COMPILE)pkg-config
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -Wall CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -Wall
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) \ CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) \
-I$(top_srcdir)/$(OUTDIR) \ -I$(srcdir) \
-I$(top_srcdir)/debian/build/build-tools/$(OUTDIR) \ -I$(top_srcdir)/debian/build/build-tools/$(OUTDIR) \
-I$(top_srcdir)/scripts/include \ -I$(top_srcdir)/scripts/include \
-isystem $(top_srcdir)/debian/build/build-tools/include -isystem $(top_srcdir)/debian/build/build-tools/include
@@ -20,45 +23,90 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
installdir ?= $(prefix)/$(OUTDIR) installdir ?= $(prefix)/$(OUTDIR)
all: all-local all-recursive all: all-local all-recursive
clean: clean-recursive
install: install-local install-recursive install: install-local install-recursive
%-recursive: %-recursive:
+@list='$(SUBDIRS)'; \ +@list='$(SUBDIRS)'; \
for i in $$list ; do \ for subdir in $$list; do \
echo "Making $* in $$i" ; \ echo "Making $* in $$subdir"; \
mkdir -p "$$i" ; \ mkdir -p $$subdir; \
$(MAKE) -C "$$i" \ $(MAKE) -C $$subdir -f $(top_rulesdir)/$(OUTDIR)/$$subdir/Makefile OUTDIR=$(OUTDIR)/$$subdir $*; \
-f $(top_rulesdir)/$(OUTDIR)/$$i/Makefile \
OUTDIR=$(OUTDIR)/$$i \
$* ; \
done done
all-local: $(PROGS) all-local: $(PROGS) $(KBUILD_PROGS)
install-local: install-local-progs install-local-scripts install-local-data install-local: install-local-progs install-local-scripts install-local-data
install-local-progs: $(PROGS) install-local-progs: $(PROGS) $(KBUILD_PROGS)
@for p in $^; do \ @for p in $^; do \
echo " install -m755 '$$p' '$(DESTDIR)/$(installdir)'"; \ echo " install -m755 '$$p' '$(DESTDIR)/$(installdir)'"; \
install -D -m755 "$$p" "$(DESTDIR)/$(installdir)/$$(basename "$$p")" ; \ install -D -m755 "$$p" "$(DESTDIR)/$(installdir)/$$(basename $$p)"; \
done done
SCRIPTS_REAL = $(wildcard $(addprefix $(top_srcdir)/$(OUTDIR)/,$(SCRIPTS))) SCRIPTS_REAL = $(wildcard $(addprefix $(srcdir)/,$(SCRIPTS)))
install-local-scripts: $(SCRIPTS_REAL) install-local-scripts: $(SCRIPTS_REAL)
@for p in $^; do \ @for p in $^; do \
echo " install -m755 '$$p' '$(DESTDIR)/$(installdir)'"; \ echo " install -m755 '$$p' '$(DESTDIR)/$(installdir)'"; \
install -D -m755 \ install -D -m755 \
-s --strip-program $(top_srcdir)/debian/bin/fix-shebang \ -s --strip-program $(top_srcdir)/debian/bin/fix-shebang \
"$$p" "$(DESTDIR)/$(installdir)/$$(basename "$$p")" ; \ "$$p" "$(DESTDIR)/$(installdir)/$$(basename $$p)"; \
done done
DATA_REAL = $(wildcard $(addprefix $(top_srcdir)/$(OUTDIR)/,$(DATA))) DATA_REAL = $(wildcard $(addprefix $(srcdir)/,$(DATA)))
install-local-data: $(DATA_REAL) install-local-data: $(DATA_REAL)
@for p in $^; do \ @for p in $^; do \
echo " install -m644 '$$p' '$(DESTDIR)/$(installdir)'"; \ echo " install -m644 '$$p' '$(DESTDIR)/$(installdir)'"; \
install -D -m644 "$$p" "$(DESTDIR)/$(installdir)/$$(basename "$$p")" ; \ install -D -m644 "$$p" "$(DESTDIR)/$(installdir)/$$(basename $$p)"; \
done done
# Invoke upstream makefile with common required variables, not
# including architecture and toolchain options
MAKE_UPSTREAM_BASE = +$(MAKE_UPSTREAM_ENV) $(MAKE) -C $(srcdir) \
prefix=/usr \
bindir=$(or $(bindir),/usr/bin) \
libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
mandir=/usr/share/man \
DESTDIR=$(DESTDIR) \
O=$(objdir) \
STRIP=true \
V=1
# Invoke upstream makefile with common required variables
MAKE_UPSTREAM = $(MAKE_UPSTREAM_BASE) \
ARCH=$(KERNEL_ARCH) \
CC='$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)' \
CXX='$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)' \
LD=$(CROSS_COMPILE)ld \
PKG_CONFIG='$(PKG_CONFIG)'
MAKE_UPSTREAM_FORCE_CROSS_VARS = \
HOSTARCH=$(KERNEL_ARCH) \
HOSTAR=$(CROSS_COMPILE)ar \
HOSTCC='$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)' \
HOSTLD=$(CROSS_COMPILE)ld \
HOSTPKG_CONFIG=$(CROSS_COMPILE)pkg-config \
REALHOSTCC=gcc \
REALHOSTLD=ld
# Invoke upstream makefile with common required variables, forcing
# cross-build of a tool that expects to always be native
MAKE_UPSTREAM_FORCE_CROSS = $(MAKE_UPSTREAM_BASE) \
$(MAKE_UPSTREAM_FORCE_CROSS_VARS)
ifdef KBUILD_PROGS
# Invoke Kbuild for this directory, forcing cross-build of hostprogs
$(KBUILD_PROGS):
+$(MAKE) -C $(top_srcdir)/debian/build/build-tools \
-f $(top_srcdir)/scripts/Makefile.build \
srcroot=$(top_srcdir) \
srctree=$(top_srcdir) \
VPATH=$(top_srcdir) \
building_out_of_srctree=1 \
objtree=$(top_srcdir)/debian/build/build-tools \
obj=$(OUTDIR) \
KBUILD_VERBOSE=1 \
$(MAKE_UPSTREAM_FORCE_CROSS_VARS) \
$(addprefix $(OUTDIR)/,$@)
endif

View File

@@ -1,7 +1,4 @@
PROGS = \ KBUILD_PROGS = \
extract-cert extract-cert
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I$(top_srcdir)/scripts
extract-cert: LDLIBS += -lcrypto

View File

@@ -1,4 +1,11 @@
PROGS = \ PROGS = \
fixdep fixdep.host
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
# We build fixdep as fixdep.host to avoid overwriting the native build
# that Kbuild depends on
fixdep.host: fixdep.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
install-local-progs:
install -D -m755 fixdep.host $(DESTDIR)/$(installdir)/fixdep

View File

@@ -1,16 +1,3 @@
PROGS = genksyms KBUILD_PROGS = genksyms
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
genksyms: genksyms.o parse.tab.o lex.lex.o
lex.lex.o: keywords.c parse.tab.h
parse.tab.c: parse.y
$(YACC) -o$@ -t -l $<
parse.tab.h: parse.y
$(YACC) -o/dev/null --defines=$@ -t -l $<
lex.lex.c: lex.l
$(LEX) -o$@ -L $<

View File

@@ -1,16 +1,3 @@
PROGS = conf KBUILD_PROGS = conf
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
conf: conf.o confdata.o expr.o lexer.lex.o menu.o parser.tab.o preprocess.o symbol.o util.o
lexer.lex.o: parser.tab.h
%.lex.c: %.l
flex -o$@ -L $<
%.tab.c: %.y
bison -o$@ -t -l $<
%.tab.h: %.y
bison -o/dev/null --defines=$@ -t -l $<

View File

@@ -10,12 +10,12 @@ include $(top_rulesdir)/Makefile.inc
wrapperdir = $(top_rulesdir)/$(OUTDIR) wrapperdir = $(top_rulesdir)/$(OUTDIR)
modpost.real-%: modpost.real-%:
$(MAKE) -f $(wrapperdir)/Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/scripts/mod $(MAKE) -f $(wrapperdir)/Makefile.real TYPE=$* SOURCEDIR=$(srcdir)
%: %.o %: %.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
modpost-opts.h: $(top_srcdir)/scripts/mod/modpost.c modpost-opts.h: $(srcdir)/modpost.c
$(wrapperdir)/gendef.py $< > $@ $(wrapperdir)/gendef.py $< > $@
modpost.o: modpost.c modpost-opts.h modpost.o: modpost.c modpost-opts.h

View File

@@ -1,11 +1,5 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
# bootconfig does not support appending user CFLAGS or LDFLAGS,
# so we have to specify the include directory too.
MAKE_BOOTCONFIG := $(MAKE) -C $(top_srcdir)/tools/bootconfig \
O=$(CURDIR) \
CFLAGS='$(CFLAGS) $(CPPFLAGS) -Iinclude $(LDFLAGS)'
# Default target (all) includes running tests. If this is not wanted # Default target (all) includes running tests. If this is not wanted
# (e.g. for cross-builds), build the bootconfig target instead. # (e.g. for cross-builds), build the bootconfig target instead.
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
@@ -15,8 +9,8 @@ BUILD_TARGET := $(CURDIR)/bootconfig
endif endif
all: all:
$(MAKE_BOOTCONFIG) $(BUILD_TARGET) $(MAKE_UPSTREAM) $(BUILD_TARGET)
install: install:
mkdir -p $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)/usr/bin
$(MAKE_BOOTCONFIG) install $(MAKE_UPSTREAM) install

View File

@@ -1,23 +1,15 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
MAKE_BPFTOOL := +$(MAKE) -C $(top_srcdir)/$(OUTDIR) O=$(CURDIR)
MAKE_BPFTOOL += prefix=/usr
MAKE_BPFTOOL += mandir=/usr/share/man
MAKE_BPFTOOL += V=1
MAKE_BPFTOOL += ARCH=$(KERNEL_ARCH)
MAKE_BPFTOOL += EXTRA_CFLAGS='$(CFLAGS) $(CPPFLAGS)'
MAKE_BPFTOOL += EXTRA_LDFLAGS='$(LDFLAGS)'
# dynamically linking with libbfd is not allowed in Debian # dynamically linking with libbfd is not allowed in Debian
MAKE_BPFTOOL += feature-libbfd=0 feature-libbfd-liberty=0 feature-libbfd-liberty-z=0 MAKE_UPSTREAM += feature-libbfd=0 feature-libbfd-liberty=0 feature-libbfd-liberty-z=0
all: all:
$(MAKE_BPFTOOL) $(MAKE_UPSTREAM)
$(MAKE_BPFTOOL) doc $(MAKE_UPSTREAM) doc
# Check that bpftool wasn't linked with libbfd # Check that bpftool wasn't linked with libbfd
type ldd type ldd
! ldd $(CURDIR)/bpftool | grep -E '\blibbfd' ! ldd $(CURDIR)/bpftool | grep -E '\blibbfd'
install: install:
$(MAKE_BPFTOOL) install $(MAKE_UPSTREAM) install
$(MAKE_BPFTOOL) doc-install $(MAKE_UPSTREAM) doc-install

View File

@@ -3,14 +3,4 @@ PROGS = resolve_btfids
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
resolve_btfids: resolve_btfids:
# resolve_btfids always uses HOSTCC, HOSTLD, and HOSTAR; we need to $(MAKE_UPSTREAM_FORCE_CROSS)
# override these on the command line to make cross-builds work. But
# it also builds fixdep which still needs to be native in a
# cross-build. Set REALHOSTCC and REALHOSTLD variables which will be
# used for fixdep.
$(MAKE) -C $(top_srcdir)/tools/bpf/resolve_btfids O=$(CURDIR) \
HOSTCC=$(CC) HOSTCFLAGS='$(CFLAGS) $(CPPFLAGS)' \
HOSTLD=$(CROSS_COMPILE)ld KBUILD_HOSTLDFLAGS='$(LDFLAGS)' \
HOSTAR=$(CROSS_COMPILE)ar \
REALHOSTCC=gcc REALHOSTLD=ld \
V=1

View File

@@ -5,24 +5,10 @@ PROGS = \
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
objtool.real-%: objdir = $(CURDIR)/$*
objtool.real-%: objtool.real-%:
mkdir -p $* mkdir -p $*
# objtool always uses HOSTCC, HOSTLD, and HOSTAR; we need to override $(MAKE_UPSTREAM_FORCE_CROSS) ARCH=$*
# these on the command line to make cross-builds work. But it also
# builds fixdep which still needs to be native in a cross-build. Set
# REALHOSTCC and REALHOSTLD variables which will be used for fixdep.
$(MAKE) -C $(top_srcdir)/tools/objtool \
O=$(CURDIR)/$* \
HOSTARCH=$(KERNEL_ARCH) \
ARCH=$* \
HOSTCC=$(CC) \
KBUILD_HOSTCFLAGS='$(CFLAGS) $(CPPFLAGS)' \
HOSTLD=$(CROSS_COMPILE)ld \
KBUILD_HOSTLDFLAGS='$(LDFLAGS)' \
HOSTAR=$(CROSS_COMPILE)ar \
REALHOSTCC=gcc \
REALHOSTLD=ld \
V=1
ln -f $*/objtool $@ ln -f $*/objtool $@
%: %.o %: %.o

View File

@@ -7,48 +7,45 @@ ifneq ($(filter -ffile-prefix-map=%,$(CFLAGS)),)
CFLAGS += -fdebug-prefix-map=$(DEB_BUILD_PATH)=. CFLAGS += -fdebug-prefix-map=$(DEB_BUILD_PATH)=.
endif endif
MAKE_PERF := $(MAKE) O=$(CURDIR) prefix=/usr V=1 VF=1 ARCH=$(KERNEL_ARCH) WERROR=0 EXTRA_CFLAGS='$(CFLAGS) $(CPPFLAGS)' EXTRA_CXXFLAGS='$(CXXFLAGS) $(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' MAKE_UPSTREAM += VF=1 WERROR=0
# Disable Gtk UI until it's more usable # Disable Gtk UI until it's more usable
MAKE_PERF += NO_GTK2=1 MAKE_UPSTREAM += NO_GTK2=1
# Do not build the unversioned jvmti library # Do not build the unversioned jvmti library
MAKE_PERF += feature-jvmti=0 MAKE_UPSTREAM += feature-jvmti=0
MAKE_PERF += perfexecdir=lib/perf-core plugindir=/usr/lib/traceevent/plugins tipdir=share/doc/linux-perf perf_include_dir=include/perf perf_examples_dir=share/doc/linux-perf/examples MAKE_UPSTREAM += perfexecdir=lib/perf-core plugindir=/usr/lib/traceevent/plugins tipdir=share/doc/linux-perf perf_include_dir=include/perf perf_examples_dir=share/doc/linux-perf/examples
# perf can link against libcrypto if available, but the result is # perf can link against libcrypto if available, but the result is
# undistributable as GPL v2 and Apache 2.0 are not compatible without # undistributable as GPL v2 and Apache 2.0 are not compatible without
# an explicit exception. Override detection of libcrypto. # an explicit exception. Override detection of libcrypto.
MAKE_PERF += NO_LIBCRYPTO=1 MAKE_UPSTREAM += NO_LIBCRYPTO=1
# perf only links against libopencsd (coresight) if specifically enabled # perf only links against libopencsd (coresight) if specifically enabled
MAKE_PERF += CORESIGHT=1 MAKE_UPSTREAM += CORESIGHT=1
# Currently babeltrace support for `perf data' is not automatically detected. # Currently babeltrace support for `perf data' is not automatically detected.
MAKE_PERF += LIBBABELTRACE=1 MAKE_UPSTREAM += LIBBABELTRACE=1
# Build with asciidoctor, not asciidoc # Build with asciidoctor, not asciidoc
MAKE_PERF += USE_ASCIIDOCTOR=1 MAKE_UPSTREAM += USE_ASCIIDOCTOR=1
# Build with Python 3, not Python 2 # Build with Python 3, not Python 2
MAKE_PERF += PYTHON=/usr/bin/python3 MAKE_UPSTREAM += PYTHON=/usr/bin/python3
# Ensure the right options are picked up for libperl and libpython # Ensure the right options are picked up for libperl and libpython
export PERL5LIB=/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config export PERL5LIB=/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config
MAKE_PERF += PYTHON_CONFIG=$(CROSS_COMPILE)python3-config MAKE_UPSTREAM += PYTHON_CONFIG=$(CROSS_COMPILE)python3-config
# Explicitly set DEBUG=0. This is the default for perf itself, but # Explicitly set DEBUG=0. This is the default for perf itself, but
# it's not passed down to libapi and it uses the wrong compiler # it's not passed down to libapi and it uses the wrong compiler
# options unless it's explicitly set. # options unless it's explicitly set.
MAKE_PERF += DEBUG=0 MAKE_UPSTREAM += DEBUG=0
all: all:
# perf changes some default directories depending on whether DESTDIR is $(MAKE_UPSTREAM) -f Makefile.perf all
# set. We must define it even when building to avoid a rebuild when we $(MAKE_UPSTREAM) -C $(srcdir)/Documentation man
# run 'make install'.
+$(MAKE_PERF) -C $(top_srcdir)/tools/perf -f Makefile.perf all DESTDIR=dummy
+$(MAKE_PERF) -C $(top_srcdir)/tools/perf/Documentation man
# Check that perf didn't get linked against incompatibly-licensed libraries # Check that perf didn't get linked against incompatibly-licensed libraries
@if readelf -d $(CURDIR)/perf | sed -rne 's/.*NEEDED.*\[(.*)\]/\1/p' | grep -E '\blib(bfd|crypto)'; then \ @if readelf -d $(CURDIR)/perf | sed -rne 's/.*NEEDED.*\[(.*)\]/\1/p' | grep -E '\blib(bfd|crypto)'; then \
echo; \ echo; \
@@ -60,7 +57,7 @@ all:
grep __cxa_demangle $(CURDIR)/perf grep __cxa_demangle $(CURDIR)/perf
install: install:
+$(MAKE_PERF) -C $(top_srcdir)/tools/perf -f Makefile.perf install install-python_ext $(MAKE_UPSTREAM) -f Makefile.perf install install-python_ext
# Don't install a 'trace' alias yet: # Don't install a 'trace' alias yet:
# - We need a wrapper for it anyway, so there's little point adding a # - We need a wrapper for it anyway, so there's little point adding a
# versioned link # versioned link

View File

@@ -1,21 +1,11 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
MAKE_CPUPOWER := CFLAGS='$(CFLAGS) $(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' $(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) CPUFREQ_BENCH=false V=true mandir=/usr/share/man MAKE_UPSTREAM += CPUFREQ_BENCH=false V=true
MAKE_UPSTREAM += DEBUG=$(if $(filter noopt,$(DEB_BUILD_OPTIONS)),true,)
MAKE_CPUPOWER += DEBUG=$(if $(filter noopt,$(DEB_BUILD_OPTIONS)),true,) MAKE_UPSTREAM += CROSS='$(CROSS_COMPILE)'
# Don't strip binaries here; let dh_strip determine what to do
MAKE_CPUPOWER += STRIP=true
MAKE_CPUPOWER += CROSS='$(CROSS_COMPILE)'
MAKE_CPUPOWER += libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
all: all:
+$(MAKE_CPUPOWER) $(MAKE_UPSTREAM)
install: install:
+$(MAKE_CPUPOWER) install DESTDIR=$(DESTDIR) $(MAKE_UPSTREAM) install
clean:
+$(MAKE_CPUPOWER) clean

View File

@@ -1,15 +1,9 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
# Intel Speed Select Tool (ISST) bindir := /usr/sbin
MAKE_ISST := CFLAGS='$(CFLAGS) $(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' $(MAKE) -C $(top_srcdir)/tools/power/x86/intel-speed-select O=$(CURDIR)
MAKE_ISST += bindir=/usr/sbin V=1
all: all:
$(MAKE_ISST) $(MAKE_UPSTREAM)
install: install:
$(MAKE_ISST) install DESTDIR=$(DESTDIR) $(MAKE_UPSTREAM) install
clean:
$(MAKE_ISST) clean

View File

@@ -4,9 +4,5 @@ installdir = /usr/sbin
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
CPPFLAGS += -I$(top_srcdir)/tools/include $(PROGS):
CPPFLAGS += -DMSRHEADER='"$(top_srcdir)/arch/x86/include/asm/msr-index.h"' $(MAKE_UPSTREAM)
CPPFLAGS += -DINTEL_FAMILY_HEADER='"$(top_srcdir)/arch/x86/include/asm/intel-family.h"'
CPPFLAGS += -DBUILD_BUG_HEADER='"$(top_srcdir)/include/linux/build_bug.h"'
LDLIBS += -lcap -lrt

View File

@@ -4,5 +4,5 @@ installdir = /usr/sbin
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
CPPFLAGS += -I$(top_srcdir)/tools/include $(PROGS):
CPPFLAGS += -DMSRHEADER='"$(top_srcdir)/arch/x86/include/asm/msr-index.h"' $(MAKE_UPSTREAM)

View File

@@ -1,43 +1,3 @@
srcdir := $(top_srcdir)/tools/thermal SUBDIRS := lib thermometer tmon
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
MAKE_THERMAL_LIB = $(MAKE) -C $(srcdir)/lib \
O=$(CURDIR)/lib \
EXTRA_CFLAGS='$(CFLAGS) $(CPPFLAGS)' \
LDFLAGS='$(LDFLAGS)' \
SRCARCH=$(ARCH) \
V=1
# thermometer does not support OOT build, so we copy the
# source before building.
# thermometer does not support appending user CFLAGS or LDFLAGS,
# so we have to specify the include directory and libraries too.
# Use the static libthermal_tools so we don't have to support it
# as a shared library.
MAKE_THERMOMETER = $(MAKE) -C thermometer \
CC='$(CC)' CFLAGS='$(CFLAGS) $(CPPFLAGS) -I$(srcdir)/lib' \
LD='$(CROSS_COMPILE)-ld' LDFLAGS='$(LDFLAGS) $(CURDIR)/lib/libthermal_tools.a -lconfig'
# tmon does not support OOT build, so we copy the source before
# building. Use the make -I option to allow it to include other
# Makefiles in the source tree.
# tmon expects us to set INSTALL_ROOT instead of DESTDIR (?!).
MAKE_TMON = $(MAKE) -C tmon -I $(srcdir)/tmon \
INSTALL_ROOT=$(DESTDIR) \
CC='$(CC)' CFLAGS='$(CFLAGS) $(CPPFLAGS)' \
LDFLAGS='$(LDFLAGS)'
all:
mkdir -p lib
rsync -a $(srcdir)/thermometer $(srcdir)/tmon .
# We do not want a shared library, and the shared library link does
# not include LDFLAGS so blhc will complain about it
$(MAKE_THERMAL_LIB) fixdep
$(MAKE_THERMAL_LIB) $(CURDIR)/lib/libthermal_tools.a
$(MAKE_THERMOMETER)
$(MAKE_TMON)
install:
install -D -m755 thermometer/thermometer $(DESTDIR)/usr/bin/
$(MAKE_TMON) install

View File

@@ -0,0 +1,7 @@
include $(top_rulesdir)/Makefile.inc
all:
# We do not want a shared library, and the shared library link does
# not include LDFLAGS so blhc will complain about it
$(MAKE_UPSTREAM) fixdep
$(MAKE_UPSTREAM) $(objdir)/libthermal_tools.a

View File

@@ -0,0 +1,15 @@
PROGS = thermometer
installdir = /usr/bin
include $(top_rulesdir)/Makefile.inc
# thermometer does not support OOT build, so we copy the
# source before building.
real_srcdir := $(srcdir)
srcdir := $(objdir)
CPPFLAGS += -I$(real_srcdir)/../lib
LDFLAGS += -L$(objdir)/../lib
$(PROGS):
rsync -a $(real_srcdir)/ .
$(MAKE_UPSTREAM)

View File

@@ -0,0 +1,16 @@
PROGS = tmon
installdir = /usr/bin
include $(top_rulesdir)/Makefile.inc
# tmon does not support OOT build, so we copy the source before
# building. Use the make -I option to allow it to include other
# Makefiles in the source tree.
# tmon expects us to set INSTALL_ROOT instead of DESTDIR (?!).
real_srcdir := $(srcdir)
srcdir := $(objdir)
MAKE_UPSTREAM += -I $(real_srcdir) INSTALL_ROOT=$(DESTDIR)
$(PROGS):
rsync -a $(real_srcdir)/ .
$(MAKE_UPSTREAM)

View File

@@ -1,23 +1,17 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
# Upstream enables LTO by default, but we don't want it # Upstream enables LTO by default, but we don't want it. We need to
CFLAGS += -fno-lto # put -fno-lto in the CFLAGS *environment* variable so it comes after
# the -flto option but does not override other necessary options
# appended to CFLAGS by upstream.
MAKE_UPSTREAM_ENV = CFLAGS=-fno-lto
# Use the version of libcpupower that we just built # Use the version of libcpupower that we just built
CPPFLAGS += -I$(top_srcdir)/tools/power/cpupower/lib CPPFLAGS += -I$(top_srcdir)/tools/power/cpupower/lib
LDFLAGS += -L$(CURDIR)/../../power/cpupower LDFLAGS += -L$(CURDIR)/../../power/cpupower
MAKE_RTLA := +CFLAGS='$(CFLAGS) $(CPPFLAGS)' EXTRA_CFLAGS='$(CFLAGS) $(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' $(MAKE) -C $(top_srcdir)/$(OUTDIR) O=$(CURDIR)
MAKE_RTLA += LD='$(CROSS_COMPILE)ld'
MAKE_RTLA += PKG_CONFIG='$(PKG_CONFIG)'
MAKE_RTLA += STRIP=true
MAKE_RTLA += V=1
all: all:
$(MAKE_RTLA) $(MAKE_UPSTREAM)
install: install:
$(MAKE_RTLA) install $(MAKE_UPSTREAM) install
clean:
rm -rf *

View File

@@ -23,6 +23,3 @@ all:
install: install:
$(MAKE) V=1 install $(MAKE) V=1 install
clean:
rm -rf *

25
debian/rules.real vendored
View File

@@ -419,17 +419,20 @@ define make-tools
KERNEL_ARCH=$(KERNEL_ARCH) KERNEL_ARCH=$(KERNEL_ARCH)
endef endef
$(STAMPS_DIR)/build-tools-headers: BUILD_DIR_TOOLS = $(BUILD_DIR)/build-tools $(STAMPS_DIR)/prepare-build-tools: BUILD_DIR_TOOLS = $(BUILD_DIR)/build-tools
$(STAMPS_DIR)/build-tools-headers: $(STAMPS_DIR)/prepare-build-tools:
mkdir -p $(BUILD_DIR_TOOLS)/headers-tools mkdir -p $(BUILD_DIR_TOOLS)/headers-tools
$(MAKE) \ $(MAKE) \
ARCH=$(KERNEL_ARCH) \ ARCH=$(KERNEL_ARCH) \
O=$(BUILD_DIR_TOOLS)/headers-tools \ O=$(BUILD_DIR_TOOLS)/headers-tools \
INSTALL_HDR_PATH=$(CURDIR)/$(BUILD_DIR_TOOLS) \ INSTALL_HDR_PATH=$(CURDIR)/$(BUILD_DIR_TOOLS) \
headers_install headers_install
mkdir -p $(BUILD_DIR)/build-tools/scripts/basic
ln -f $(BUILD_DIR)/build-tools/headers-tools/scripts/basic/fixdep \
$(BUILD_DIR)/build-tools/scripts/basic/fixdep
@$(stamp) @$(stamp)
build_bpftool: $(STAMPS_DIR)/build-tools-headers build_bpftool: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/bpf/bpftool) $(call make-tools,tools/bpf/bpftool)
binary_bpftool: BPFTOOL_VERSION_MAJOR = $(shell sed -ne 's,^#define LIBBPF_MAJOR_VERSION \(.*\)$$,\1,p' tools/lib/bpf/libbpf_version.h) binary_bpftool: BPFTOOL_VERSION_MAJOR = $(shell sed -ne 's,^#define LIBBPF_MAJOR_VERSION \(.*\)$$,\1,p' tools/lib/bpf/libbpf_version.h)
@@ -442,7 +445,7 @@ binary_bpftool: build_bpftool
$(call make-tools,tools/bpf/bpftool) install $(call make-tools,tools/bpf/bpftool) install
$(dh_binary_post) $(dh_binary_post)
build_kbuild: $(STAMPS_DIR)/build-tools-headers build_kbuild: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,certs) $(call make-tools,certs)
$(call make-tools,scripts) $(call make-tools,scripts)
$(call make-tools,tools/bpf/resolve_btfids) $(call make-tools,tools/bpf/resolve_btfids)
@@ -459,7 +462,7 @@ binary_kbuild: build_kbuild
$(dh_binary_post) $(dh_binary_post)
build_cpupower: $(STAMPS_DIR)/build-cpupower build_cpupower: $(STAMPS_DIR)/build-cpupower
$(STAMPS_DIR)/build-cpupower: $(STAMPS_DIR)/build-tools-headers $(STAMPS_DIR)/build-cpupower: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/power/cpupower) $(call make-tools,tools/power/cpupower)
ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),) ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),)
$(call make-tools,tools/power/x86) $(call make-tools,tools/power/x86)
@@ -490,7 +493,7 @@ endif
binary_perf build_perf: export _PYTHON_SYSCONFIGDATA_NAME = _sysconfigdata__$(DEB_HOST_MULTIARCH) binary_perf build_perf: export _PYTHON_SYSCONFIGDATA_NAME = _sysconfigdata__$(DEB_HOST_MULTIARCH)
build_perf: $(STAMPS_DIR)/build-tools-headers build_perf: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/perf) $(call make-tools,tools/perf)
binary_perf: DH_COMPRESS_ARGS = -Xtips.txt binary_perf: DH_COMPRESS_ARGS = -Xtips.txt
@@ -504,7 +507,7 @@ binary_perf: build_perf
dh_python3 /usr/lib/perf-core/scripts/python/Perf-Trace-Util/lib/ dh_python3 /usr/lib/perf-core/scripts/python/Perf-Trace-Util/lib/
$(dh_binary_post) $(dh_binary_post)
build_usbip: $(STAMPS_DIR)/build-tools-headers build_usbip: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/usb/usbip) $(call make-tools,tools/usb/usbip)
binary_usbip: DIR = $(CURDIR)/debian/usbip-tmp binary_usbip: DIR = $(CURDIR)/debian/usbip-tmp
@@ -516,7 +519,7 @@ binary_usbip: build_usbip
$(call make-tools,tools/usb/usbip) install DESTDIR=$(DIR) $(call make-tools,tools/usb/usbip) install DESTDIR=$(DIR)
$(dh_binary_post) $(dh_binary_post)
build_hyperv-daemons: $(STAMPS_DIR)/build-tools-headers build_hyperv-daemons: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/hv) $(call make-tools,tools/hv)
binary_hyperv-daemons: build_hyperv-daemons binary_hyperv-daemons: build_hyperv-daemons
@@ -530,7 +533,7 @@ binary_hyperv-daemons: build_hyperv-daemons
done done
$(dh_binary_post) $(dh_binary_post)
build_rtla: $(STAMPS_DIR)/build-tools-headers $(STAMPS_DIR)/build-cpupower build_rtla: $(STAMPS_DIR)/prepare-build-tools $(STAMPS_DIR)/build-cpupower
$(call make-tools,tools/tracing/rtla) $(call make-tools,tools/tracing/rtla)
binary_rtla: build_rtla binary_rtla: build_rtla
@@ -538,7 +541,7 @@ binary_rtla: build_rtla
$(call make-tools,tools/tracing/rtla) install $(call make-tools,tools/tracing/rtla) install
$(dh_binary_post) $(dh_binary_post)
build_sdsi: $(STAMPS_DIR)/build-tools-headers build_sdsi: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/arch/x86/intel_sdsi) $(call make-tools,tools/arch/x86/intel_sdsi)
binary_sdsi: build_sdsi binary_sdsi: build_sdsi
@@ -546,7 +549,7 @@ binary_sdsi: build_sdsi
$(call make-tools,tools/arch/x86/intel_sdsi) install $(call make-tools,tools/arch/x86/intel_sdsi) install
$(dh_binary_post) $(dh_binary_post)
build_misc-tools: $(STAMPS_DIR)/build-tools-headers build_misc-tools: $(STAMPS_DIR)/prepare-build-tools
$(call make-tools,tools/bootconfig) $(call make-tools,tools/bootconfig)
$(call make-tools,tools/firmware) $(call make-tools,tools/firmware)
$(call make-tools,tools/thermal) $(call make-tools,tools/thermal)