[coreboot] Problem of compiling the new architecture

Aaron Durbin adurbin at google.com
Thu Feb 9 16:06:04 CET 2017


On Thu, Feb 9, 2017 at 6:49 AM, Maxim Gusev via coreboot
<coreboot at coreboot.org> wrote:
> Hello!
>
> Please help to solve one problem...
> When I am trying to compile the sources of my specific architecture, my
> compiler tries to build "src/cpu/x86/lapic/boot_cpu.c".
>
> "CC         bootblock/commonlib/cbfs.o
> CC         bootblock/commonlib/lz4_wrapper.o
> CC         bootblock/commonlib/mem_pool.o
> CC         bootblock/commonlib/region.o
> CC         bootblock/console/die.o
> CC         bootblock/console/post.o
> CC         bootblock/cpu/x86/lapic/boot_cpu.o"
>
> But it is not x86 compatible arch. How to escape this dirs?
>
> As I can see in src/cpu/x86/lapic/Makefile.inc there is a bootblock-y +=
> boot_cpu.c so it will be always in the bootblock stage (with any arch)?
> I think the compiler should see only the src/cpu/MY_ARCH/lapic/Makefile.inc.
> What shell I do?

$ git grep lapic | grep Makefile

You'll see that either a cpu Makefile is adding that generic x86
directory or some chipset Makefile. Double check what you are building
and follow the Makefile dependencies.

>
> Thanks!
>
> Regards,
> Maxim
>
> --
> coreboot mailing list: coreboot at coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot



More information about the coreboot mailing list