Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile +++ head/sysutils/Makefile @@ -1228,6 +1228,7 @@ SUBDIR += u-boot-rpi3 SUBDIR += u-boot-sinovoip-bpi-m3 SUBDIR += u-boot-sopine + SUBDIR += u-boot-tools SUBDIR += u-boot-utilite SUBDIR += u-boot-wandboard SUBDIR += u-boot-zedboard Index: head/sysutils/u-boot-tools/Makefile =================================================================== --- head/sysutils/u-boot-tools/Makefile +++ head/sysutils/u-boot-tools/Makefile @@ -0,0 +1,33 @@ +# Created by: Emmanuel Vadot +# $FreeBSD$ + +PORTNAME= u-boot-tools +DISTVERSION= 2017.09 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ +DISTNAME= u-boot-${PORTVERSION} + +MAINTAINER= uboot@FreeBSD.org +COMMENT= U-boot related tools + +LICENSE= GPLv2 + +USES= tar:bzip2 gmake python:2.7,build + +CONFLICT= uboot-mkimage + +PLIST_FILES= bin/mkimage bin/mkenvimage bin/dumpimage bin/fit_info + +do-configure: + (cd ${WRKSRC}/ && ${MAKE_CMD} sandbox_defconfig) + +do-build: + (cd ${WRKSRC}/ && ${MAKE_CMD} ARCH=sandbox tools-only) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tools/dumpimage ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/fit_info ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/mkenvimage ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/mkimage ${STAGEDIR}${PREFIX}/bin + +.include Index: head/sysutils/u-boot-tools/distinfo =================================================================== --- head/sysutils/u-boot-tools/distinfo +++ head/sysutils/u-boot-tools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1513026851 +SHA256 (u-boot-2017.09.tar.bz2) = b2d15f2cf5f72e706025cde73d67247c6da8cd35f7e10891eefe7d9095089744 +SIZE (u-boot-2017.09.tar.bz2) = 11434323 Index: head/sysutils/u-boot-tools/files/patch-Makefile =================================================================== --- head/sysutils/u-boot-tools/files/patch-Makefile +++ head/sysutils/u-boot-tools/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2017-09-11 18:10:40 UTC ++++ Makefile +@@ -338,7 +338,7 @@ LD = $(CROSS_COMPILE)ld.bfd + else + LD = $(CROSS_COMPILE)ld + endif +-CC = $(CROSS_COMPILE)gcc ++CC = $(CROSS_COMPILE)cc + CPP = $(CC) -E + AR = $(CROSS_COMPILE)ar + NM = $(CROSS_COMPILE)nm +@@ -633,7 +633,7 @@ UBOOTINCLUDE := \ + -I$(srctree)/arch/$(ARCH)/include \ + -include $(srctree)/include/linux/kconfig.h + +-NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) ++NOSTDINC_FLAGS += -isystem $(shell $(CC) -print-file-name=include) + CHECKFLAGS += $(NOSTDINC_FLAGS) + + # FIX ME Index: head/sysutils/u-boot-tools/pkg-descr =================================================================== --- head/sysutils/u-boot-tools/pkg-descr +++ head/sysutils/u-boot-tools/pkg-descr @@ -0,0 +1,7 @@ +U-Boot tools for creating and analyzing u-boot images. + +U-Boot images are used to embed kernels into a know format for u-boot. +It can also be FIT (Flattened Image Tree) images when the source describing +the image is written like a DTS (Device Tree Source). + +WWW: http://www.denx.de/wiki/U-Boot