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.
As for "Build kernel with sources" :
$ ./ltib -m prep -p kernel
The sources may be found in <LTIB_DIR>/rpm/BUILD/~linux
can you please check this post of mine as well?
For some reason the uname -r and the kernel I have under /lib/modules seem different.
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.
The kernel sources are located on host Linux (<LTIB_DIR>/rpm/BUILD/~linux)
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?
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.
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.
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.
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.