aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/powerpc/ofw/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-10-13 22:43:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-10-13 22:43:49 +0000
commit1b46e63d3c4ae4a3438a490a91bde39b59cc1aa5 (patch)
treeb58e6414ca79914f9a0f9be71a168a06e0425ce1 /sys/boot/powerpc/ofw/Makefile
parent3ba97c2088a00e82032f97c5ef4d48fd5b4ea14b (diff)
downloadsrc-1b46e63d3c4ae4a3438a490a91bde39b59cc1aa5.tar.gz
src-1b46e63d3c4ae4a3438a490a91bde39b59cc1aa5.zip
Stop closing the network device when netbooting for loaders using the common
dev_net.c code. The NETIF_OPEN_CLOSE_ONCE flag was added in r201932 to prevent that behaviour on some architectures (sparc64 and powerpc64) the default was left to always open and close the device for each open and close of a file by the loader because it was necessary for u-boot on arm. Since it has been added, the flag was turned on for every arches including the u-boot loader for arm. This also fixes netbooting on RPi3 (tested by gonzo@) For the loader.efi it greatly speeds up netbooting Reviewed by: emaste, gonzo, tsoome Approved by: gonzo MFC after: 1 month Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D8230
Notes
Notes: svn path=/head/; revision=307238
Diffstat (limited to 'sys/boot/powerpc/ofw/Makefile')
-rw-r--r--sys/boot/powerpc/ofw/Makefile5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/boot/powerpc/ofw/Makefile b/sys/boot/powerpc/ofw/Makefile
index ab5720fb1f40..eccf3c5d3bea 100644
--- a/sys/boot/powerpc/ofw/Makefile
+++ b/sys/boot/powerpc/ofw/Makefile
@@ -67,11 +67,6 @@ CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/powerpc
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
.endif
-# Avoid the open-close-dance for every file access as some firmwares perform
-# an auto-negotiation on every open of the network interface and thus causes
-# netbooting to take horribly long.
-CFLAGS+= -DNETIF_OPEN_CLOSE_ONCE
-
# Always add MI sources
.PATH: ${.CURDIR}/../../common ${.CURDIR}/../../../libkern
.include "${.CURDIR}/../../common/Makefile.inc"