freebsd-ports/sysutils/u-boot-tools/Makefile
Baptiste Daroussin 2004ea81d9 CLeanup u-boot-tools
- Do not overwrite do-build, it is not necessary
- Ensure the env variables are respected during configure phase
- Now that we use the regular do-build kernel we can pass gmake variables via
  arguments which allows to overwrites predefine ones without custom patches
- Force verbose mode when building to see what command line is invoke, in in
  particular which compiler is called
- Overwrite NOSTDINC_FLAGS because on freebsd we do actually want to use our
  regular standard include files
- Register the dependency on libssl/libcrypto

Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D13543
2017-12-19 15:08:41 +00:00

35 lines
929 B
Makefile

# Created by: Emmanuel Vadot <manu@freebsd.org>
# $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 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}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} sandbox_defconfig)
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 <bsd.port.mk>