[meta-xilinx] Errors when Compiling arm-trusted-firmware

Schmitt, Richard Richard.Schmitt at commscope.com
Fri Nov 18 07:12:42 PST 2016


Meta-xilinx branch: rel-v2016.3
Machine target: zcu102-zynqmp
Poky branch: krogoth

After upgrading to meta-xilinx rel-v2016.3 and attempting a bitbake of core-image-minimal (or arm-trusted-firmware), I get the following error:

|   AS      common/aarch64/context.S
| bl31/aarch64/runtime_exceptions.S: Assembler messages:
| bl31/aarch64/runtime_exceptions.S:177: Error: non-constant expression in ".if" statement
| bl31/aarch64/runtime_exceptions.S:186: Error: non-constant expression in ".if" statement

I can work around the issue by editing arm-trusted-firmware: include/asm_macros.S

And commenting out lines 102 through 105 as follows:

        /*
         * This macro verifies that the given vector doesn't exceed the
         * architectural limit of 32 instructions. This is meant to be placed
         * immediately after the last instruction in the vector. It takes the
         * vector entry as the parameter
         */
        .macro check_vector_size since
/*        .section .vectors, "ax"
          .if (. - \since) > (32 * 4)
            .error "Vector exceeds 32 instructions"
          .endif */
        .endm

I know this is not a correct fix, but is a quick and easy workaround.

Does anyone know what the correct fix is?

Thanks,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20161118/9b132e93/attachment.html>


More information about the meta-xilinx mailing list