Issue with build trust firmware

freebsd at sysctl.cz freebsd at sysctl.cz
Sun Jun 21 11:38:44 UTC 2020


Hi,
i am trying build new atf-rk3288-v2.3 for rk3288 to asus tinker
Do you some experience with this code ?

bitfield-compat -Wshift-overflow=2 -Wlogical-op 
-Wno-error=deprecated-declarations -Wno-error=cpp -DIMAGE_BL32 
-mcpu=cortex-a12  -mthumb -mno-unaligned-access -P -x assembler-with-cpp 
-D__LINKER__ -Wp,-MD,./build/rk3288/release/bl32/bl32.ld.d -MT 
build/rk3288/release/bl32/bl32.ld -MP -o 
build/rk3288/release/bl32/bl32.ld Makefile
Makefile:45:56: error: "/*" within comment [-Werror=comment]
  INC_ARM_DIRS_TO_CHECK += include/drivers/arm/cryptocell/*.h

Makefile:46:106: error: "/*" within comment [-Werror=comment]
  INC_DRV_DIRS_TO_CHECK := $(sort $(filter-out   \

Makefile:49:124: error: "/*" within comment [-Werror=comment]
  INC_LIB_DIRS_TO_CHECK := $(sort $(filter-out   \

Makefile:53:109: error: "/*" within comment [-Werror=comment]
  INC_DIRS_TO_CHECK := $(sort $(filter-out   \

Makefile:57:122: error: "/*" within comment [-Werror=comment]
  LIB_DIRS_TO_CHECK := $(sort $(filter-out   \

Makefile:455:88: error: "/*" within comment [-Werror=comment]
  SPDS   := $(sort $(filter-out none, $(patsubst 
services/spd/%,%,$(wildcard services/spd/*))))

Makefile:44:36: error: unterminated comment
       $(wildcard include/drivers/arm/*)))
                                     ^
cc1: all warnings being treated as errors
gmake[2]: *** [Makefile:1087: build/rk3288/release/bl32/bl32.ld] Error 1
gmake[2]: Leaving directory 
'/usr/ports/sysutils/atf-rk3288/work/arm-trusted-firmware-2.3'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/atf-rk3288
*** Error code 1

Stop.




# $FreeBSD: head/sysutils/atf-master/Makefile 532702 2020-04-23 
18:42:44Z manu $

PORTNAME=	atf
PORTVERSION?=	${ATF_VERSION}
CATEGORIES=	sysutils
PKGNAMESUFFIX?=	-${PLAT}

MAINTAINER=	uboot at FreeBSD.org
COMMENT=	ARM TF-A for platform ${PLAT}

LICENSE=	BSD3CLAUSE

.if ${PLAT} == rk3288
BUILD_DEPENDS+=	arm-none-eabi-gcc:devel/arm-none-eabi-gcc
.else
BUILD_DEPENDS+= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc
.endif

USES=	gmake

USE_GITHUB=	yes
GH_ACCOUNT=	ARM-software
GH_PROJECT=	arm-trusted-firmware
GH_TAGNAME=	${ATF_VERSION}

SSP_UNSAFE=	yes

.if ${PLAT} == rk3288
MAKE_ENV+=      CROSS_COMPILE="arm-none-eabi-"
ALL_TARGET=     ARCH="aarch32" PLAT=${PLAT} V=1 CFLAGS= bl32
.else
MAKE_ENV+=	CROSS_COMPILE="aarch64-none-elf-"
ALL_TARGET=	ARCH="aarch64" PLAT=${PLAT} V=1 CFLAGS= bl31
.endif

# Default to the latest release
ATF_VERSION?=	v2.3

.if ${PLAT} == rk3288
PLIST_FILES?=   ${PREFIX}/share/${PORTNAME}-${PLAT}/${BL32:T}
.else
PLIST_FILES?=	${PREFIX}/share/${PORTNAME}-${PLAT}/${BL31:T}
.endif

DESCR?=		${.CURDIR}/pkg-descr

NO_ARCH=	yes

.if !defined(PLAT)
PLAT=		NONE
IGNORE=		is a metaport; there is nothing to build
.endif

do-install:

.if ${PLAT} == rk3288
	${MKDIR} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
	${INSTALL_DATA} ${WRKSRC}/build/${PLAT}/release/${BL32} 
${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
	${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${INST}/README
.else
	${MKDIR} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
	${INSTALL_DATA} ${WRKSRC}/build/${PLAT}/release/${BL31} 
${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
	${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${INST}/README
.endif

.include <bsd.port.mk>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: issue.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20200621/66fc4ed1/attachment-0001.txt>


More information about the freebsd-arm mailing list