UPDATE:
I was able to get the "linux/mxcfb.h" and other related headers in the sysroot
by adding the following lines in conf/local.conf
while compiling the image.
IMAGE_INSTALL_append += "\
kernel-dev \
kernel-devsrc \
"
EXTRA_IMAGE_FEATURES += "\
dev-pkgs \
"
Which adds the headers in kernel source directory /opt/fsl-imx-x114.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/src/kernel/include/
But the cross-compiler still isn't able to find them,
as they are not in ../sysroot/../usr/include/
"-I/.." flag while compiling the pragram didn't help either.
What I'm trying to do is,
compile the imx-test programs in a standalone environment.
The readme.txt inside the imx-test source directory instructs as below.
2. Build Steps
==============To build all the tests and bootloaders, run make as shown:
make PLATFORM=MXC27530EVB LINUXPATH=/home/marsha/LINUX2.6/linux \
KBUILD_OUTPUT=/home/marsha/LINUX2.6/kbuild/mxc27530evb \
CROSS_COMPILE=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-Note that you have to specify 4 things: PLATFORM, LINUXPATH, KBUILD_OUTPUT, and CROSS_COMPILE.
The build results will end up in the platform directory.
To build a single test add the test dir name to the above like:
make PLATFORM=MXC27530EVB LINUXPATH=/home/marsha/LINUX2.6/linux \
KBUILD_OUTPUT=/home/marsha/LINUX2.6/kbuild/mxc27530evb \
CROSS_COMPILE=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le- \
mxc_mu_test
I've tried building it as per these instructions,
But it still isn't able to find the headers.
Please help asap.
Hello,
Please look at the following threads how to build i.MX test package.
Hope it helps.
Building imx-tests on ubuntu hardfloat rootfs for imx6d/q
[imx-tests] Compile mxc_vpu_test
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer
button. Thank you!