summaryrefslogtreecommitdiff
path: root/sysutils/xentools413/patches/patch-tools_firmware_etherboot_Makefile
blob: 3e3fe4fef9ffcbaf5bafb953067a5f33322b416c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-tools_firmware_etherboot_Makefile,v 1.2 2020/08/27 08:22:33 bouyer Exp $

--- tools/firmware/etherboot/Makefile.orig	2019-12-17 15:23:09.000000000 +0100
+++ tools/firmware/etherboot/Makefile	2020-05-08 16:59:46.337172477 +0200
@@ -32,18 +32,10 @@
 %.rom: $D/src/arch/i386/Makefile
 	$(MAKE) -C $D/src bin/$(*F).rom
 
-$T:
-	set -e; if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \
-		$(GIT) clone $(IPXE_GIT_URL) $D.git; \
-		(cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
-		$(IPXE_GIT_TAG) | gzip -n >../_$T); \
-		rm -rf $D.git; \
-	fi
-	mv _$T $T
+$D:
+	ln -sf $(WRKSRC)/../ipxe-${IPXE_GIT_TAG} $D
 
-$D/src/arch/i386/Makefile: $T Config
-	rm -rf $D
-	gzip -dc $T | tar xf -
+$D/src/arch/i386/Makefile: $D Config
 	for i in $$(cat patches/series) ; do                 \
 	    patch -d $D -p1 --quiet <patches/$$i || exit 1 ; \
 	done