# This file declares functions to install the kernel headers for linux # Copyright 2007 Yann E. MORIN # Licensed under the GPL v2. See COPYING in the root of this package CT_DoKernelTupleValues() { : } # Download the kernel do_kernel_get() { CT_Fetch HURD CT_Fetch GNUMACH CT_Fetch MIG } # Extract kernel do_kernel_extract() { # TBD verify linux_disable_build_relocs is run CT_ExtractPatch HURD CT_ExtractPatch GNUMACH CT_ExtractPatch MIG } # Install kernel headers using headers_install from kernel sources. do_kernel_headers() { CT_DoStep INFO "Installing kernel headers" for component in gnumach mig hurd; do local build_dir="${CT_BUILD_DIR}/${component}" local src_dir="${CT_SRC_DIR}/${component}" CT_mkdir_pushd "${build_dir}" CT_DoLog EXTRA "crupest PATH $PATH" case ${component} in gnumach) CT_DoLog EXTRA "Installing GNU Mach headers" CT_DoExecLog ALL \ ${src_dir}/configure \ --host="${CT_TARGET}" \ --prefix="/usr" CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install-data ;; mig) CT_DoLog EXTRA "Installing GNU MIG" CT_DoExecLog ALL \ ${src_dir}/configure \ --target="${CT_TARGET}" \ --prefix="/usr" CT_DoExecLog ALL \ make TARGET_CFLAGS="-isysroot ${CT_SYSROOT_DIR}" install ;; hurd) CT_DoLog EXTRA "Installing Hurd headers" CT_DoExecLog ALL \ ${src_dir}/configure \ --host="${CT_TARGET}" \ --prefix="/usr" CT_DoExecLog ALL make prefix="${CT_SYSROOT_DIR}/usr" install-data-local-headers ;; esac CT_Popd done CT_EndStep }