[U-Boot] [u-boot][coreboot-x86] Incremental Make fails

Hi, When doing make for coreboot-x86, in arch/x86/lib/Makefile it re-generates libgcc.a from the original toolchain libgcc.a and did some patching for certain libgcc functions. And this seems having some issues when you try to do incremental compilation.
Steps to reproduce the issue: 1. Setup toolchain 2. make coreboot-x86 # sucess for the first time 3. make # second make fails with message: make[1]: Entering directory `/home/hua/git/u-boot/arch/x86/lib' make[1]: *** No rule to make target `.depend', needed by `built-in.o'. Stop. make[1]: Leaving directory `/home/hua/git/u-boot/arch/x86/lib'
Can anyone give some hints in how to solve this issue?
Regards, Yanghao

Hi Hua,
As far as I tested, the problem you mentioned did not happen.
On Thu, 10 Apr 2014 14:59:33 +0800 Hua Yanghao huayanghao@gmail.com wrote:
Hi, When doing make for coreboot-x86, in arch/x86/lib/Makefile it re-generates libgcc.a from the original toolchain libgcc.a and did some patching for certain libgcc functions. And this seems having some issues when you try to do incremental compilation.
Steps to reproduce the issue:
- Setup toolchain
- make coreboot-x86 # sucess for the first time
Strange. "make coreboot-x86" is not supported anymore.
Now, we must do "make coreboot-x86_config all" instead.
- make # second make fails with message:
make[1]: Entering directory `/home/hua/git/u-boot/arch/x86/lib' make[1]: *** No rule to make target `.depend', needed by `built-in.o'. Stop. make[1]: Leaving directory `/home/hua/git/u-boot/arch/x86/lib'
Strange again.
".depend" files are not used any more. (They were used in the old build system prior to Kbuild.)
Can anyone give some hints in how to solve this issue?
Which version are you using?
I guess you are not using the latest version in the git repository.
The most recommended solution is to use the latest version.
Best Regards Masahiro Yamada

Hi Masahiro,
Strange. "make coreboot-x86" is not supported anymore.
Now, we must do "make coreboot-x86_config all" instead.
We are still using U-boot 2014.01, which seems to be the latest stable release, isn't it?
- make # second make fails with message:
make[1]: Entering directory `/home/hua/git/u-boot/arch/x86/lib' make[1]: *** No rule to make target `.depend', needed by `built-in.o'. Stop. make[1]: Leaving directory `/home/hua/git/u-boot/arch/x86/lib'
Strange again.
".depend" files are not used any more. (They were used in the old build system prior to Kbuild.)
Are you sure? I can see the .depend files is created all over the places. For both ARM & x86.
Can anyone give some hints in how to solve this issue?
Which version are you using?
U-boot 2014.01
I guess you are not using the latest version in the git repository.
The most recommended solution is to use the latest version.
Indeed the latest version have things fixed. :-) Will switch over.
Best Regards Masahiro Yamada

Hi Hua,
On Thu, 10 Apr 2014 16:32:32 +0800 Hua Yanghao huayanghao@gmail.com wrote:
Hi Masahiro,
Strange. "make coreboot-x86" is not supported anymore.
Now, we must do "make coreboot-x86_config all" instead.
We are still using U-boot 2014.01, which seems to be the latest stable release, isn't it?
- make # second make fails with message:
make[1]: Entering directory `/home/hua/git/u-boot/arch/x86/lib' make[1]: *** No rule to make target `.depend', needed by `built-in.o'. Stop. make[1]: Leaving directory `/home/hua/git/u-boot/arch/x86/lib'
Strange again.
".depend" files are not used any more. (They were used in the old build system prior to Kbuild.)
Are you sure? I can see the .depend files is created all over the places. For both ARM & x86.
Can anyone give some hints in how to solve this issue?
Which version are you using?
U-boot 2014.01
I guess you are not using the latest version in the git repository.
The most recommended solution is to use the latest version.
Indeed the latest version have things fixed. :-) Will switch over.
Fetch the source tree by git clone:
git clone git://git.denx.de/u-boot.git
A big change happened to the U-Boot build system at v2014-rc1, which is right after v2014.01.
Unlike Linux Kernel, the stable releases are not maintained in U-Boot. v2014.01 is just a snapshot of the mainline of develepment 3 months ago.
If you want to get a support from the community, I recommend you to use u-boot/master branch.
Best Regards Masahiro Yamada
participants (2)
-
Hua Yanghao
-
Masahiro Yamada