# We only contain headers, but we want to be an arch # specific package since SGX is only included on x86 %define debug_package %{nil} Name: sgx-compat-kernel-headers517 Version: 5.17 Release: 1 Summary: kernel headers for reproducible SGX enclaves # Sync from native kernel.spec License: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-2-Clause) AND ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) AND ((GPL-2.0-only WITH Linux-syscall-note) OR CDDL-1.0) AND ((GPL-2.0-only WITH Linux-syscall-note) OR Linux-OpenIB) AND ((GPL-2.0-only WITH Linux-syscall-note) OR MIT) AND ((GPL-2.0-or-later WITH Linux-syscall-note) OR BSD-3-Clause) AND ((GPL-2.0-or-later WITH Linux-syscall-note) OR MIT) AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Clear AND GFDL-1.1-no-invariants-or-later AND GPL-1.0-or-later AND (GPL-1.0-or-later OR BSD-3-Clause) AND (GPL-1.0-or-later WITH Linux-syscall-note) AND GPL-2.0-only AND (GPL-2.0-only OR Apache-2.0) AND (GPL-2.0-only OR BSD-2-Clause) AND (GPL-2.0-only OR BSD-3-Clause) AND (GPL-2.0-only OR CDDL-1.0) AND (GPL-2.0-only OR GFDL-1.1-no-invariants-or-later) AND (GPL-2.0-only OR GFDL-1.2-no-invariants-only) AND (GPL-2.0-only WITH Linux-syscall-note) AND GPL-2.0-or-later AND (GPL-2.0-or-later OR BSD-2-Clause) AND (GPL-2.0-or-later OR BSD-3-Clause) AND (GPL-2.0-or-later OR CC-BY-4.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH Linux-syscall-note) AND ISC AND LGPL-2.0-or-later AND (LGPL-2.0-or-later OR BSD-2-Clause) AND (LGPL-2.0-or-later WITH Linux-syscall-note) AND LGPL-2.1-only AND (LGPL-2.1-only OR BSD-2-Clause) AND (LGPL-2.1-only WITH Linux-syscall-note) AND LGPL-2.1-or-later AND (LGPL-2.1-or-later WITH Linux-syscall-note) AND (Linux-OpenIB OR GPL-2.0-only) AND (Linux-OpenIB OR GPL-2.0-only OR BSD-2-Clause) AND Linux-man-pages-copyleft AND MIT AND (MIT OR Apache-2.0) AND (MIT OR GPL-2.0-only) AND (MIT OR GPL-2.0-or-later) AND (MIT OR LGPL-2.1-only) AND (MPL-1.1 OR GPL-2.0-only) AND (X11 OR GPL-2.0-only) AND (X11 OR GPL-2.0-or-later) AND Zlib AND (copyleft-next-0.3.1 OR GPL-2.0-or-later) Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{version}.tar.xz # SGX is a technology that only exists in Intel x86 CPUs ExclusiveArch: x86_64 BuildRequires: sgx-srpm-macros BuildRequires: gcc BuildRequires: make %description The C header files that specify the interface between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the glibc package. This package variant is exclusively intended for the reprodicible build of SGX enclave code. %prep %autosetup -n linux-%{version} -p1 %build make mrproper make headers %install %__install -d %{buildroot}%{sgx_includedir}/kernel-%{version} cp -a usr/include/* %{buildroot}%{sgx_includedir}/kernel-%{version} rm -f %{buildroot}%{sgx_includedir}/kernel-%{version}/Makefile rm -f %{buildroot}%{sgx_includedir}/kernel-%{version}/headers_check.pl %files %license COPYING %dir %{sgx_prefix} %dir %{sgx_includedir}/kernel-%{version} %{sgx_includedir}/kernel-%{version}/asm %{sgx_includedir}/kernel-%{version}/asm-generic %{sgx_includedir}/kernel-%{version}/drm %{sgx_includedir}/kernel-%{version}/linux %{sgx_includedir}/kernel-%{version}/misc %{sgx_includedir}/kernel-%{version}/mtd %{sgx_includedir}/kernel-%{version}/rdma %{sgx_includedir}/kernel-%{version}/scsi %{sgx_includedir}/kernel-%{version}/sound %{sgx_includedir}/kernel-%{version}/video %{sgx_includedir}/kernel-%{version}/xen