pkgsrc/sysutils/u-boot/u-boot-arm64.mk
wiz fe1370c778 u-boot: include bsd.pkg.mk later
Ideally, this should happen in the main Makefiles and not in
an included file like this one, but the change for that is too big
for me for now and this fixes u-boot-pine64.
2018-06-06 21:58:28 +00:00

19 lines
513 B
Makefile

# $NetBSD: u-boot-arm64.mk,v 1.3 2018/06/06 21:58:28 wiz Exp $
MAINTAINER= port-arm@NetBSD.org
BUILD_DEPENDS+= cross-aarch64-none-elf-gcc-[0-9]*:../../cross/aarch64-none-elf-gcc
UBOOT_ENV+= CROSS_COMPILE=${PREFIX}/cross-aarch64-none-elf/bin/aarch64-none-elf-
.include "u-boot.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.u-boot-${UBOOT_TARGET}
PKG_SUPPORTED_OPTIONS= el1
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mel1)
UBOOT_OPTIONS+= CONFIG_ARMV8_SWITCH_TO_EL1=y
.endif
.include "../../mk/bsd.pkg.mk"