diff options
| author | David M. Syzdek <david@syzdek.net> | 2017-03-24 11:09:58 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2017-03-24 11:09:58 -0800 |
| commit | 456a82c80f865a6e029d3203708d337d50ed3621 (patch) | |
| tree | b0d31daa0db3c8f658b31c53731fe80ad391ab48 /Makefile | |
| parent | 1f24cf59daa6395c0dd8d400d1afe7e939606717 (diff) | |
| download | iperd-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-- | Makefile | 29 |
1 files changed, 26 insertions, 3 deletions
| @@ -39,6 +39,10 @@ SCRIPTDIR = src/scripts | |||
| 39 | SYSLINDIR = src/syslinux | 39 | SYSLINDIR = src/syslinux |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | SYSLINUX_VERSION ?= 6.03 | ||
| 43 | MIRROR_SYSLINUX ?= https://www.kernel.org/pub/linux/utils/boot/syslinux/6.xx/syslinux-$(SYSLINUX_VERSION).tar.xz | ||
| 44 | |||
| 45 | |||
| 42 | IPERD_VERSION = $(shell git describe --long --abbrev=7 HEAD |sed -e 's/\-/./g' -e 's/^v//g') | 46 | IPERD_VERSION = $(shell git describe --long --abbrev=7 HEAD |sed -e 's/\-/./g' -e 's/^v//g') |
| 43 | DATE = $(shell date +%Y-%m-%d) | 47 | DATE = $(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 |
| 50 | PREREQ_BIN = \ | 54 | PREREQ_BIN = \ |
| 51 | syslinux/syslinux.com | 55 | syslinux/iperd.dep |
| 52 | CLEANFILES = \ | 56 | CLEANFILES = \ |
| 53 | images \ | 57 | images \ |
| 54 | syslinux | 58 | syslinux |
| @@ -194,8 +198,26 @@ images: images/iperdboot.img images/iperdboot.iso | |||
| 194 | compress: images/iperdboot.img.gz | 198 | compress: images/iperdboot.img.gz |
| 195 | 199 | ||
| 196 | 200 | ||
| 197 | syslinux/syslinux.com: | 201 | tmp/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 | |||
| 207 | tmp/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 | |||
| 213 | syslinux/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) | |||
| 235 | configure: | 257 | configure: |
| 236 | bash ./$(SCRIPTDIR)/configure.sh configure | 258 | bash ./$(SCRIPTDIR)/configure.sh configure |
| 237 | 259 | ||
| 260 | |||
| 238 | deps: | 261 | deps: |
| 239 | bash ./$(SCRIPTDIR)/configure.sh deps | 262 | bash ./$(SCRIPTDIR)/configure.sh deps |
| 240 | 263 | ||
