2.1. linux-headers-5.5.3

#!/bin/sh
# Copyright © 1999-2020 Gerard Beekmans
# Copyright © 2017-2020 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}/include
    cp -r usr/include/* ${D}/${PREFIX}/include
}

Build code

linux-headers.build
pass1.sh

Other files

meta.txt

Links

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