Index: head/sysutils/u-boot-beaglebone/Makefile =================================================================== --- head/sysutils/u-boot-beaglebone/Makefile (revision 418995) +++ head/sysutils/u-boot-beaglebone/Makefile (revision 418996) @@ -1,43 +1,44 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2014.10 PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ PKGNAMESUFFIX= -beaglebone MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for BeagleBone and BeagleBone Black LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492 CROSS_GCC= arm-none-eabi-gcc-4.9.2 NO_ARCH= yes WRKSRC= ${WRKDIR}/u-boot-${PORTVERSION} 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}/u-boot.img \ ${U_BOOT_DIR}/MLO \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- do-configure: - (cd ${WRKSRC}; ${GMAKE} am335x_boneblack_defconfig) + (cd ${WRKSRC}; ${MAKE_CMD} am335x_boneblack_defconfig) do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-cubieboard/Makefile =================================================================== --- head/sysutils/u-boot-cubieboard/Makefile (revision 418995) +++ head/sysutils/u-boot-cubieboard/Makefile (revision 418996) @@ -1,48 +1,51 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2015.04 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ PKGNAMESUFFIX?= -cubieboard MAINTAINER= loos@FreeBSD.org COMMENT?= Cross-build U-Boot loader for Cubieboard LICENSE= GPLv2 BUILD_DEPENDS= arm-none-eabi-gcc:devel/arm-none-eabi-gcc MODEL?= cubieboard CONF_TARGET?= Cubieboard_defconfig NO_ARCH= yes 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}/u-boot.img \ ${U_BOOT_DIR}/u-boot-sunxi-with-spl.bin \ ${U_BOOT_DIR}/sunxi-spl.bin \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CROSS_COMPILE=arm-none-eabi- post-patch: @${REINPLACE_CMD} -e "s,%%MODEL%%,${MODEL}," \ ${WRKSRC}/include/configs/sunxi-common.h do-configure: - (cd ${WRKSRC}; ${GMAKE} ${CONF_TARGET}) + (cd ${WRKSRC}; ${MAKE_CMD} ${CONF_TARGET}) do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/spl/sunxi-spl.bin ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot-sunxi-with-spl.bin ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRKSRC}/spl/sunxi-spl.bin \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${WRKSRC}/u-boot-sunxi-with-spl.bin \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-cubox-hummingboard/Makefile =================================================================== --- head/sysutils/u-boot-cubox-hummingboard/Makefile (revision 418995) +++ head/sysutils/u-boot-cubox-hummingboard/Makefile (revision 418996) @@ -1,51 +1,52 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2013.10 PORTREVISION= 1 CATEGORIES= sysutils PKGNAMESUFFIX= -cubox-hummingboard MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for SolidRun Cubox LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492 CROSS_GCC= arm-none-eabi-gcc-4.9.2 USE_GITHUB= yes GH_ACCOUNT= SolidRun GH_PROJECT= u-boot-imx6 GH_TAGNAME= e4bc4c3 NO_ARCH= yes USES= gmake SSP_UNSAFE= yes # cross-build static linking dies with -fstack-protector U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} PLIST_DIRS= ${U_BOOT_DIR} share/u-boot PLIST_FILES= ${U_BOOT_DIR}/u-boot.imx \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- \ HOSTCC=cc do-configure: - cd ${WRKSRC}; ${GMAKE} ${MAKE_ARGS} mx6_cubox-i_config + cd ${WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} mx6_cubox-i_config # The build results in two output files: SPL, and u-boot.img. # Combine them into a single u-boot.imx so that there is only one file to be # copied onto the boot media starting at a 1K offset on the disk. IMXFILE= ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.imx do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} dd bs=1k oseek=0 conv=sync of=${IMXFILE} if=${WRKSRC}/SPL dd bs=1k oseek=41 conv=sync of=${IMXFILE} if=${WRKSRC}/u-boot.img - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-duovero/Makefile =================================================================== --- head/sysutils/u-boot-duovero/Makefile (revision 418995) +++ head/sysutils/u-boot-duovero/Makefile (revision 418996) @@ -1,42 +1,43 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2014.10 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ PKGNAMESUFFIX= -duovero MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for Duovero LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492 CROSS_GCC= arm-none-eabi-gcc-4.9.2 NO_ARCH= yes WRKSRC= ${WRKDIR}/u-boot-${PORTVERSION} 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}/u-boot.img \ ${U_BOOT_DIR}/MLO \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- do-configure: - (cd ${WRKSRC}; ${GMAKE} duovero_config) + (cd ${WRKSRC}; ${MAKE_CMD} duovero_config) do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-pandaboard/Makefile =================================================================== --- head/sysutils/u-boot-pandaboard/Makefile (revision 418995) +++ head/sysutils/u-boot-pandaboard/Makefile (revision 418996) @@ -1,42 +1,43 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2014.10 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ PKGNAMESUFFIX= -pandaboard MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for PandaBoard LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492 CROSS_GCC= arm-none-eabi-gcc-4.9.2 NO_ARCH= yes WRKSRC= ${WRKDIR}/u-boot-${PORTVERSION} 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}/u-boot.img \ ${U_BOOT_DIR}/MLO \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- do-configure: - (cd ${WRKSRC}; ${GMAKE} omap4_panda_config) + (cd ${WRKSRC}; ${MAKE_CMD} omap4_panda_config) do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-pine64/Makefile =================================================================== --- head/sysutils/u-boot-pine64/Makefile (revision 418995) +++ head/sysutils/u-boot-pine64/Makefile (revision 418996) @@ -1,59 +1,59 @@ # $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= brd@FreeBSD.org COMMENT= Cross-build U-Boot loader for Pine64 LICENSE= GPLv2 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 .include .if ${OSVERSION} < 1000000 IGNORE= requires FreeBSD 10 or later .endif post-extract: (cd ${WRKSRC}; ${EXTRACT_CMD} xvf ${DISTDIR}/firmware-pine64-20160329-6.1.src.rpm) ${RM} -fr ${WRKSRC}/arm-trusted-firmware (cd ${WRKSRC}; ${EXTRACT_CMD} xvf pine64atf.tar.xz) do-configure: - (cd ${WRKSRC}; ${GMAKE} pine64_plus_defconfig) + (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) do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/pine64.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/ - ${CP} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRKSRC}/pine64.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-rpi/Makefile =================================================================== --- head/sysutils/u-boot-rpi/Makefile (revision 418995) +++ head/sysutils/u-boot-rpi/Makefile (revision 418996) @@ -1,54 +1,57 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2016.01 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ \ LOCAL/ian/:bootfiles PKGNAMESUFFIX= -rpi DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ rpi-boot-files-2016.01.tar.bz2:bootfiles MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for Raspberry Pi LICENSE= GPLv2 BUILD_DEPENDS= arm-none-eabi-gcc:devel/arm-none-eabi-gcc NO_ARCH= yes USES= gmake tar:bzip2 SSP_UNSAFE= yes # cross-LD does not support -fstack-protector WRK_BOOTFILES= ${WRKDIR}/rpi-boot-files U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} PLIST_FILES= ${U_BOOT_DIR}/u-boot.img \ ${U_BOOT_DIR}/LICENCE.broadcom \ ${U_BOOT_DIR}/README-BootDetails \ ${U_BOOT_DIR}/bootcode.bin \ ${U_BOOT_DIR}/config.txt \ ${U_BOOT_DIR}/fixup.dat \ ${U_BOOT_DIR}/fixup_cd.dat \ + ${U_BOOT_DIR}/fixup_db.dat \ + ${U_BOOT_DIR}/fixup_x.dat \ ${U_BOOT_DIR}/start.elf \ ${U_BOOT_DIR}/start_cd.elf MAKE_ARGS+= ARCH=arm \ CROSS_COMPILE=arm-none-eabi- do-configure: - (cd ${WRKSRC}; ${GMAKE} rpi_defconfig) + (cd ${WRKSRC}; ${MAKE_CMD} rpi_defconfig) # The output of the u-boot build process is u-boot.bin. We have to put a # standard (for the RPi) image header on the front of it, and the resulting # file is named u-boot.img. Also copy the entire contents of the bootfiles # distribution (these are proprietary binary files required to boot). IMGFILE=${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} ${GZCAT} ${FILESDIR}/imgprefix.bin.gz >${IMGFILE} ${CAT} ${WRKSRC}/u-boot.bin >>${IMGFILE} - ${CP} ${WRK_BOOTFILES}/* ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/ + ${INSTALL_DATA} ${WRK_BOOTFILES}/* ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} .include Index: head/sysutils/u-boot-rpi2/Makefile =================================================================== --- head/sysutils/u-boot-rpi2/Makefile (revision 418995) +++ head/sysutils/u-boot-rpi2/Makefile (revision 418996) @@ -1,58 +1,58 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2015.04 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ \ LOCAL/loos/rpi2-boot-files:bootfiles PKGNAMESUFFIX= -rpi2 DISTFILES= u-boot-${PORTVERSION}.tar.bz2 \ rpi2-boot-files-2015.04.tar.bz2:bootfiles MAINTAINER= loos@FreeBSD.org COMMENT= Cross-build U-Boot loader for Raspberry Pi 2 LICENSE= GPLv2 BUILD_DEPENDS= arm-none-eabi-gcc:devel/arm-none-eabi-gcc NO_ARCH= yes WRKSRC= ${WRKDIR}/u-boot-${DISTVERSION} USES= gmake tar:bzip2 SSP_UNSAFE= yes # cross-LD does not support -fstack-protector WRK_BOOTFILES= ${WRKDIR}/rpi2-boot-files U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} PLIST_FILES= ${U_BOOT_DIR}/u-boot.bin \ ${U_BOOT_DIR}/README \ ${U_BOOT_DIR}/bootcode.bin \ ${U_BOOT_DIR}/fixup.dat \ ${U_BOOT_DIR}/fixup_cd.dat \ ${U_BOOT_DIR}/fixup_x.dat \ ${U_BOOT_DIR}/start.elf \ ${U_BOOT_DIR}/start_cd.elf \ ${U_BOOT_DIR}/start_x.elf \ ${U_BOOT_DIR}/config.txt \ ${U_BOOT_DIR}/LICENCE.broadcom MAKE_ARGS+= ARCH=arm \ CROSS_COMPILE=arm-none-eabi- do-configure: - (cd ${WRKSRC}; ${GMAKE} rpi_2_defconfig) + (cd ${WRKSRC}; ${MAKE_CMD} rpi_2_defconfig) # The output of the u-boot build process is u-boot.bin. Older firmware # versions require a standard header, but the recent versions (our case) # are capable of booting u-boot.bin directly. Also copy the entire # contents of the bootfiles distribution (these are proprietary binary # files required to boot). IMGFILE=${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} - ${CP} ${WRKSRC}/u-boot.bin ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/ - ${CP} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README - ${CP} ${WRK_BOOTFILES}/* ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/ + ${INSTALL_DATA} ${WRKSRC}/u-boot.bin ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} + ${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${WRK_BOOTFILES}/* ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} .include Index: head/sysutils/u-boot-utilite/Makefile =================================================================== --- head/sysutils/u-boot-utilite/Makefile (revision 418995) +++ head/sysutils/u-boot-utilite/Makefile (revision 418996) @@ -1,51 +1,52 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2015.07 PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/:source1 \ http://www.compulab.co.il/wp-content/uploads/2015/10/:source2 PKGNAMESUFFIX= -utilite DISTFILES= u-boot-2015.07.tar.bz2:source1 \ cm-fx6_u-boot_2015-10-18.zip:source2 MAINTAINER= martin@waschbuesch.de COMMENT= Cross-build U-Boot loader for Utilite (and Utilite Pro) LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc CROSS_GCC= arm-none-eabi-gcc EXTRA_PATCHES= ${WRKDIR}/cm-fx6-u-boot/u-boot/u-boot-2015.07-cm-fx6-3.patch:-p1 NO_ARCH= yes USES= gmake PORTSCOUT= ignore:1 U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- \ HOSTCC=cc do-configure: - cd ${WRKSRC}; ${GMAKE} ${MAKE_ARGS} cm_fx6_config + cd ${WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} cm_fx6_config # The build results in two output files: SPL, and u-boot.img. # Combine them into a single u-boot.imx so that there is only one file to be # copied onto the boot media starting at a 1K offset on the disk. CM_FX6_FIRMWARE= ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/cm-fx6-firmware do-install: cd ${WRKSRC}; ./tools/mkimage -n arch/arm/imx-common/spl_sd.cfg.cfgtmp -T imximage -e 0x00908000 -d spl/u-boot-spl.bin spl.img ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} dd if=/dev/zero count=500 bs=1K | ${TR} '\000' '\377' > ${CM_FX6_FIRMWARE} dd if=${WRKSRC}/spl.img of=${CM_FX6_FIRMWARE} bs=1K seek=1 conv=notrunc && dd if=${WRKSRC}/u-boot.img of=${CM_FX6_FIRMWARE} bs=1K seek=64 conv=notrunc - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include Index: head/sysutils/u-boot-wandboard/Makefile =================================================================== --- head/sysutils/u-boot-wandboard/Makefile (revision 418995) +++ head/sysutils/u-boot-wandboard/Makefile (revision 418996) @@ -1,49 +1,50 @@ # $FreeBSD$ PORTNAME= u-boot PORTVERSION= 2013.10 PORTREVISION= 2 CATEGORIES= sysutils PKGNAMESUFFIX= -wandboard MAINTAINER= ian@FreeBSD.org COMMENT= Cross-build U-Boot loader for Wandboard (solo, dual, and quad) LICENSE= GPLv2 BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492 CROSS_GCC= arm-none-eabi-gcc-4.9.2 USE_GITHUB= yes GH_ACCOUNT= TechNexion GH_PROJECT= u-boot-edm GH_TAGNAME= 87f595d NO_ARCH= yes USES= gmake SSP_UNSAFE= yes # cross-build static linking dies with -fstack-protector U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX} PLIST_FILES= ${U_BOOT_DIR}/u-boot.imx \ ${U_BOOT_DIR}/README MAKE_ARGS+= ARCH=arm \ CC=${CROSS_GCC} \ CROSS_COMPILE=arm-none-eabi- \ HOSTCC=cc do-configure: - cd ${WRKSRC}; ${GMAKE} ${MAKE_ARGS} edm_cf_imx6_config + cd ${WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} edm_cf_imx6_config # The build results in two output files: SPL, and u-boot.img. # Combine them into a single u-boot.imx so that there is only one file to be # copied onto the boot media starting at a 1K offset on the disk. IMXFILE= ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.imx do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR} dd bs=1k oseek=0 conv=sync of=${IMXFILE} if=${WRKSRC}/SPL dd bs=1k oseek=68 conv=sync of=${IMXFILE} if=${WRKSRC}/u-boot.img - ${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README + ${INSTALL_DATA} ${.CURDIR}/pkg-descr \ + ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README .include