Index: head/sysutils/u-boot-tools/Makefile =================================================================== --- head/sysutils/u-boot-tools/Makefile +++ head/sysutils/u-boot-tools/Makefile @@ -12,17 +12,19 @@ LICENSE= GPLv2 -USES= tar:bzip2 gmake python:2.7,build +USES= tar:bzip2 gmake python:2.7,build ssl CONFLICT= uboot-mkimage +ALL_TARGET= tools-only +MAKE_ARGS= ARCH=sandbox \ + CC="${CC}" \ + KBUILD_VERBOSE=1 \ + NOSTDINC_FLAGS="" \ 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) + (cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} sandbox_defconfig) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tools/dumpimage ${STAGEDIR}${PREFIX}/bin 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 @@ -1,20 +0,0 @@ ---- 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/files/patch-scripts__Makefile.autoconf =================================================================== --- head/sysutils/u-boot-tools/files/patch-scripts__Makefile.autoconf +++ head/sysutils/u-boot-tools/files/patch-scripts__Makefile.autoconf @@ -1,11 +0,0 @@ ---- scripts/Makefile.autoconf.orig 2017-09-11 18:10:40 UTC -+++ scripts/Makefile.autoconf -@@ -27,7 +27,7 @@ include scripts/Kbuild.include - # Need to define CC and CPP again here in case the top Makefile did not - # include config.mk. Some architectures expect CROSS_COMPILE to be defined - # in arch/$(ARCH)/config.mk --CC = $(CROSS_COMPILE)gcc -+CC = $(CROSS_COMPILE)cc - CPP = $(CC) -E - - include config.mk