Files
Naitik Bharadiya 04e6f16c0c Kbuild : Use no-export-headers to avoid exporting headers
Add header files under no-export-headers in Kbuild to avoid
exporting specific headers files.

Scan no-export-headers files in Kbuild and add it to exclude list in
kernel_headers.py to avoid exporting header files.

Change-Id: Ice052b5428ef1f7445c5ad2e68c7da8fa7e249ae
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
[schikk@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-06-01 00:30:34 -07:00

35 lines
895 B
Makefile

# UAPI Header export list
ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h),)
no-export-headers += a.out.h
endif
ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h),)
no-export-headers += kvm.h
endif
ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),)
no-export-headers += kvm_para.h
endif
no-export-headers += bcache.h
no-export-headers += cryptouser.h
no-export-headers += coresight-stm.h
no-export-headers += hash_info.h
no-export-headers += kcov.h
no-export-headers += keychord.h
no-export-headers += kfd_ioctl.h
no-export-headers += lightnvm.h
no-export-headers += module.h
no-export-headers += pr.h
no-export-headers += stm.h
no-export-headers += tee.h
no-export-headers += userio.h
no-export-headers += vsp1.h
no-export-headers += wil6210_uapi.h
ifeq ($(VSERVICES_SUPPORT), "")
include include/linux/Kbuild.vservices
endif