Saturday, December 26, 2020

Chapter 14 : Installation of Linux API Headers

Hi,

In this chapter we are going to compile linux API headers.

Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 5.8.3
- You should be logged in as lfs user, when you perform the actions described here.
- Change directory to the sources folder (/mnt/lfs/sources)

Before we proceed further, let us make "lfs" user a sudo user.

Please check out one of my posts to make a user a sudo user using the following link given below..

Creating a directory "/usr" in /mnt/lfs

$ cd $LFS
$ sudo mkdir usr

The above command would prompt to key in the password, provide the one associated with the user account.

Let the user "lfs" own the directory /mtn/lfs/usr

$sudo chown lfs /mnt/lfs/usr

Now login back as "lfs" user and perform the following actions...

$ cd $LFS/sources

Unpack the package tar ball linux-5.8.3.tar.xz

At the time of writing, this package was at version 5.8.3, please check the version when you perform the following command.

$ tar -xvf linux-5.8.3.tar.xz

Change directory to linux-5.8.3

$ cd linux-5.8.3

The extracted package may or may not contain some stale files, we got be sure that there are no such files while compiling this package... to make sure the extracted folder do not contain any stale files, use the following command.

$ make mrproper

Should not be having any problem in executing above command.

Now execute the following set of commands to complete the linux API installation.

$ make headers
$ find usr/include -name '.*' -delete
$ rm usr/include/Makefile
$ cp -rv usr/include $LFS/usr

if you like a detailed explanation on how to install linux API headers, you can refer the following link...




No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...