On 11/24/2011 10:27 AM, Lambrecht Jürgen wrote:
> I have a strange error during the kernel build (see below): aparently, 
> the architecture is not specified ?? (see "-march=" below)
> Where is the 'arch' type specified for the kernel in ltib?
> (In my platform main.lkc, LINTARCH=arm. So that is OK.)
Look in the kernel source, specificially arch/arm/Makefile - depending
on the version you'll see KBUILD_CFLAGS define dusing $(arch-y) and
$(tune-y) which are set based on CONFIG_CPU_XXX being set.

You might want to also build your kernel, then look for the line "+ make
ARCH=arm 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin//' uImage" that builds
uImage.  Open up another shell, then execute "./ltib -m shell" and cd
into your kernel build directory (rpm/build/kernel-xxx usually), and
execute the make target that build uImage.  However add "V=1" after the
make; this causes the build to show you the compiler command line so you
can see the -mcpu= and -march= selections your kernel is making. 
Remember to exit this new shell, or "ltib" will fail to build (due to
.lock_file existing).

Hope this helps.

-- 
Peter Barada
[email protected]


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to