# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
-# Modifications by: #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
-# - Modified Makefile for IPCop build #
-# #
-# $Id: boot.img,v 1.8.2.4 2005/10/30 18:19:16 gespinasse Exp $
-# #
###############################################################################
###############################################################################
include Config
+VER = ipfire
+
THISAPP = boot-$(VERSION).img
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
$(TARGET) :
- if [ "$(MACHINE)" = "i386" ]; then \
+ if [ "$(MACHINE)" = "i586" ]; then \
dd if=/dev/zero of=/install/images/boot-$(VERSION).img bs=1024 count=1440; \
mkdosfs -f 1 -r 16 /install/images/boot-$(VERSION).img; \
syslinux -s /install/images/boot-$(VERSION).img; \
done; \
losetup $$LOOPDEV /install/images/boot-$(VERSION).img; \
mount -t msdos $$LOOPDEV /install/mnt; \
- sed -e 's/boot IPCop/boot IPCop $(VERSION)/' $(DIR_SRC)/config/kernel/install-message \
+ sed -e 's/boot IPFire/boot IPFire $(VERSION)/' $(DIR_SRC)/config/kernel/install-message \
> /install/mnt/message; \
cp $(DIR_SRC)/config/kernel/syslinux.cfg /install/mnt/syslinux.cfg; \
- cp /boot/vmlinuz-installer /install/mnt/vmlinuz; \
+ cp /boot/vmlinuz-$(KVER) /install/mnt/vmlinuz; \
cp /install/images/fdinitrd.gz /install/mnt/instroot.gz; \
umount /install/mnt; \
losetup -d $$LOOPDEV; \
fi
-