summaryrefslogtreecommitdiff
path: root/sysutils/u-boot
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2017-09-07 15:29:31 +0000
committerjmcneill <jmcneill@pkgsrc.org>2017-09-07 15:29:31 +0000
commit99d1ca6f0d46ff2ce4197705d1f435557f1603bb (patch)
treecaaebf74ce1d8083e198ac1cb3595010b040649b /sysutils/u-boot
parentfd686a6fe2c8f622c407af21324913cb19d8f912 (diff)
downloadpkgsrc-99d1ca6f0d46ff2ce4197705d1f435557f1603bb.tar.gz
Allow packages to append options with UBOOT_OPTIONS
Diffstat (limited to 'sysutils/u-boot')
-rw-r--r--sysutils/u-boot/u-boot.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/u-boot/u-boot.mk b/sysutils/u-boot/u-boot.mk
index 7a2e8f6f03f..4b2306da3e9 100644
--- a/sysutils/u-boot/u-boot.mk
+++ b/sysutils/u-boot/u-boot.mk
@@ -1,4 +1,4 @@
-# $NetBSD: u-boot.mk,v 1.3 2017/08/18 13:26:28 ryoon Exp $
+# $NetBSD: u-boot.mk,v 1.4 2017/09/07 15:29:31 jmcneill Exp $
UBOOT_VERSION?= 2017.07
PKGNAME= u-boot-${UBOOT_TARGET}-${UBOOT_VERSION}
@@ -31,6 +31,12 @@ REPLACE_FILES.python2= scripts/fill_scrapyard.py \
MAKE_ENV+= ${UBOOT_ENV}
+post-patch:
+.for opt in ${UBOOT_OPTIONS}
+ @echo "=> Adding ${opt} to configs/${UBOOT_CONFIG}"
+ @echo ${opt} >> ${WRKSRC}/configs/${UBOOT_CONFIG}
+.endfor
+
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${UBOOT_CONFIG}