Hello all.
Time for a newbie question. I have followed instructions on
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_the_SDK
as well as
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Linux_Host_Configuration
in order to be able to port u-boot etc. to a custom board (AM3352 ZCZ).
During this process I discover that every time i "make" something, make compiles *all* the files, whatsoever.
For example, this command:
/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00$ make ARCH=arm CROSS_COMPILE=/home/sitara/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- am335x_evm
get's all the files recompiled every time. Why?
I tried to get some info by adding debug flag -d to make and then grep'ing the output and searching for "is newer". These are some of the lines which came up:
========================================
Prerequisite `env_embedded.o' is newer than target `envcrc'.
Prerequisite `envcrc.o' is newer than target `envcrc'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/generated/
generic-asm-offsets.h' is newer than target `start.o'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/config.h'
is newer than target `start.o'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/generated/
timestamp_autogenerated.h' is newer than target `start.o'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/config
.h' is newer than target `clock.o'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/genera
ted/generic-asm-offsets.h' is newer than target `clock.o'.
Prerequisite `/home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include/config
.h' is newer than target `sys_info.o'.
========================================
Looking at the latest files in /home/sitara/ti-sdk-am335x-evm-06.00.00.00/board-support/u-boot-2013.01.01-psp06.00.00.00/include reveals that these files are re-made:
autoconf.mk.dep
autoconf.mk
config.h
config.mk
Perhaps this is the reason for all the re-make?
How can I solve this. If course I don't want make to make everything everytime.
I haven't touched anything inside Makefile or alike.
Tnx