Centos-kernel-stream-9/drivers
Patrick Talbert 86008ba43a Merge: Fix failure when building kernel modules using a separate output directory [rhel-9.8]
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7244

JIRA: https://issues.redhat.com/browse/RHEL-107194

This Merge Request intends to fix an error with the buildcheck test QE runs. It builds the kernel using a separate output directory for the build artifacts. The core of the problem is that some backports in RHEL 9 are already using a new way to reference the source directory used upstream, but those backports failed to bring the necessary kbuild changes to use it. The core of the Merge Request here is commit "kbuild: use $(src) instead of $(srctree)/$(src) for source directory", which is the main change required. All other changes are dependencies/pre-requisites or fixes to this change. With changes below, using the build with a separate output directory is then fixed.

- Makefile: add $(srctree) to dependency of compile_commands.json target (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: scripts/gdb: bring the "abspath" back (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: Use $(obj)/%.cc to fix host C++ module builds (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src) (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: use $(src) instead of $(srctree)/$(src) for source directory (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: use $(obj)/ instead of $(src)/ for common pattern rules (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- kbuild: do not add $(srctree) or $(objtree) to header search paths (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- arch: use $(obj)/ instead of $(src)/ for preprocessed linker scripts (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- arm64: vdso32: Remove unused vdso32-offsets.h (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- staging: vc04_services: interface: Drop include Makefile directive (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- staging: vc04_services: vchiq-mmal: Drop include Makefile directive (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- staging: vc04_services: bcm2835-camera: Drop include Makefile directive (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- staging: vc04_services: bcm2835-audio: Drop include Makefile directive (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- certs: check-in the default x509 config file (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- sparc: move the install rule to arch/sparc/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- riscv: move the (z)install rules to arch/riscv/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- powerpc: move the install rule to arch/powerpc/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- powerpc: make the install target not depend on any build artifact (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- powerpc: remove unused zInstall target from arch/powerpc/boot/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- nios2: move the install rule to arch/nios2/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]
- ARM: 9102/1: move theinstall rules to arch/arm/Makefile (Herton R. Krzesinski) [[RHEL-107194](https://issues.redhat.com/browse/RHEL-107194)]

Signed-off-by: Herton R. Krzesinski <herton@redhat.com>

Approved-by: Tony Camuso <tcamuso@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>
Approved-by: Jan Stancek <jstancek@redhat.com>
Approved-by: David Arcari <darcari@redhat.com>
Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: Vladis Dronov <vdronov@redhat.com>
Approved-by: Michal Schmidt <mschmidt@redhat.com>
Approved-by: José Expósito <jexposit@redhat.com>
Approved-by: Eric Auger <eric.auger@redhat.com>
Approved-by: John W. Linville <linville@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Patrick Talbert <ptalbert@redhat.com>
2025-09-06 10:41:43 -04:00
..
accel accel/ivpu: Fix warning in ivpu_gem_bo_free() 2025-08-12 19:04:24 +02:00
accessibility
acpi Merge: HyperV rebase to kernel 6.16-rc1 2025-07-15 15:53:50 -03:00
amba
android
ata
atm
auxdisplay
base Merge: ALSA - update drivers for 9.7 - upstream 6.15 2025-07-07 16:55:54 -03:00
bcma
block loop: use kiocb helpers to fix lockdep warning 2025-08-04 22:42:15 +08:00
bluetooth Revert "Bluetooth: btusb: add sysfs attribute to control USB alt setting" 2025-07-08 11:10:56 -05:00
bus
cdrom
char Merge: Update support for Arm FF-A firmware interface. 2025-09-06 10:41:39 -04:00
clk
clocksource
comedi
connector
counter
cpufreq Merge: update cpufreq to match upstream v6.15 2025-08-06 18:26:10 -03:00
cpuidle
crypto kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2025-08-19 20:06:24 -03:00
cxl
dax fs: claw back a few FMODE_* bits 2025-07-11 07:21:34 -04:00
dca
devfreq
dio
dma
dma-buf udmabuf: Restore ubuf->unpin_list initialization 2025-08-19 16:25:36 +02:00
dpll dpll: zl3073x: ZL3073X_I2C and ZL3073X_SPI should depend on NET 2025-08-12 12:01:25 +02:00
edac
eisa
extcon
firewire
firmware Merge: Update support for Arm FF-A firmware interface. 2025-09-06 10:41:39 -04:00
fpga
fsi
fwctl
gnss
gpio
gpu Merge: Fix failure when building kernel modules using a separate output directory [rhel-9.8] 2025-09-06 10:41:43 -04:00
greybus
hid Merge: Fix failure when building kernel modules using a separate output directory [rhel-9.8] 2025-09-06 10:41:43 -04:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c Merge: i2c-mlxbf: driver update to Linux v6.16 (CS9) 2025-08-19 16:32:59 -07:00
i3c
idle
iio
infiniband Merge: mlx5: drivers update up to Linux v6.15 2025-08-18 07:21:59 -07:00
input Input: synaptics - fix crash when enabling pass-through port 2025-07-08 08:22:58 +00:00
interconnect
iommu Merge: KVM: Performance Enhanced Refresh PCI Translation 2025-07-21 18:52:36 -03:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media treewide: Switch/rename to timer_delete[_sync]() 2025-07-14 22:49:53 -03:00
memory
memstick treewide: Switch/rename to timer_delete[_sync]() 2025-07-14 22:49:53 -03:00
message
mfd
misc Merge: USB/TB code rebase of supported drivers to upstream v6.15 2025-07-28 12:55:37 -03:00
mmc
most
mtd
mux mux: Add support for reading mux state from consumer DT node 2025-08-07 11:00:15 -04:00
net Merge: Fix failure when building kernel modules using a separate output directory [rhel-9.8] 2025-09-06 10:41:43 -04:00
nfc
ntb
nubus
nvdimm
nvme nvme-multipath: fix suspicious RCU usage warning 2025-07-09 10:29:20 -07:00
nvmem
of
opp
parisc
parport
pci Merge: HyperV rebase to kernel 6.16-rc1 2025-07-15 15:53:50 -03:00
pcmcia
perf
phy phy: Fix error handling in tegra_xusb_port_init 2025-07-14 22:49:55 -03:00
pinctrl
platform Merge: dell_rbu: Fix list usage 2025-07-07 16:55:58 -03:00
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2025-08-19 20:06:24 -03:00
sh
siox
slimbus
soc Merge: soc/tegra: pmc: Add SD wake event for Tegra234 2025-08-30 14:45:02 +00:00
soundwire soundwire: Revert "soundwire: qcom: Add set_channel_map api support" 2025-07-31 09:58:39 +02:00
spi spi: Introduce spi_get_device_match_data() helper 2025-08-12 11:45:36 +02:00
spmi
ssb
staging kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2025-08-19 20:06:24 -03:00
target
tc
tee
thermal
thunderbolt thunderbolt: Do not add non-active NVM if NVM upgrade is disabled for retimer 2025-07-14 22:49:52 -03:00
tty
ufs Merge: CVE-2025-21739 kernel: scsi: ufs: core: Fix use-after free in init error and remove paths 2025-08-19 16:32:56 -07:00
uio
usb usb: hub: Fix flushing of delayed work used for post resume purposes 2025-07-15 09:13:01 -03:00
vdpa
vfio
vhost
video Merge: HyperV rebase to kernel 6.16-rc1 2025-07-15 15:53:50 -03:00
virt
virtio virtio_ring: Fix error reporting in virtqueue_resize 2025-07-08 11:59:40 +02:00
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig dpll: Add basic Microchip ZL3073x support 2025-08-12 11:45:36 +02:00
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2025-08-19 20:06:24 -03:00