LTIB make equivalent commands

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LTIB make equivalent commands

2,071 Views
terateller
Contributor II

Dear All,

I have a few questions regarding "ltib" commands.

What are the ltib equivalents for the following make commands?

1) make clean (to clean all builds)

There is a distclean,, there is a rebuilt and there is an erase! What is it here?

2)Build kernel with sources(for crypto package) and also have all kernel headers.

I guess this is 'make headers_install' ..what is the ltib equivalent?

3)Finally, I need to change the kernel configuration file. I usually change this file manually and then use

make  <defconfig filename>. How can this be done without the menus in ltib?

Thanks.

Tags (1)
9 Replies

1,324 Views
Yuri
NXP Employee
NXP Employee

As for "Build kernel with sources" :

$ ./ltib -m prep -p kernel

The sources may be found in <LTIB_DIR>/rpm/BUILD/~linux

1,324 Views
terateller
Contributor II

can you please check this post of mine as well?

Get the linux kernel headers

For some reason the uname -r and the kernel I have under /lib/modules seem different.

0 Kudos

1,324 Views
terateller
Contributor II

I did the following sequence of commands to build my uImage with sources:

./ltib -m config

./ltib -m prep -p kernel

./ltib

But when I booted I saw that the uname -r and the kernel under /lib/modules were different. Also I don't see any sources. I need to compile a small kernel code but I do not have the headers. Please help.

0 Kudos

1,324 Views
Yuri
NXP Employee
NXP Employee

The kernel sources are located on host Linux (<LTIB_DIR>/rpm/BUILD/~linux)

0 Kudos

1,324 Views
LeonardoSandova
Specialist I

Tera,

IF you distclean, then run the above steps, flash the rootfs and rootfs/boot/uImage and u-boot, do you still see the mismatch between kernel and rootfs?

1,324 Views
terateller
Contributor II

Dear Leonardo,

Thank you for the reply. Just to be sure, I did a ./ltib -m distclean and after that compiled the uImage and uboot. I still see that the uname -r returns 3.0.35-2666-gbdde708 while I have 3.0.35-2508-g54750ff version in my /lib/modules  :smileysad: please help. I am unable to proceed. I am trying to compile a package which requires the kernel headers on my board.

@Yuri Muhin: I need the headers on my target :smileysad:

Thanks.

0 Kudos

1,324 Views
LeonardoSandova
Specialist I

What if you create a soflink on the /lib/modules? something like

ln -s 3.0.35-2508-g54750ff 3.0.35-2666-gbdde708

BTW, this thread is diverging, so please create a new thread for this concrete question.

0 Kudos

1,324 Views
LeonardoSandova
Specialist I

Makefile                LTIB

----------               ---------

clean                    -m clean -p <package>

headers_install    I do not think there is one, unless you create a spec for it....

menuconfig          ./ltib -m config, then check the 'Configure the kernel'

In case you change the .config manually, LTIB will ignore your changes it and fetch the one specify on the spec.

1,324 Views
terateller
Contributor II

Thanks a lot.  I am a little confused. What is package in the context of kernel sources? Is crypto a package? Also to do a "make clean" do I uses ltib distclean? I want to rebuild the whole kernel.

0 Kudos