--- zzzz-none-000/linux-4.4.271/include/uapi/Kbuild 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/uapi/Kbuild 2023-04-19 10:22:30.000000000 +0000 @@ -13,3 +13,13 @@ header-y += xen/ header-y += scsi/ header-y += misc/ + +avm_labile_headers += drivers/ + +# Check existence of avm_labile_headers ('wildcard' functions requires complete +# path, 'header-y' forbids absolute path names). +header-y += $(patsubst $(srctree)/include/uapi/%,%,\ + $(wildcard \ + $(addprefix $(srctree)/include/uapi/,\ + $(avm_labile_headers)))) +