UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor w18335101121
Visitor
341 Views
Registered: ‎06-24-2018

arm-trusted-firmware version 2018.1 compilation problem

hi all:

 

when I get the arm-trusted-firmware version 2018.1 in my workspace,and bitbake  arm-trusted-firmware,  there show the below message:

 

ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /repo/xcs-build/build/zynqmp-mimo-standard_rootfs/bitbake_build/tmp/work/zynqmp_mimo-wrs-linux/arm-trusted-firmware/1.1+xilinx+gitAUTOINC+df4a7e97d5-r0/temp/do_compile/log.do_compile.13985)
ERROR: Logfile of failure stored in: /repo/xcs-build/build/zynqmp-mimo-standard_rootfs/bitbake_build/tmp/work/zynqmp_mimo-wrs-linux/arm-trusted-firmware/1.1+xilinx+gitAUTOINC+df4a7e97d5-r0/temp/do_compile/log.do_compile.13985
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 -e MAKEFLAGS= PLAT=zynqmp RESET_TO_BL31=1 bl31
|   CC      drivers/arm/cci/cci.c
|   CC      plat/common/plat_psci_common.c
|   CC      plat/xilinx/zynqmp/bl31_zynqmp_setup.c
|   CC      plat/xilinx/zynqmp/plat_psci.c
| drivers/arm/cci/cci.c:7:18: fatal error: arch.h: No such file or directory
| plat/common/plat_psci_common.c:7:18: fatal error: arch.h: No such file or directory
| plat/xilinx/zynqmp/plat_psci.c:7:26: fatal error: arch_helpers.h: No such file or directory
| compilation terminated.
| compilation terminated.
| compilation terminated.
| Makefile:603: recipe for target 'build/zynqmp/release/bl31/plat_psci.o' failed
| make: *** [build/zynqmp/release/bl31/plat_psci.o] Error 1
| make: *** Waiting for unfinished jobs....
| Makefile:603: recipe for target 'build/zynqmp/release/bl31/plat_psci_common.o' failed
| make: *** [build/zynqmp/release/bl31/plat_psci_common.o] Error 1
| Makefile:603: recipe for target 'build/zynqmp/release/bl31/cci.o' failed
| make: *** [build/zynqmp/release/bl31/cci.o] Error 1
| plat/xilinx/zynqmp/bl31_zynqmp_setup.c:8:18: fatal error: bl31.h: No such file or directory
| compilation terminated.
| Makefile:603: recipe for target 'build/zynqmp/release/bl31/bl31_zynqmp_setup.o' failed
| make: *** [build/zynqmp/release/bl31/bl31_zynqmp_setup.o] Error 1
| WARNING: /repo/xcs-build/build/zynqmp-mimo-standard_rootfs/bitbake_build/tmp/work/zynqmp_mimo-wrs-linux/arm-trusted-firmware/1.1+xilinx+gitAUTOINC+df4a7e97d5-r0/temp/do_compile/run.do_compile.13985:136 exit 1 from
|   exit 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /repo/xcs-build/build/zynqmp-mimo-standard_rootfs/bitbake_build/tmp/work/zynqmp_mimo-wrs-linux/arm-trusted-firmware/1.1+xilinx+gitAUTOINC+df4a7e97d5-r0/temp/do_compile/log.do_compile.13985)

 

 

it shows that the compile can not find the arch.h、arch_helpers.h and bl31.h file ,but when I  go into these path(plat/xilinx/zynqmp/bl31_zynqmp_setup.c、plat/common/plat_psci_common.c、plat/xilinx/zynqmp/plat_psci.c、plat/xilinx/zynqmp/bl31_zynqmp_setup.c)  ,  I find that these files which can not find .h file includes just like <bl31.h>, so the .c file just can not find the .h in the library.

 

and I get the source code form git hub  :      https://github.com/Xilinx/arm-trusted-firmware/releases/tag/xilinx-v2018.1 .

and  in the attachments is my arm-trusted-firmware_git.bb file.

 and this is my bb file :

 

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit deploy

S = "${WORKDIR}/git"

BRANCH = "master"
SRC_URI = "\
            git://github.com/Xilinx/arm-trusted-firmware.git;protocol=git;branch=${BRANCH} \
            \
          "

# This points at the 'xilinx-v2018.1' tag
SRCREV ?= "df4a7e97d57494c7d79de51b1e0e450d982cea98"

PV = "1.1+xilinx+git${SRCPV}"

COMPATIBLE_MACHINE = "zynqmp"
PLATFORM_zynqmp = "zynqmp"

# requires CROSS_COMPILE set by hand as there is no configure script
#export CROSS_COMPILE="${TARGET_PREFIX}"
export CROSS_COMPILE="/app/vbuild/RHEL5-x86_64/xilinx_vivado/2018.1/SDK/2018.1/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-"

# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application
CFLAGS[unexport] = "1"
LDFLAGS[unexport] = "1"
AS[unexport] = "1"
LD[unexport] = "1"

do_configure() {
        :
}

do_compile() {
        oe_runmake PLAT=${PLATFORM} RESET_TO_BL31=1 bl31

}

do_install() {
        :
}

do_deploy() {
        install -d ${DEPLOYDIR}
        install -m 0644 ${S}/build/${PLATFORM}/release/bl31/bl31.elf ${DEPLOYDIR}/bl31-${MACHINE}.elf
        install -m 0644 ${S}/build/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${MACHINE}.bin
}
addtask deploy before do_build after do_compile

BB_NO_NETWORK = "0"

 

any reply will be adopted , please.

 

Tags (1)
0 Kudos