Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
/bin
/bin-x86_64-efi
+/ipfireboot.ipxe
+VERSION = 2.0
+
SCRIPTS = $(CURDIR)/ipfireboot.ipxe
MACHINE = $(shell uname -m)
all: $(TARGETS)
clean:
- rm -rfv $(TARGETS)
+ rm -rfv $(SCRIPTS) $(TARGETS)
make -C ipxe/src clean veryclean
-$(TARGETS): config/branding.h config/general.h
+%: %.in
+ sed -e "s/@VERSION@/$(VERSION)/g" \
+ < $< > $@
+
+$(TARGETS): $(SCRIPTS) config/branding.h config/general.h
# Copy our configuration to the gPXE submodule
cp -vf config/* ipxe/src/config/local/
# Try to boot from DHCP.
dhcp net0
-chain http://boot.ipfire.org/menu.gpxe?arch=${arch}&platform=${platform}
+chain http://boot.ipfire.org/menu.gpxe?version=@VERSION@&arch=${arch}&platform=${platform}