aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2017-03-24 11:09:58 -0800
committerDavid M. Syzdek <david@syzdek.net>2017-03-24 11:09:58 -0800
commit456a82c80f865a6e029d3203708d337d50ed3621 (patch)
treeb0d31daa0db3c8f658b31c53731fe80ad391ab48 /Makefile
parent1f24cf59daa6395c0dd8d400d1afe7e939606717 (diff)
downloadiperd-456a82c80f865a6e029d3203708d337d50ed3621.tar.gz
iperd-456a82c80f865a6e029d3203708d337d50ed3621.tar.bz2
iperd-456a82c80f865a6e029d3203708d337d50ed3621.tar.xz
iperd-456a82c80f865a6e029d3203708d337d50ed3621.zip
Updating to use downloaded version of syslinux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 26 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 30604c1..639fd19 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,10 @@ SCRIPTDIR = src/scripts
39SYSLINDIR = src/syslinux 39SYSLINDIR = src/syslinux
40 40
41 41
42SYSLINUX_VERSION ?= 6.03
43MIRROR_SYSLINUX ?= https://www.kernel.org/pub/linux/utils/boot/syslinux/6.xx/syslinux-$(SYSLINUX_VERSION).tar.xz
44
45
42IPERD_VERSION = $(shell git describe --long --abbrev=7 HEAD |sed -e 's/\-/./g' -e 's/^v//g') 46IPERD_VERSION = $(shell git describe --long --abbrev=7 HEAD |sed -e 's/\-/./g' -e 's/^v//g')
43DATE = $(shell date +%Y-%m-%d) 47DATE = $(shell date +%Y-%m-%d)
44 48
@@ -48,7 +52,7 @@ PREREQ_CNF = \
48 syslinux/pxelinux.cfg \ 52 syslinux/pxelinux.cfg \
49 syslinux/syslinux.cfg 53 syslinux/syslinux.cfg
50PREREQ_BIN = \ 54PREREQ_BIN = \
51 syslinux/syslinux.com 55 syslinux/iperd.dep
52CLEANFILES = \ 56CLEANFILES = \
53 images \ 57 images \
54 syslinux 58 syslinux
@@ -194,8 +198,26 @@ images: images/iperdboot.img images/iperdboot.iso
194compress: images/iperdboot.img.gz 198compress: images/iperdboot.img.gz
195 199
196 200
197syslinux/syslinux.com: 201tmp/syslinux-$(SYSLINUX_VERSION).tar.xz:
198 rsync -ra "$(SYSLINUX_SRC)/" syslinux 202 @rm -Rf tmp/syslinux-$(SYSLINUX_VERSION)
203 URL="$(MIRROR_SYSLINUX)"; \
204 $(download_file)
205
206
207tmp/syslinux-$(SYSLINUX_VERSION)/iperd.dep: tmp/syslinux-$(SYSLINUX_VERSION).tar.xz
208 @rm -Rf "tmp/syslinux-$(SYSLINUX_VERSION)"
209 tar -C tmp -xf tmp/syslinux-$(SYSLINUX_VERSION).tar.xz
210 @touch "$(@)"
211
212
213syslinux/iperd.dep: tmp/syslinux-$(SYSLINUX_VERSION)/iperd.dep
214 rm -Rf syslinux
215 cd tmp/syslinux-$(SYSLINUX_VERSION); \
216 make -s install INSTALLROOT="$(PWD)/tmp/syslinux" \
217 || { rm -Rf tmp/syslinux-$(SYSLINUX_VERSION); exit 1; }
218 rsync -ra "$(PWD)/tmp/syslinux/usr/share/syslinux/" syslinux
219 rsync -ra "$(PWD)/tmp/syslinux/usr/bin/" syslinux/bin
220 rsync -ra "$(PWD)/tmp/syslinux/sbin/" syslinux/sbin
199 cp $(SYSLINDIR)/f1.txt syslinux/ 221 cp $(SYSLINDIR)/f1.txt syslinux/
200 cp $(SYSLINDIR)/f2.txt syslinux/ 222 cp $(SYSLINDIR)/f2.txt syslinux/
201 cp /usr/share/hwdata/pci.ids syslinux/ 223 cp /usr/share/hwdata/pci.ids syslinux/
@@ -235,6 +257,7 @@ download: $(PREREQ_CNF) $(DOWNLOAD_FILES)
235configure: 257configure:
236 bash ./$(SCRIPTDIR)/configure.sh configure 258 bash ./$(SCRIPTDIR)/configure.sh configure
237 259
260
238deps: 261deps:
239 bash ./$(SCRIPTDIR)/configure.sh deps 262 bash ./$(SCRIPTDIR)/configure.sh deps
240 263