1.3. tmp linux-headers-5.16.9

#!/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 -name '.*' -delete
    rm usr/include/Makefile
    mkdir -p ${D}/${PREFIX}
    cp -r usr/include ${D}/${PREFIX}/
}

Links

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