This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5749/Can't compile U-boot

Hello Support!!

I have the similar problem like in my post about Kernel is here: e2e.ti.com/.../3436824

I would like to use cross compilation on my host machine based on Ubuntu 18.04. I use ti-processor-sdk-linux-am57xx-evm-06.03.00.106

My compiller is : arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-1ubuntu1~18.04) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I change a top make file in directory U-boot:

# Make variables (CC, etc...)
AS        = $(CROSS_COMPILE)as
LD        = $(CROSS_COMPILE)ld
CC        = $(CROSS_COMPILE)gcc-8
CPP        = $(CC) -E
AR        = $(CROSS_COMPILE)gcc-ar-8
NM        = $(CROSS_COMPILE)gcc-nm-8

I do:

1.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- clean

2.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- defconfig KBUILD_DEFCONFIG=am57xx_evm_defconfig

3.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

But after that i have a error like this:

scripts/kconfig/conf  --syncconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target «include/config/auto.conf», needed by «include/config/uboot.release».  Stop.

BR

Oleg

 

 

 

  • My apologize..I was wrong

    I am forgot to make a changes in : SDK../ti-processor-sdk-linux-am57xx-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/scripts/Makefile.autoconf

    # in arch/$(ARCH)/config.mk
    CC        = $(CROSS_COMPILE)gcc-8

    Everithing compile is fine :)

    BR

    Oleg