From owner-svn-ports-head@freebsd.org Wed Aug 2 15:21:04 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18C51DD315A; Wed, 2 Aug 2017 15:21:04 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1A3C68F6B; Wed, 2 Aug 2017 15:21:03 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v72FL3F7085335; Wed, 2 Aug 2017 15:21:03 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v72FL2mg085334; Wed, 2 Aug 2017 15:21:02 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201708021521.v72FL2mg085334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Wed, 2 Aug 2017 15:21:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447112 - head/sysutils/u-boot-pine64 X-SVN-Group: ports-head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/sysutils/u-boot-pine64 X-SVN-Commit-Revision: 447112 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2017 15:21:04 -0000 Author: imp Date: Wed Aug 2 15:21:02 2017 New Revision: 447112 URL: https://svnweb.freebsd.org/changeset/ports/447112 Log: Cut pine port over to u-boot-master. Submitted by: Emmanuel Vadot Modified: head/sysutils/u-boot-pine64/Makefile (contents, props changed) Modified: head/sysutils/u-boot-pine64/Makefile ============================================================================== --- head/sysutils/u-boot-pine64/Makefile Wed Aug 2 15:20:57 2017 (r447111) +++ head/sysutils/u-boot-pine64/Makefile Wed Aug 2 15:21:02 2017 (r447112) @@ -1,53 +1,16 @@ # $FreeBSD$ -PORTNAME= u-boot -PORTVERSION= 2016.05 -PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/:uboot \ - http://download.opensuse.org/repositories/devel:/ARM:/Factory:/Contrib:/Pine64/standard/src/:firmware -PKGNAMESUFFIX= -pine64 -DISTFILES= u-boot-${PORTVERSION}.tar.bz2:uboot \ - firmware-pine64-20160329-6.1.src.rpm:firmware +MAINTAINER= manu@FreeBSD.org +MASTERDIR= ${.CURDIR}/../u-boot-master -MAINTAINER= brd@FreeBSD.org -COMMENT= Cross-build U-Boot loader for Pine64 +MODEL= pine64 +BOARD_CONFIG= pine64_plus_defconfig +FAMILY= allwinner64 -LICENSE= GPLv2 +BUILD_DEPENDS= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner +MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin -BUILD_DEPENDS= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc - -WRKSRC= ${WRKDIR}/u-boot-${DISTVERSION} -USES= gmake tar:bzip2 -SSP_UNSAFE= yes # cross-LD does not support -fstack-protector - -U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} -PLIST_FILES= ${U_BOOT_DIR}/pine64.img \ - ${U_BOOT_DIR}/README - -MAKE_ARGS+= ARCH=arm \ - CROSS_COMPILE=aarch64-none-elf- \ - PLAT=sun50iw1p1 \ - CONFIG_EFI=y - -post-extract: - (cd ${WRKSRC}; ${EXTRACT_CMD} xvf ${DISTDIR}/firmware-pine64-20160329-6.1.src.rpm) - ${RM} -r ${WRKSRC}/arm-trusted-firmware - (cd ${WRKSRC}; ${EXTRACT_CMD} xvf pine64atf.tar.xz) - -do-configure: - (cd ${WRKSRC}; ${MAKE_CMD} pine64_plus_defconfig) - post-build: - (cd ${WRKSRC}/arm-trusted-firmware; ${GMAKE} ${MAKE_ARGS} DEBUG=1) - (cd ${WRKSRC}; ${CC} -o pine64_image pine64_image.c) - (cd ${WRKSRC}; ${CAT} arm-trusted-firmware/build/sun50iw1p1/debug/bl31.bin u-boot-dtb.bin > bl31uboot.bin) - (cd ${WRKSRC}; ./pine64_image scp.bin bl31uboot.bin u-boot.img) - (cd ${WRKSRC}; ${CAT} boot0.bin u-boot.img > pine64.img) + ${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin -do-install: - ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${INSTALL_DATA} ${WRKSRC}/pine64.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README - -.include +.include "${MASTERDIR}/Makefile"