I want to further reduce the kernel and rootfs of the core-image-minimal build to adapt to our minimal application. The core-image-minimal build does not create a build directory and vmlinux so I cannot use ksize.py to examine it. Is there any solution for this?
Asked
Active
Viewed 491 times
1 Answers
0
You could try:
devtool modify linux-imx
devtool build linux-imx
The kernel could be something else than linux-imx
Go to the kernel build directory. I find it easier to look for the 'built-in.o' file than to remember the path.
cd build
find . -name 'built-in.o'
cd to something like tmp/work/.../linux-imx/../build
I think 'ksize.py' doesn't run well with python3.
python2 .../sources/poky/scripts/tiny/ksize.py

vermaete
- 1,330
- 1
- 17
- 28
-
In the Dunfell release of yocto, ksize is working with Python3. But, it looks like (at least for the kernel I'm using) the built-in.o files are now renamed ot built-in.a. – vermaete May 05 '20 at 15:17