1.3. tmp linux-headers-5.19.2

#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2017-2022 Random Crew
# Distributed under the terms of MIT License.


MY_P="${PN%-headers}-${PV}"
MY_PD="${MY_P}"

Configuration

src_config()
{
    return
}

Compilation

src_compile()
{
    make mrproper
}

Installation

src_install()
{
    make headers

    find usr/include -type f ! -name '*.h' -delete
    mkdir -p ${D}/${PREFIX}
    cp -r usr/include ${D}/${PREFIX}/
}

Links

url.lfs.stage1: https://linuxfromscratch.org/lfs/view/11.2/chapter05/linux-headers.html